windows-installer-updates-20010823
[openafs.git] / src / WINNT / install / InstallShield5 / BuildSetup.bat
1 @echo off
2 rem Copyright 2000, International Business Machines Corporation and others.
3 rem All Rights Reserved.
4 rem 
5 rem This software has been released under the terms of the IBM Public
6 rem License.  For details, see the LICENSE file in the top-level source
7 rem directory or online at http://www.openafs.org/dl/license10.html
8
9 rem This file runs the IS5 command line tools to create the Transarc AFS setup media.
10
11 echo Building the setup media...
12
13 Set SavePath=%Path%
14
15 Path %IS5ROOT%\Program;%PATH%
16
17 ISbuild -p"%AFSROOT%\src\WINNT\install\InstallShield5" -m"OpenAFS" 
18
19 if not exist "Media\OpenAFS\Disk Images\disk1" goto nocopylicense
20 mkdir "Media\OpenAFS\Disk Images\disk1\License"
21 copy ..\..\license\lang\*.rtf "Media\OpenAFS\Disk Images\disk1\License"
22 :nocopylicense
23
24 If errorlevel 1 goto BuildErrorOccurred
25
26 rem Skip over the error handling and exit
27   Goto Done
28
29 rem Report the build error; then exit
30 :BuildErrorOccurred
31   Echo Error on build; media not built. 
32
33 :Done
34 rem Restore the search path
35   Path=%SavePath%
36   Set SavePath=
37