home *** CD-ROM | disk | FTP | other *** search
/ LAUNCH 3 / LAUNCH.BIN / mac / FXDEMO / fxinstal.bat < prev    next >
DOS Batch File  |  1995-08-23  |  2KB  |  87 lines

  1. @echo off
  2. cls
  3. if "%1"=="" goto format
  4. if "%2"=="" goto format
  5. if not exist %1config.def goto nofile
  6. echo.
  7. echo You are about to install the FX Fighter Demo.
  8. echo.
  9. echo This demo will be installed to your %2 drive in
  10. echo the \FXDEMO directory from the disk in your %1 drive.
  11. echo.
  12. echo Do you want to proceed with the installation?
  13. echo.
  14. echo     1 = Yes, Please install the demo.
  15. echo     2 = No, I don't want to install the demo at this time.
  16. echo.
  17. choice /c:12
  18. if errorlevel 2 goto installnot
  19. if errorlevel 1 goto installit
  20.  
  21. :installit
  22. deltree %2\FXDEMO
  23. md %2\FXDEMO
  24. %2
  25. cd \FXDEMO
  26. xcopy %1*.* %2 /e
  27. cls
  28.  
  29. if not exist %2\FXDEMO\FIGHT\WEAPONS\WEAPON04.DAT goto spaceout
  30.  
  31. echo.
  32. echo Installation complete.  
  33. echo.
  34. echo.
  35. %2
  36. cd\FXDEMO
  37. setup
  38. goto end
  39. cls
  40.  
  41. :installnot
  42. cls
  43. echo.
  44. echo Installation cancelled.
  45. echo.
  46. echo Thank you for using the FX FIGHTER DEMO.
  47. echo.
  48. goto end
  49.  
  50. :format
  51. echo.
  52. echo You must use the following format to install FX FIGHTER DEMO:
  53. echo.
  54. echo    FXINSTAL [drive to install from] [drive to install to]
  55. echo.
  56. echo For instance, if your CD-ROM is located in drive D: and you wish to
  57. echo install FX FIGHTER DEMO to drive C:, you would type the following:
  58. echo.
  59. echo     FXINSTAL D: C:
  60. echo.
  61. echo.
  62. goto end
  63.  
  64. :nofile
  65. echo.
  66. echo Install could not find the FX FIGHTER DEMO on the %1 drive.
  67. echo Please check your drive letters and run install again.
  68. echo.
  69. echo.
  70. goto end
  71.  
  72. :spaceout
  73. echo.
  74. echo You are out of disk space.  You need about 7 MB's of hard drive
  75. echo space on your %2 drive to install the FX FIGHTER DEMO.  Please
  76. echo clear enough space or install to another drive with enough free
  77. echo disk space.  The FX FIGHTER DEMO directory will now be deleted.
  78. echo.
  79. echo.
  80. %2
  81. cd \
  82. deltree FXDEMO
  83. goto end
  84.  
  85. :end
  86. @echo on
  87.