home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 263.img / COSMOS2.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-05-25  |  6KB  |  205 lines

  1. Echo off
  2. cls
  3. rem
  4. rem ┌────────────────────────────────────────┐
  5. rem │(c) Copyright 1990     Astrosoft, Inc.  │
  6. rem │     All rights reserved worldwide.     │
  7. rem └────────────────────────────────────────┘
  8. rem
  9. cd \
  10. if exist (c)-ai goto START
  11. echo To run INSTALL you must:
  12. echo 
  13. echo   ∙ Insert the EZCosmos Program Disk in drive A: (or B:)
  14. echo   ∙ Type A: (or B:) at the DOS prompt
  15. echo   ∙ Type INSTALL at the DOS prompt
  16. goto END
  17. :START
  18. cls
  19. echo ══════════════════════ EZCosmos Setup and Installation ═══════════════════════
  20. echo 
  21. echo EZCosmos requires:
  22. echo    ∙ DOS 2.1 or greater
  23. echo    ∙ Graphics card and graphics monitor (VGA/MCGA/EGA/CGA/Hercules)
  24. echo    ∙ Dual floppy drive or hard disk
  25. echo 
  26. set ~=EZ
  27. if not %~%.==EZ. goto ERROR
  28. echo ───── PC System Types ─────
  29. echo 
  30. echo 1. Two floppy drives  A: B:  ─── Program Disk in A:, Picture Disk in B:
  31. echo 2. System with hard disk C:  ─┐
  32. echo 3. System with hard disk D:  ─┼── Will create directory \EZC and
  33. echo 4. System with hard disk E:  ─┘   install EZCosmos there.
  34. echo 
  35. get_key [1234]Type the NUMBER that corresponds with your SYSTEM type (or Esc to exit): 
  36. if errorlevel 255 goto END
  37. if errorlevel 49 set ~=1
  38. if errorlevel 50 set ~=2
  39. if errorlevel 51 set ~=3
  40. if errorlevel 52 set ~=4
  41. echo 
  42. echo 
  43. echo ──── Display Types ────
  44. echo 
  45. echo 1. CRT Monitor          with CGA, EGA, MCGA or VGA graphics
  46. echo 2. LapTop computer      with CGA, EGA, MCGA or VGA graphics
  47. echo 3. Hercules monochrome  graphics  (special drivers will be installed)
  48. echo 
  49. get_key [123]Type the NUMBER that corresponds with your DISPLAY type: 
  50. if errorlevel 255 goto START
  51. if errorlevel 51 goto DIS3
  52. if errorlevel 50 goto DIS2
  53. if errorlevel 49 goto DIS1
  54. goto START
  55. :DIS3
  56. cls
  57. echo ═══════════════════════ EZCosmos Setup and Installation ═══════════════════════
  58. echo 
  59. echo 
  60. echo Creating EZC.BAT...
  61. echo 
  62. echo Echo off> EZC.BAT
  63. echo cls>> EZC.BAT
  64. echo msherc>> EZC.BAT
  65. echo echo Loading EZCosmos...>> EZC.BAT
  66. if %~%==1 echo cosmos /path=B:>> EZC.BAT
  67. if not %~%==1 echo cosmos>> EZC.BAT
  68. goto INST
  69. :DIS2
  70. cls
  71. echo ═══════════════════════ EZCosmos Setup and Installation ═══════════════════════
  72. echo 
  73. echo 
  74. echo Creating EZC.BAT...
  75. echo 
  76. echo Echo off> EZC.BAT
  77. echo cls>> EZC.BAT
  78. echo echo Loading EZCosmos...>> EZC.BAT
  79. if %~%==1 echo cosmos /lap /path=B:>> EZC.BAT
  80. if not %~%==1 echo cosmos /lap>> EZC.BAT
  81. goto INST
  82. :DIS1
  83. cls
  84. echo ═══════════════════════ EZCosmos Setup and Installation ═══════════════════════
  85. echo 
  86. echo 
  87. echo Creating EZC.BAT...
  88. echo 
  89. echo Echo off> EZC.BAT
  90. echo cls>> EZC.BAT
  91. echo echo Loading EZCosmos...>> EZC.BAT
  92. if %~%==1 echo cosmos /path=B:>> EZC.BAT
  93. if not %~%==1 echo cosmos>> EZC.BAT
  94. :INST
  95. if %~%==1 goto INST1
  96. if %~%==2 goto INST2
  97. if %~%==3 goto INST3
  98. if %~%==4 goto INST4
  99. goto ERROR
  100. :INST1
  101. echo 
  102. echo In order to run properly, EZCosmos needs to copy COMMAND.COM to
  103. echo your Program Disk.
  104. echo 
  105. if exist a:get_key.com goto DOCOMB
  106. if exist b:get_key.com goto DOCOMA
  107. echo Put the EZCosmos Program Disk in drive A or B now!
  108. pause
  109. goto INST1
  110. :DOCOMA
  111. set ~=A
  112. goto COPYCOM
  113. :DOCOMB
  114. set ~=B
  115. :COPYCOM
  116. echo Insert your DOS diskette with COMMAND.COM in drive %~%: and
  117. pause
  118. copy %~%:command.com
  119. if not exist command.com goto INST1
  120. echo 
  121. echo EZCosmos installation is complete.  To run EZCosmos, insert the Program
  122. echo Disk in drive A: and a Picture Disk in drive B:, then type
  123. echo 
  124. echo      A:
  125. echo      EZC
  126. goto END
  127. :INST2
  128. set ~=C:
  129. goto MAKE
  130. :INST3
  131. set ~=D:
  132. goto MAKE
  133. :INST4
  134. set ~=E:
  135. :MAKE
  136. echo 
  137. echo 
  138. echo EZCosmos requires 1 Mb of disk and will be installed in directory  %~%\EZC
  139. echo 
  140. get_key [YN]Do you want to continue with the installation (Y/N)? 
  141. if errorlevel 89 goto HCONT
  142. goto END
  143. :HCONT
  144. if exist %~%\EZC\*.* goto EXISTS
  145. mkdir %~%\EZC > NUL
  146. :CPY
  147. echo 
  148. echo Installing EZCosmos in directory %~%\EZC
  149. for %%I in (ezc.bat cosmos.db cosmos.idx planets.dat cosmos.cfg) do copy %%I %~%\EZC\%%I
  150. for %%I in (cities.db names.db cosmos.exe cosmos.cmd msherc.com) do copy %%I %~%\EZC\%%I
  151. if exist cosmos.hlp goto CPYPIC1
  152. :PICT1
  153. echo 
  154. echo Insert the EZCosmos Picture Disk 1 in the floppy drive and
  155. pause
  156. if not exist cosmos.hlp goto PICT1
  157. :CPYPIC1
  158. echo Copying Picture Disk files...
  159. for %%I in (cosmos.hlp picture.dir cvugif.exe *.gif) do copy %%I %~%\EZC\%%I
  160. if exist m20.gif goto DONE
  161. :PICT2
  162. echo 
  163. echo Insert the EZCosmos Picture Disk 2 in the floppy drive and
  164. pause
  165. if not exist m1.gif goto PICT2
  166. echo Copying Picture Disk files...
  167. for %%I in (cvugif.exe *.gif) do copy %%I %~%\EZC\%%I
  168. :DONE
  169. echo 
  170. echo EZCosmos installation is complete.  To run EZCosmos, type the following
  171. echo commands at the DOS prompt:
  172. echo 
  173. echo      %~%
  174. echo      CD \EZC
  175. echo      EZC
  176. %~%
  177. cd \ezc
  178. goto END
  179. :EXISTS
  180. echo 
  181. echo The directory %~%\EZC already exists!
  182. echo 
  183. echo The following files will be overwritten:
  184. echo COSMOS.EXE   COSMOS.DB   COSMOS.IDX   PLANETS.DAT   COSMOS.CFG
  185. echo COSMOS.HLP   CITIES.DB   NAMES.DB     PICTURE.DIR   MSHERC.COM
  186. echo CVUGIF.EXE   EZC.BAT     and several  GIF files
  187. echo 
  188. echo All other files will be left intact.
  189. echo 
  190. get_key [YN]Do you want to continue the installation (Y/N)? 
  191. if errorlevel 89 goto CPY
  192. goto END
  193. :ERROR
  194. echo 
  195. echo An installation error has occured.  Check your DOS version, and make sure that
  196. echo you are running INSTALL directly from DOS.  If you received an "Out of
  197. echo environment space" error, you may be able to free up some environment space by
  198. echo typing  SET PATH=  at the DOS prompt.  Remember to restore your path after
  199. echo installation is complete.  If you can't get the INSTALL command to work, you
  200. echo may still be able to run EZCosmos directly from DOS by using the COSMOS
  201. echo command.  See the INFO file  (TYPE INFO)  for more details.
  202. :END
  203. echo 
  204. set ~=
  205.