home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 175.img / FIREKNG.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-04-02  |  5KB  |  204 lines

  1. echo off
  2. if "%1" == "" goto usage
  3. rem am I on master A?
  4. if not exist disk.1 goto usage
  5. if not exist install.bat goto usage
  6. if %1==a: goto floppy
  7. if %1==A: goto floppy
  8. if %1==b: goto floppy
  9. if %1==B: goto floppy
  10.  
  11. echo 
  12. Hard Disk installation
  13. echo This will create a directory called \FIREKING on your hard disk
  14. echo and copy the game files into it.
  15.  
  16. pause
  17.  
  18. mkdir %1\fireking
  19. mkdir %1\fireking\levels
  20. copy readme.com %1\fireking    >nul:
  21. uz -o game    %1\fireking    >nul:
  22. uz -o ega     %1\fireking    >nul:
  23. uz -o cga     %1\fireking    >nul:
  24.  
  25. if exist disk.2 goto skip1
  26. :loop1
  27. ask "
  28.  
  29. Please insert Master Disk B into current drive, then press <Enter>"
  30. if not exist disk.2 goto loop1
  31. :skip1
  32.  
  33. uz -o levels1 %1\fireking\levels    >nul:
  34. uz -o levels2 %1\fireking\levels    >nul:
  35. uz -o levels1a %1\fireking\levels    >nul:
  36. uz -o egamon1 %1\fireking\levels    >nul:
  37. uz -o egamon2 %1\fireking\levels    >nul:
  38. uz -o cgamon1 %1\fireking\levels    >nul:
  39. uz -o cgamon2 %1\fireking\levels    >nul:
  40.  
  41. echo echo off    >  %1\fireking\fk.bat
  42. echo set FKCODE=%1\fireking\>>        %1\fireking\fk.bat
  43. echo set FKLEV1=%1\fireking\levels\>>    %1\fireking\fk.bat
  44. echo set FKLEV2=%1\fireking\levels\>>    %1\fireking\fk.bat
  45. echo game %%1 %%2 %%3 %%4 %%5 %%6 %%7 >>%1\fireking\fk.bat
  46.  
  47. echo 
  48.  
  49. Fire King is now installed, the game can be played by typing:
  50. echo    %1
  51. echo    cd \fireking
  52. echo    fk
  53. goto exit
  54.  
  55.  
  56. :floppy
  57. echo 
  58. Floppy Disk installation
  59. echo This will create a set of disks for playing Fire King.  A version specific
  60. echo to your video card is created; if you need to run the game with different
  61. echo cards use install to make a separate version for each video card wanted.
  62. echo Note: if installing onto a single 1.44M or 1.2M disk ignore the messages
  63. echo asking you to insert the 2nd and 3rd blank disk.
  64. echo Please make sure the disks are formatted.
  65.  
  66. ask "Select video mode: 1.EGA/Tandy 16 colour, 2.CGA/Tandy 4 colour: " 12
  67. if errorlevel 2 goto cga
  68.  
  69. :ega
  70. echo 
  71. Creating EGA/Tandy 16 colour Version
  72.  
  73. :loop5
  74. ask "
  75. Insert blank disk 1 into %1, then press <Enter>"
  76. if exist %1\disk.id goto loop5
  77. copy readme.com %1\    >nul:
  78. copy disk.id1 %1\disk.id >nul:
  79. uz -o game %1\    >nul:
  80. uz -o ega  %1\    >nul:
  81. :loop6
  82. ask "
  83. Insert blank disk 2 into %1, then press <Enter>"
  84. if exist %1\disk.id goto loop6
  85. mkdir %1\levels
  86.  
  87. if exist disk.2 goto skip2
  88. :loop2
  89. ask "
  90. Replace Master Disk A with Master Disk B and press <Enter>"
  91. if not exist disk.2 goto loop2
  92. :skip2
  93.  
  94. copy disk.id2 %1\disk.id    >nul:
  95. uz -o egamon1 %1\        >nul:
  96. uz -o levels1 %1\levels    >nul:
  97. uz -o levels1a %1\    >nul:
  98. :loop7
  99. ask "
  100. Insert blank disk 3 into %1, then press <Enter>"
  101. if exist %1\disk.id goto loop7
  102. mkdir %1\levels
  103. copy disk.id3 %1\disk.id    >nul:
  104. uz -o egamon2 %1\        >nul:
  105. uz -o levels2 %1\levels    >nul:
  106. uz -o levels2a %1\    >nul:
  107. goto mkbatch
  108.  
  109.  
  110. :cga
  111. echo 
  112. Creating CGA/Tandy 4 colour Version
  113.  
  114. :loop8
  115. ask "
  116. Insert blank disk 1 into %1, then press <Enter>"
  117. if exist %1\disk.id goto loop8
  118. copy readme.com %1\    >nul:
  119. copy disk.id1 %1\disk.id >nul:
  120. uz -o game %1\    >nul:
  121. uz -o cga  %1\    >nul:
  122. :loop9
  123. ask "
  124. Insert blank disk 2 into %1, then press <Enter>"
  125. if exist %1\disk.id goto loop9
  126. mkdir %1\levels
  127.  
  128. if exist disk.2 goto skip3
  129. :loop3
  130. ask "
  131. Replace Master disk 1 with Master disk 2 and press <Enter>"
  132. if not exist disk.2 goto loop3
  133. :skip3
  134.  
  135. copy disk.id2 %1\disk.id    >nul:
  136. uz -o cgamon1 %1\        >nul:
  137. uz -o levels1 %1\levels    >nul:
  138. uz -o levels1a %1\    >nul:
  139. :loop10
  140. ask "
  141. Insert blank disk 3 into %1, then press <Enter>"
  142. if exist %1\disk.id goto loop10
  143. mkdir %1\levels
  144. copy disk.id3 %1\disk.id     >nul:
  145. uz -o cgamon2 %1\     >nul:
  146. uz -o levels2 %1\levels     >nul:
  147. uz -o levels2a %1\     >nul:
  148. goto mkbatch
  149.  
  150.  
  151. :mkbatch
  152. if exist %1\game.exe goto skip4
  153. :loop4
  154. ask "
  155. Insert blank disk 1 back into %1, then press <Enter>"
  156. if not exist %1\game.exe goto loop4
  157. :skip4
  158. echo echo off    >  %1\fk.bat
  159. echo set FKCODE=a:\>> %1\fk.bat
  160. echo set FKLEV1=b:\>> %1\fk.bat
  161. echo set FKLEV2=b:\>> %1\fk.bat
  162. echo game %%1 %%2 %%3 %%4 %%5 %%6 %%7 >>%1\fk.bat
  163. echo 
  164.  
  165. Fire King is now installed, the game can run from the batch file fk.bat
  166. echo on the Program Disk (now in drive %1).
  167. echo Note: if you specified tandy 4 colour the program should be started with "fk /c"
  168. echo 
  169. Disk 1 should be labelled "Program Disk"
  170. echo Disk 2 should be labelled "Levels 1 Disk"
  171. echo Disk 3 should be labelled "Levels 2 Disk"
  172.  
  173. goto exit
  174.  
  175.  
  176.  
  177. :usage
  178. echo             Hard Disk and Floppy install program for Fire King
  179.  
  180. echo Fire King works best on a hard disk.  If you have a 1.2M 5.25" or a 1.44M
  181. echo 3.5" disk drive Fire King can fit entirely onto one floppy disk; otherwise
  182. echo Fire King needs multiple disks to play.
  183.  
  184. echo Hard Disk
  185. echo ═════════
  186. echo Firstly make the Fire King master disk the current drive.  Now type
  187. echo "INSTALL DRIVE:" where DRIVE: is your hard disk.  For example if your hard
  188. echo drive is C: and floppy is A: type
  189. echo        A:        [enter]
  190. echo        INSTALL C:[enter]
  191. echo If your hard disk or floppy drive has a drive letter other than C: use its
  192. echo letter instead.
  193.  
  194. echo Floppy Disk
  195. echo ═══════════
  196. echo Prepare formatted disks to copy the game onto, either:
  197. echo   1 x 1.2M  5.25"  or  3 x 360k  5.25" or
  198. echo   1 x 1.44M 3.5"   or  3 x 720K  3.5"  (depending on your drive).
  199. echo Type "INSTALL B:" (assuming the master is in A:, if the master is in B:
  200. echo type "INSTALL A:") and follow the instructions.
  201.  
  202.  
  203. :exit
  204.