home *** CD-ROM | disk | FTP | other *** search
- @echo off
- cls
- if "%1"=="" goto format
- if "%2"=="" goto format
- if not exist %1gwydion.jll goto nofile
- echo.
- echo You are about to install the MechWarrior 2 demo.
- echo.
- echo This demo will be installed to your %2 drive in
- echo the \MW2DEMO 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\mw2demo
- md %2\mw2demo
- %2
- cd \mw2demo
- %1mw2demo
- cls
-
- if not exist %2\mw2demo\vfx\vesa768.dll goto spaceout
-
- echo.
- echo Installation complete.
- echo.
- echo.
- %2
- cd\mw2demo
- setup
- goto end
- cls
-
- :installnot
- cls
- echo.
- echo Installation cancelled.
- echo.
- echo Thank you for using the MechWarrior 2 demo.
- echo.
- goto end
-
- :format
- echo.
- echo You must use the following format to install MechWarrior 2:
- echo.
- echo INSTALL [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 MechWarrior 2 to drive C:, you would type the following:
- echo.
- echo INSTALL D: C:
- echo.
- echo.
- goto end
-
- :nofile
- echo.
- echo Install could not find the MechWarrior 2 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 25 MB's of hard drive
- echo space on your %2 drive to install the MechWarrior 2 demo. Please
- echo clear enough space or install to another drive with enough free
- echo disk space. The MechWarrior 2 demo directory will now be deleted.
- echo.
- echo.
- %2
- cd \
- deltree mw2demo
- goto end
-
- :end
- @echo on
-