home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / games / hbarrel.zip / INST.BAT < prev    next >
DOS Batch File  |  1989-06-19  |  2KB  |  91 lines

  1. echo off
  2. rem
  3. rem    Heavy Barrel-PC secondary install file
  4. rem
  5. rem    Copyright (c) 1988 by Quicksilver Software, Inc.
  6. rem    All rights reserved.
  7. rem
  8. rem    written by David Steffen. 89/05/12 15:35:45
  9. rem
  10. if "%3" == "/u" goto uninstall
  11. if "%3" == "/U" goto uninstall
  12. if "%3" == "__INSTALL_HB__" goto ok
  13. goto help
  14. :uninstall
  15. %1proin %1 %2 /u
  16. if errorlevel 1 goto exit
  17. del %2HB.exe
  18. del %2\dataeast\HB.bat
  19. echo.
  20. echo Heavy Barrel successfully uninstalled from %2
  21. echo You may now delete the rest of the files in %2\dataeast\hb
  22. echo.
  23. goto exit
  24. :ok
  25. goto program
  26. :noprog
  27. cls
  28. echo.
  29. echo.
  30. echo Please insert program disk in drive %1
  31. pause
  32. :program
  33. if exist %2HB.exe goto AlreadyHere
  34. if not exist %1HB.exe goto noprog
  35. copy %1hb_prog.exe %2 >nul
  36. %1proin %1 %2
  37. if errorlevel 1 goto installerror
  38. copy %1hb.exe %2 >nul
  39. copy %1HB.bat %2\dataeast >nul
  40. goto data
  41.  
  42. :installerror
  43. del %2hb_prog.exe >nul
  44. cd %2\
  45. rd %2\dataeast\hb >nul
  46. rd %2\dataeast >nul
  47. goto exit
  48.  
  49. :nodata
  50. cls
  51. echo.
  52. echo.
  53. echo Please insert data disk in drive %1
  54. pause
  55. :data
  56. if not exist %1sprites.ega goto nodata
  57. copy %1SPRITES.CGA %2 >nul
  58. copy %1SPRITES.EGA %2 >nul
  59. copy %1LEVEL0.BIN %2 >nul
  60. copy %1LEVEL1.BIN %2 >nul
  61. copy %1LEVEL2.BIN %2 >nul
  62. copy %1LEVEL3.BIN %2 >nul
  63. copy %1LEVEL4.BIN %2 >nul
  64. copy %1LEVEL5.BIN %2 >nul
  65. copy %1LEVEL6.BIN %2 >nul
  66. copy %1LEVEL7.BIN %2 >nul
  67. copy %1SCRIPT.BIN %2 >nul
  68. cd %2\dataeast
  69. %2
  70. cls
  71. echo.
  72. echo Thank you for purchasing Heavy Barrel
  73. echo and for playing DATA EAST!!
  74. echo.
  75.  
  76. goto exit
  77.  
  78. :AlreadyHere
  79. cls
  80. echo.
  81. echo Heavy Barrel is already installed on %2
  82. echo.
  83.  
  84. goto exit
  85.  
  86. :help
  87. echo.
  88. echo Please use the install batch file on the distribution disk
  89. echo.
  90. :exit
  91.