home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
120.img
/
SKIRDIE1.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-02-05
|
3KB
|
109 lines
echo off
cls
rem --- make sure the user specified valid drive letter (we allow C to F).
if %1a == a goto noDriveSpecified
if %1 == c: goto begin
if %1 == C: goto begin
if %1 == d: goto begin
if %1 == D: goto begin
if %1 == e: goto begin
if %1 == E: goto begin
if %1 == f: goto begin
if %1 == F: goto begin
goto notOnThatDrive
:begin
echo ╔═══════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ SKI OR DIE!! Hard Disk Installation ║
echo ║ ║
echo ║ This will create a directory called %1\SKI on your hard disk, ║
echo ║ and will install the game in that directory. ║
echo ║ ║
echo ║ If you don't want to install the game now, press Ctrl-Break. ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════════════╝
pause
rem --- create \ski on the current drive.
echo
echo Creating directory %1\SKI...
if exist %1\ski\*.* goto directoryExists
md %1\ski
rem --- make sure drive contains the program disk.
:1
if exist ski.exe goto 2
echo
echo Insert SKI OR DIE Disk 1 into drive.
pause
goto 1
:2
rem --- if all files are on one disk, do one-disk install.
if exist hiscores goto oneDiskInstall
rem --- copy program disk files, including next batch file, to the hard disk.
echo
echo Copying Game files...
copy *.* %1\ski
if not exist %1\ski\install2.bat goto installationError
rem --- run next batch file
%1\ski\install2 %1
rem --- one-disk install (for 3.5" disk).
:oneDiskInstall
echo
echo Copying Game files...
copy *.* %1\ski
if not exist %1\ski\ski.exe goto installationError
rem --- installation was successful!
:installDone
cd %1\ski
echo
echo SKI OR DIE!! is now installed on your hard disk.
echo To run it, type "SKI".
%1
goto done
rem --- user didn't specify a drive letter followed by a colon.
:noDriveSpecified
echo
echo Installation Error: To install SKI OR DIE!! on your hard disk, you
echo must specify which drive to install SKI OR DIE!! onto. For example,
echo to install SKI OR DIE!! on drive C, type "INSTALL C:" and press Enter.
goto errorDone
rem --- user specified invalid drive letter.
:notOnThatDrive
echo
echo Installation Error: The hard drive letter must be a letter from C to F,
echo and must be followed by a colon. For example, "INSTALL C:" will install
echo SKI OR DIE!! on drive C.
goto errorDone
rem --- general installation error.
:installationError
echo
echo Installation Error: Perhaps there isn't enough space on your hard disk.
echo SKI OR DIE!! installation requires at least 720k free space.
goto errorDone
rem --- \SKI dir already exists.
:directoryExists
echo
echo Installation Error: The \SKI directory already exists on this drive.
echo Delete this directory and all files in it, then try installing again.
goto errorDone
rem --- goto here after an error is detected, to print a message and exit.
:errorDone
echo
echo SKI OR DIE!! was not installed correctly.
:done