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

  1. echo off
  2. rem
  3. rem    Heavy Barrel-PC 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:37:35
  9. rem
  10. if %2: == : goto help
  11. if %1: == : goto help
  12. if %2 == C: goto srcok
  13. if %2 == D: goto srcok
  14. if %2 == E: goto srcok
  15. if %2 == F: goto srcok
  16. if %2 == G: goto srcok
  17. if %2 == H: goto srcok
  18. if %2 == I: goto srcok
  19. if %2 == J: goto srcok
  20. if %2 == K: goto srcok
  21. if %2 == L: goto srcok
  22. if %2 == M: goto srcok
  23. if %2 == N: goto srcok
  24. if %2 == O: goto srcok
  25. if %2 == P: goto srcok
  26.  
  27. if %2 == c: goto srcok
  28. if %2 == d: goto srcok
  29. if %2 == e: goto srcok
  30. if %2 == f: goto srcok
  31. if %2 == g: goto srcok
  32. if %2 == h: goto srcok
  33. if %2 == i: goto srcok
  34. if %2 == j: goto srcok
  35. if %2 == k: goto srcok
  36. if %2 == l: goto srcok
  37. if %2 == m: goto srcok
  38. if %2 == n: goto srcok
  39. if %2 == o: goto srcok
  40. if %2 == p: goto srcok
  41.  
  42. goto help
  43.  
  44.  
  45. :srcok
  46. if %1 == A: goto dstok
  47. if %1 == B: goto dstok
  48. if %1 == a: goto dstok
  49. if %1 == b: goto dstok
  50. goto help
  51.  
  52. :dstok
  53. if "%3" == "/u" goto uninstall
  54. %1
  55.  
  56. echo.
  57. echo.
  58. echo.
  59. echo.
  60. echo.
  61. echo Installing Heavy Barrel
  62. echo Please wait . . .
  63. checkfor diskspace %2 525
  64. if errorlevel 1 goto cont1
  65. goto diskspace
  66. :cont1
  67. checkfor dir %2\dataeast
  68. if errorlevel 1 goto mdhb
  69. md %2\dataeast
  70. :mdhb
  71. checkfor dir %2\dataeast\hb
  72. if errorlevel 1 goto cdhb
  73. md %2\dataeast\hb
  74. :cdhb
  75. cd %2\dataeast\hb
  76. copy %1\inst.bat %2 >nul
  77.  
  78. %2inst %1 %2 __INSTALL_HB__
  79.  
  80. :uninstall
  81. echo.
  82. echo.
  83. echo.
  84. echo.
  85. echo.
  86. echo uninstalling Heavy Barrel
  87. echo Please wait . . .
  88. cd %2\dataeast\hb
  89. %2inst %1 %2 /u
  90.  
  91. :help
  92. cls
  93. echo.
  94. echo.
  95. echo.     To run the INSTALL batch file, use the following syntax:
  96. echo.
  97. echo.          INSTALL source: destination:
  98. echo.
  99. echo.     where destination is the letter of the hard disk on which 
  100. echo.     to install the program, followed by a colon, and source is 
  101. echo.     the floppy disk drive that you are installing from, followed
  102. echo.     by a colon.
  103. echo.
  104. echo.
  105. echo. EXAMPLE:
  106. echo.          INSTALL a: c:                Installs program on hard disk
  107. echo.          INSTALL a: c: /u             Removes program from hard disk
  108. echo.
  109. goto exit
  110.  
  111. :diskspace
  112. cls
  113. echo.
  114. echo.
  115. echo.     To install Heavy Barrel you must have at least 587K free on
  116. echo.     the target disk.
  117. echo.
  118. echo.
  119. echo.
  120. :exit
  121.