home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Player 1994 January
/
CdPlayer94-01.iso
/
demos
/
shadowca
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1993-10-26
|
3KB
|
115 lines
@echo off
@set dos4g=quiet
CLS
IF %1A == A GOTO HOWTO
IF %2A == A GOTO HOWTO
IF %1 == %2 GOTO HOWTO
CLS
ECHO. ╔════════════════════════════════════════════════════════╗
ECHO. ║ Shadowcaster Demonstration ║
ECHO. ║ By: ORIGN SYSTEMS (1993) ║
ECHO. ╚════════════════════════════════════════════════════════╝
ECHO.
ECHO. Installing Shadowcaster Files From %1 To %2\SHADEMO
ECHO.
ECHO.
IF EXIST %2\SHADEMO\install.bat goto ERROR
MD %2\SHADEMO
copy %1\install.bat %2\SHADEMO
IF NOT EXIST %2\SHADEMO\install.bat goto ERROR
MD %2\SHADEMO\S1
MD %2\SHADEMO\S2
MD %2\SHADEMO\S3
MD %2\SHADEMO\S4
PKUNZIP -o %1\shadow.zip CHECKHI.EXE CHECKMEM.EXE DOS4GW.EXE %2\SHADEMO
@%2\SHADEMO\CHECKMEM.EXE
@if not errorlevel 5 goto check2
@cls
@echo -------------------------------------------------
@echo Warning! You may not have enough conventional
@echo memory free to play Shadowcaster. We strongly
@echo recommend you free up more memory before playing.
@echo -------------------------------------------------
@echo (Press ENTER to continue, or CTRL-C to quit)
@echo -------------------------------------------------
@pause
:check2
@%2\SHADEMO\DOS4GW.EXE %2\SHADEMO\CHECKHI.EXE
@if not errorlevel 5 goto play
@cls
@echo -----------------------------------------------------
@echo Warning! You may not have enough upper memory
@echo free to play Shadowcaster. We strongly recommend
@echo you free up more memory before playing.
@echo -----------------------------------------------------
@echo (Press ENTER to continue, or CTRL-C then Y to quit)
@echo -----------------------------------------------------
@pause
:play
PKUNZIP -o %1\SHADOW.zip %2\SHADEMO
IF EXIST %2\SHADEMO\RAVDATA.DAT goto ENDINSTALL
:ERROR
ECHO.
ECHO. Could Not Create The SHADEMO Subdirectory On %2
ECHO. Shadowcaster Not Installed.
ECHO.
ECHO.
ECHO. You may have an incomplete installation. Please
ECHO. delete all the files in %2\shademo and remove all
ECHO. subdirectories, then re-run the install program.
ECHO.
GOTO ABORT
:HOWTO
CLS
ECHO.
ECHO. You typed:
ECHO. %0 %1 %2
ECHO.
ECHO. To Install Shadowcaster on your Hard Drive, please type:
ECHO.
ECHO. INSTALL [Source Drive] [Target Drive]
ECHO.
ECHO. Definitions:
ECHO. [Source Drive] is the drive containing the Shadowcaster demo disk
ECHO.
ECHO. [Target Drive] is the destination drive & path you want Shadowcaster
ECHO. copied to.
ECHO.
ECHO.
ECHO. Example: INSTALL A: C:
ECHO.
ECHO. This would install the demo into C:\SHADEMO from the A: drive.
ECHO.
GOTO ABORT
:ENDINSTALL
CLS
ECHO.
ECHO.
ECHO. People Using a sound card other than a SoundBlaster series card,
ECHO. or a SoundBlaster series card NOT set to defaults, please type
ECHO. SETUP from the %2\SHADEMO directory.
ECHO.
ECHO.
ECHO.
ECHO. TO PLAY SHADOWCASTER ENTER:
ECHO.
ECHO. %2
ECHO. CD \SHADEMO
ECHO. SHADOW
ECHO.
:ABORT