home *** CD-ROM | disk | FTP | other *** search
/ Excalibur 50 / Excalibur_50_cd.bin / mw2demo / install.bat < prev    next >
DOS Batch File  |  1995-08-14  |  2KB  |  87 lines

  1. @echo off
  2. cls
  3. if "%1"=="" goto format
  4. if "%2"=="" goto format
  5. if not exist %1gwydion.jll goto nofile
  6. echo.
  7. echo You are about to install the MechWarrior 2 demo.
  8. echo.
  9. echo This demo will be installed to your %2 drive in
  10. echo the \MW2DEMO 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\mw2demo
  23. md %2\mw2demo
  24. %2
  25. cd \mw2demo
  26. %1mw2demo
  27. cls
  28.  
  29. if not exist %2\mw2demo\vfx\vesa768.dll goto spaceout
  30.  
  31. echo.
  32. echo Installation complete.  
  33. echo.
  34. echo.
  35. %2
  36. cd\mw2demo
  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 MechWarrior 2 demo.
  47. echo.
  48. goto end
  49.  
  50. :format
  51. echo.
  52. echo You must use the following format to install MechWarrior 2:
  53. echo.
  54. echo    INSTALL [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 MechWarrior 2 to drive C:, you would type the following:
  58. echo.
  59. echo     INSTALL D: C:
  60. echo.
  61. echo.
  62. goto end
  63.  
  64. :nofile
  65. echo.
  66. echo Install could not find the MechWarrior 2 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 25 MB's of hard drive
  75. echo space on your %2 drive to install the MechWarrior 2 demo.  Please
  76. echo clear enough space or install to another drive with enough free
  77. echo disk space.  The MechWarrior 2 demo directory will now be deleted.
  78. echo.
  79. echo.
  80. %2
  81. cd \
  82. deltree mw2demo
  83. goto end
  84.  
  85. :end
  86. @echo on
  87.