home *** CD-ROM | disk | FTP | other *** search
/ norge.freeshell.org (192.94.73.8) / 192.94.73.8.tar / 192.94.73.8 / pub / computers / pcjr / utility / FASTM41A.LZH / INSTALL.BAT < prev    next >
DOS Batch File  |  1991-03-17  |  8KB  |  233 lines

  1. ECHO OFF
  2. CLS
  3. ECHO               ╔══════════════════════════════════════════════════╗
  4. ECHO               ║ fastmenu PLUS (TM) V4.1    INSTALL Drive C:\FAST ║
  5. ECHO               ║ ~~~~~~~~~~~~~~~~~~~~~~~    ~~~~~~~~~~~~~~~~~~~~~ ║
  6. ECHO               ║   NOTE !   This batch file will create a new     ║
  7. ECHO               ║   directory called 'FAST' on your hard drive.    ║
  8. ECHO               ║   After  creating  this  directory,  all the     ║
  9. ECHO               ║   necessary  files  from  your  distribution     ║
  10. ECHO               ║   copy will be moved to this directory.          ║
  11. ECHO               ║                                                  ║
  12. ECHO               ║    A .................. Install VGA Version ?    ║
  13. ECHO               ║    B ....... Install CGA/Monochrome Version ?    ║
  14. ECHO               ║    C ..... Change Existing Setup on C:\FAST ?    ║
  15. ECHO               ╟──────────────────────────────────────────────────╢
  16. ECHO               ║    Enter The Letter A,B or C    (ESC to Abort)   ║
  17. ECHO               ╚══════════════════════════════════════════════════╝
  18. :START1
  19. CHOICE
  20. IF ERRORLEVEL 27 GOTO END2
  21. IF ERRORLEVEL 4 GOTO START1
  22. IF ERRORLEVEL 3 GOTO RESET
  23. IF ERRORLEVEL 2 GOTO CGA
  24. :VGA
  25. ECHO .
  26. ECHO   Working.      Please Wait !!
  27. ECHO .
  28. copy config.cga config.ifo
  29. copy fast.vga fast.bat
  30. GOTO DRIVE
  31. :CGA
  32. ECHO .
  33. ECHO   Working.      Please Wait !!
  34. ECHO .
  35. copy fast.cga fast.bat
  36. CLS
  37. ECHO               ╔═══════════════════════════════════════════════════╗
  38. ECHO               ║                    Do you want:                   ║
  39. ECHO               ║    A .............. Color Menus and Prompts ?     ║
  40. ECHO               ║    B ...... Black & White Menus and Prompts ?     ║
  41. ECHO               ╟───────────────────────────────────────────────────╢
  42. ECHO               ║     Enter The Letter A or B    (ESC to Abort)     ║
  43. ECHO               ╚═══════════════════════════════════════════════════╝
  44. :START3
  45. CHOICE
  46. IF ERRORLEVEL 27 GOTO END2
  47. IF ERRORLEVEL 3 GOTO START3
  48. IF ERRORLEVEL 2 GOTO BLACK
  49. :COLOR
  50. ECHO .
  51. ECHO   Working.     Please Wait !!
  52. ECHO .
  53. copy config.cga config.ifo
  54. GOTO DRIVE
  55. :BLACK
  56. ECHO .
  57. ECHO   Working.     Please Wait !!
  58. ECHO .
  59. copy config.b&w config.ifo
  60. :DRIVE
  61. CLS
  62. ECHO               ╔═══════════════════════════════════════════════════╗
  63. ECHO               ║                                                   ║
  64. ECHO               ║   What Drive Are You Installing From (A,B or C)?  ║
  65. ECHO               ║                                                   ║
  66. ECHO               ╟───────────────────────────────────────────────────╢
  67. ECHO               ║     Enter The Letter A,B or C    (ESC to Abort)   ║
  68. ECHO               ╚═══════════════════════════════════════════════════╝
  69. :START2
  70. CHOICE
  71. IF ERRORLEVEL 27 GOTO END2
  72. IF ERRORLEVEL 4 GOTO START2
  73. IF ERRORLEVEL 3 GOTO LABELC
  74. IF ERRORLEVEL 2 GOTO LABELB
  75. :LABELA
  76. ECHO .
  77. ECHO   Working.    Please Wait !!
  78. ECHO .
  79. c:
  80. cd\
  81. if exist FAST.BAT erase FAST.BAT
  82. if exist BRUN45.EXE erase BRUN45.EXE
  83. if exist c:\fast\fastmenu.exe goto nomake
  84. md\fast
  85. :nomake
  86. cd\fast
  87. if exist c:\fast\mouse.ifo erase c:\fast\mouse.ifo
  88. if exist c:\fast\fastrun.exe erase c:\fast\fastrun.exe
  89. if exist c:\fast\fastlogo.ifo erase c:\fast\fastlogo.ifo
  90. if exist c:\fast\master.dat erase c:\fast\master.dat
  91. if exist c:\dos\command.com copy a:\fast.bat c:\dos
  92. if not exist c:\dos\command.com copy a:\fast.bat c:\
  93. if exist c:\dos\command.com copy a:\brun45.exe c:\dos
  94. if not exist c:\dos\command.com copy a:\brun45.exe c:\
  95. copy a:\install.bat c:\fast
  96. copy a:\choice.com c:\fast
  97. copy a:\config.* c:\fast
  98. copy a:\fast.* c:\fast
  99. copy a:\*.ifo c:\fast
  100. copy a:\*.exe c:\fast
  101. cls
  102. ECHO .
  103. ECHO          Insert fastmenu PLUS Disk #2 into Drive A:
  104. ECHO .
  105. pause
  106. copy a:\*.exe c:\fast
  107. GOTO END1
  108. :LABELB
  109. ECHO .
  110. ECHO   Working.    Please Wait !!
  111. ECHO .
  112. c:
  113. cd\
  114. if exist FAST.BAT erase FAST.BAT
  115. if exist BRUN45.EXE erase BRUN45.EXE
  116. if exist c:\fast\fastmenu.exe goto nomake2
  117. md\fast
  118. :nomake2
  119. cd\fast
  120. if exist c:\fast\mouse.ifo erase c:\fast\mouse.ifo
  121. if exist c:\fast\fastrun.exe erase c:\fast\fastrun.exe
  122. if exist c:\fast\fastlogo.ifo erase c:\fast\fastlogo.ifo
  123. if exist c:\fast\master.dat erase c:\fast\master.dat
  124. if exist c:\dos\command.com copy b:\fast.bat c:\dos
  125. if not exist c:\dos\command.com copy b:\fast.bat c:\
  126. if exist c:\dos\command.com copy b:\brun45.exe c:\dos
  127. if not exist c:\dos\command.com copy b:\brun45.exe c:\
  128. copy b:\install.bat c:\fast
  129. copy b:\choice.com c:\fast
  130. copy b:\config.* c:\fast
  131. copy b:\fast.* c:\fast
  132. copy b:\*.ifo c:\fast
  133. copy b:\*.exe c:\fast
  134. cls
  135. ECHO .
  136. ECHO          Insert fastmenu PLUS Disk #2 into Drive B:
  137. ECHO .
  138. pause
  139. copy b:\*.exe c:\fast
  140. GOTO END1
  141. :LABELC
  142. ECHO .
  143. ECHO   Working.    Please Wait !!
  144. ECHO .
  145. if exist C:\FAST.BAT erase C:\FAST.BAT
  146. if exist C:\BRUN45.EXE erase C:\BRUN45.EXE
  147. if exist c:\fast\fastmenu.exe goto nomake3
  148. md\fast
  149. :nomake3
  150. if exist c:\fast\mouse.ifo erase c:\fast\mouse.ifo
  151. if exist c:\fast\fastrun.exe erase c:\fast\fastrun.exe
  152. if exist c:\fast\fastlogo.ifo erase c:\fast\fastlogo.ifo
  153. if exist c:\fast\master.dat erase c:\fast\master.dat
  154. if exist c:\dos\command.com copy fast.bat c:\dos
  155. if not exist c:\dos\command.com copy fast.bat c:\
  156. if exist c:\dos\command.com copy brun45.exe c:\dos
  157. if not exist c:\dos\command.com copy brun45.exe c:\
  158. copy install.bat c:\fast
  159. copy choice.com c:\fast
  160. copy config.* c:\fast
  161. copy fast.* c:\fast
  162. copy *.ifo c:\fast
  163. copy *.exe c:\fast
  164. GOTO END1
  165. :RESET
  166. CLS
  167. ECHO               ╔═══════════════════════════════════════════════════╗
  168. ECHO               ║                    Do you want:                   ║
  169. ECHO               ║    A ...........VGA Color Menus and Prompts ?     ║
  170. ECHO               ║    B .......... CGA Color Menus and Prompts ?     ║
  171. ECHO               ║    C ...... Black & White Menus and Prompts ?     ║
  172. ECHO               ╟───────────────────────────────────────────────────╢
  173. ECHO               ║     Enter The Letter A,B or C   (ESC to Abort)    ║
  174. ECHO               ╚═══════════════════════════════════════════════════╝
  175. :RESTART
  176. CHOICE
  177. IF ERRORLEVEL 27 GOTO END2
  178. IF ERRORLEVEL 4 GOTO RESTART
  179. IF ERRORLEVEL 3 GOTO B&W
  180. IF ERRORLEVEL 2 GOTO CGACOLOR
  181. :VGACOLOR
  182. ECHO .
  183. ECHO   Working.      Please Wait !!
  184. ECHO .
  185. copy config.cga config.ifo
  186. copy fast.vga fast.bat
  187. if exist c:\dos\command.com copy fast.bat c:\dos
  188. if not exist c:\dos\command.com copy fast.bat c:\
  189. GOTO END1
  190. :CGACOLOR
  191. ECHO .
  192. ECHO   Working.      Please Wait !!
  193. ECHO .
  194. copy config.cga config.ifo
  195. copy fast.cga fast.bat
  196. if exist c:\dos\command.com copy fast.bat c:\dos
  197. if not exist c:\dos\command.com copy fast.bat c:\
  198. GOTO END1
  199. :B&W
  200. ECHO .
  201. ECHO   Working.      Please Wait !!
  202. ECHO .
  203. copy config.b&w config.ifo
  204. copy fast.cga fast.bat
  205. if exist c:\dos\command.com copy fast.bat c:\dos
  206. if not exist c:\dos\command.com copy fast.bat c:\
  207. :END1
  208. cd\
  209. CLS
  210. ECHO               ╔═══════════════════════════════════════════════════╗
  211. ECHO               ║     fastmenu PLUS     Installation Completed      ║
  212. ECHO               ║     ~~~~~~~~~~~~~     ~~~~~~~~~~~~~~~~~~~~~~      ║
  213. ECHO               ║    NOTE !   For the fastmenu application to       ║
  214. ECHO               ║    operate  properly,  you  must  have  a path    ║
  215. ECHO               ║    statement to your  ROOT directory  and your    ║
  216. ECHO               ║    DOS directory  or  the  directory  your DOS    ║
  217. ECHO               ║    files are in, This path statement should be    ║
  218. ECHO               ║    located in your AUTOEXEC.BAT file.             ║
  219. ECHO               ║      Example:  path=c:\;c:\dos                    ║
  220. ECHO               ║    Also if you want fastmenu  to automatically    ║
  221. ECHO               ║    startup when you turn on your computer, you    ║
  222. ECHO               ║    will need to add 'FAST' as the last line or    ║
  223. ECHO               ║    statement in the AUTOEXEC.BAT file.            ║
  224. ECHO               ╟───────────────────────────────────────────────────╢
  225. ECHO               ║    To start fastmenu, at the DOS prompt from      ║
  226. ECHO               ║    any directory type: [ FAST ]  enter.           ║
  227. ECHO               ╚═══════════════════════════════════════════════════╝
  228. GOTO END
  229. :END2
  230. CLS
  231. ECHO                        fastmenu PLUS Installation Aborted !
  232. :END
  233.