home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LAUNCH 3
/
LAUNCH.BIN
/
mac
/
FXDEMO
/
fxinstal.bat
< prev
next >
Wrap
DOS Batch File
|
1995-08-23
|
2KB
|
87 lines
@echo off
cls
if "%1"=="" goto format
if "%2"=="" goto format
if not exist %1config.def goto nofile
echo.
echo You are about to install the FX Fighter Demo.
echo.
echo This demo will be installed to your %2 drive in
echo the \FXDEMO directory from the disk in your %1 drive.
echo.
echo Do you want to proceed with the installation?
echo.
echo 1 = Yes, Please install the demo.
echo 2 = No, I don't want to install the demo at this time.
echo.
choice /c:12
if errorlevel 2 goto installnot
if errorlevel 1 goto installit
:installit
deltree %2\FXDEMO
md %2\FXDEMO
%2
cd \FXDEMO
xcopy %1*.* %2 /e
cls
if not exist %2\FXDEMO\FIGHT\WEAPONS\WEAPON04.DAT goto spaceout
echo.
echo Installation complete.
echo.
echo.
%2
cd\FXDEMO
setup
goto end
cls
:installnot
cls
echo.
echo Installation cancelled.
echo.
echo Thank you for using the FX FIGHTER DEMO.
echo.
goto end
:format
echo.
echo You must use the following format to install FX FIGHTER DEMO:
echo.
echo FXINSTAL [drive to install from] [drive to install to]
echo.
echo For instance, if your CD-ROM is located in drive D: and you wish to
echo install FX FIGHTER DEMO to drive C:, you would type the following:
echo.
echo FXINSTAL D: C:
echo.
echo.
goto end
:nofile
echo.
echo Install could not find the FX FIGHTER DEMO on the %1 drive.
echo Please check your drive letters and run install again.
echo.
echo.
goto end
:spaceout
echo.
echo You are out of disk space. You need about 7 MB's of hard drive
echo space on your %2 drive to install the FX FIGHTER DEMO. Please
echo clear enough space or install to another drive with enough free
echo disk space. The FX FIGHTER DEMO directory will now be deleted.
echo.
echo.
%2
cd \
deltree FXDEMO
goto end
:end
@echo on