ECHO OFF
IF EXIST setup.ex$ GOTO DEB
ECHO "Current directory must be the drive or the directory"
ECHO "containing installation files"
GOTO FIN
:DEB
IF EXIST setup.exe GOTO FIN1
copy cac1.txt xxxxxxxx.xxx
IF NOT EXIST xxxxxxxx.xxx GOTO PROTECT
del xxxxxxxx.xxx
IF "%1"=="" GOTO DEF
ECHO "Build setup.exe file"
%1\expand setup.ex$ setup.exe
IF NOT EXIST setup.exe GOTO ANORMAL
copy cac1.txt readme.txt
ECHO "Start installation step 1"
ECHO ON
%1\win setup.exe
GOTO FIN
:DEF
ECHO "Build setup.exe file"
c:\windows\expand setup.ex$ setup.exe
IF NOT EXIST setup.exe GOTO ANORMAL
copy cac1.txt readme.txt
ECHO "Start installation step 1"
:FIN1
ECHO "To start installation step 2, launch setup.exe under Windows"
ECHO "To continue, press a key"
PAUSE
ECHO ON
c:\windows\win setup
GOTO FIN
:PROTECT
ECHO "Floppy must not be write protected"
GOTO FIN
:ANORMAL
ECHO "If Windows is not installed in c:\windows"
ECHO "You have to provide the path where Windows is installed. For example :"
ECHO "instal d:\windows"
:FIN
