home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
- rem --- make sure the user specified a drive letter (we allow A to K)
- rem for both the source and dest drives.
- if %1a == a goto noDriveSpecified
- if %1 == a: goto checkDest
- if %1 == A: goto checkDest
- if %1 == b: goto checkDest
- if %1 == B: goto checkDest
- if %1 == c: goto checkDest
- if %1 == C: goto checkDest
- if %1 == d: goto checkDest
- if %1 == D: goto checkDest
- if %1 == e: goto checkDest
- if %1 == E: goto checkDest
- if %1 == f: goto checkDest
- if %1 == F: goto checkDest
- if %1 == g: goto checkDest
- if %1 == G: goto checkDest
- if %1 == h: goto checkDest
- if %1 == H: goto checkDest
- if %1 == i: goto checkDest
- if %1 == I: goto checkDest
- if %1 == j: goto checkDest
- if %1 == J: goto checkDest
- if %1 == k: goto checkDest
- if %1 == K: goto checkDest
- goto notOnThatDrive
- :checkDest
- if %2a == a goto noDriveSpecified
- if %1 == a: goto begin
- if %1 == A: goto begin
- if %1 == b: goto begin
- if %1 == B: goto begin
- if %2 == c: goto begin
- if %2 == C: goto begin
- if %2 == d: goto begin
- if %2 == D: goto begin
- if %2 == e: goto begin
- if %2 == E: goto begin
- if %2 == f: goto begin
- if %2 == F: goto begin
- if %2 == g: goto begin
- if %2 == G: goto begin
- if %1 == h: goto begin
- if %1 == H: goto begin
- if %1 == i: goto begin
- if %1 == I: goto begin
- if %1 == j: goto begin
- if %1 == J: goto begin
- if %1 == k: goto begin
- if %1 == K: goto begin
- :begin
- echo ╔═══════════════════════════════════════════════════════════════════════╗
- echo ║ ║
- echo ║ STORMOVIK: THE SU-25 SOVIET ATTACK FIGHTER ║
- echo ║ Hard Disk Installation ║
- echo ║ ║
- echo ║ This will create a directory called \SU25 on drive %2 and will ║
- echo ║ install the STORMOVIK files in that directory. ║
- echo ║ ║
- echo ║ If you do not wish to install STORMOVIK at this time, press ║
- echo ║ Ctrl-Break then press the 'Y' key. ║
- echo ║ ║
- echo ╚═══════════════════════════════════════════════════════════════════════╝
- pause
-
- rem --- create \SU25 on dest drive.
- echo
- echo Creating directory %2\SU25
- if not exist %2\SU25\*.* goto go_on
- rem --- \SU25 directory already exists.
- :directoryExists
- echo
- echo There is already a \SU25 directory on drive %2. If you don't want to
- echo install STORMOVIK into that directory, press Ctrl-Break.
- echo Otherwise, press any key to continue with the install.
- pause
- goto go_on2
- :go_on
- md %2\SU25
- :go_on2
-
- rem --- make sure the source drive contains Disk One
- :1
- if exist %1\SU25.0 goto 2
- echo
- echo Insert your STORMOVIK Disk One in drive %1
- pause
- goto 1
- :2
-
- rem --- copy program disk files, including next batch file, to dest disk.
- echo
- echo Copying STORMOVIK Disk One...
- copy %1\*.* %2\SU25
- if not exist %2\SU25\install2.bat goto Error1
-
- rem --- run next batch file
- %2\SU25\install2 %1 %2
-
- rem --- user didn't specify a drive letter followed by a colon.
- :noDriveSpecified
- echo
- echo Installation Error: To install STORMOVIK, you must specify the drive
- echo containing the floppies that you are installing FROM, and the drive
- echo you are installing TO. For example: if you are installing from
- echo floppy drive A: to hard drive C:, then you should type
- echo INSTALL A: C:
- echo ...and press Enter.
- goto errorDone
-
- rem --- user specified invalid drive letter.
- :notOnThatDrive
- echo
- echo Installation Error: Each drive letter must be a letter from A to H,
- echo and must be followed by a colon. For example, "INSTALL A: C:" will
- echo install STORMOVIK from floppies on drive A: to hard drive C:.
- goto errorDone
-
- rem --- general installation error.
- :Error1
- echo
- echo Installation Error: could not find all of the STORMAVIK files
- echo on disk %2\SU25. Perhaps there is not enough free space on drive %2
- echo The STORMOVIK installation requires at least 1000K of free disk space.
- goto errorDone
-
- rem --- goto here after an error is detected, to print a message and exit.
- :errorDone
- echo
- echo STORMOVIK was not installed correctly.
- :done
-