home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Select: Games Special 3
/
cd.iso
/
dosgames
/
mysteriu
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1991-01-25
|
4KB
|
124 lines
echo off
cls
rem --- make sure the user specified valid drive letter (we allow A to H)
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
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
:begin
echo ╔═══════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ ZWO: MYSTERIUM Installation ║
echo ║ ║
echo ║ This will create a directory called %2\MYST on your destination disk, ║
echo ║ and will install MYSTERIUM in that directory. ║
echo ║ ║
echo ║ If you don't want to install MYSTERIUM now, press Ctrl-Break. ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════════════╝
pause
rem --- create \myst on the current drive.
echo
echo Creating directory %2\myst...
if not exist %2\myst\*.* goto go_on
rem --- \myst dir already exists.
:directoryExists
echo
echo There is already a \myst directory on drive %2. If you don't want to
echo install ZWO:MYSTERIUM into that directory, press Ctrl-Break.
echo Otherwise, press any key to install ZWO:MYSTERIUM into %2\MYST.
pause
goto go_on2
:go_on
md %2\myst
:go_on2
echo
echo Insert MYSTERIUM Disk One in drive %1.
pause
rem --- one-disk install (for 3.5" disk).
:oneDiskInstall
echo
echo Copying MYST files...
copy %1\*.* %2\myst
rem --- installation was successful!
:installDone
cd %1\myst
c:
cd\myst
myst
del myst.exe
echo
echo MYSTERIUM is now installed on your destination disk.To run it,type "MYSTER.exe".
%2
goto done
rem --- user didn't specify a drive letter followed by a colon.
:noDriveSpecified
echo
echo Installation Error: To install MYSTERIUM, 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 MYSTERIUM from floppies on drive A: to hard drive C:.
goto errorDone
rem --- general installation error.
:installationError
echo
echo Installation Error: Perhaps there isn't enough space on your destination
echo disk. MYSTERIUM installation requires at least 720k free space.
goto errorDone
rem --- goto here after an error is detected, to print a message and exit.
:errorDone
echo
echo MYSTERIUM was not installed correctly.
:done