home *** CD-ROM | disk | FTP | other *** search
/ Der Mediaplex Sampler - Die 6 von Plex / 6_v_plex.zip / 6_v_plex / DISK5 / DOS_47 / OPSYS204.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1991-02-26  |  10KB  |  172 lines

  1. @echo off
  2. rem
  3. rem +-----------------------------------------+
  4. rem !   OPSYS Install Batch File              !
  5. rem !   Copyright (c) 1990 mcTRONic Systems   !
  6. rem !   Revised on: August 31, 1990           !
  7. rem !   File Name: INSTALL.BAT                !
  8. rem +-----------------------------------------+
  9. rem
  10. cls
  11. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  12. echo    ║                                                                       ║
  13. echo    ║          ▒▒▒▒▒▄     ▒▒▒▒▒▄     ▒▒▒▒▒▄     ▒▄  ▒▄     ▒▒▒▒▒▄           ║
  14. echo    ║          ▒█▀▀▒█     ▒█▀▀▒█     ▒▀▀▀▀▀     ▒█▄▄▒█     ▒▀▀▀▀▀           ║
  15. echo    ║          ▒█  ▒█     ▒▒▒▒▒█      ▀▀▀▒▄      ▒▒▒█▀      ▀▀▀▒▄           ║
  16. echo    ║          ▒▒▒▒▒█     ▒█▀▀▀▀     ▒▒▒▒▒█       ▒█▀      ▒▒▒▒▒█           ║
  17. echo    ║           ▀▀▀▀▀      ▀           ▀▀▀▀        ▀        ▀▀▀▀▀           ║
  18. echo    ║                                                                       ║
  19. echo    ║         An Operating System Multi-Configuration Menu Utility          ║
  20. echo    ║                                                                       ║
  21. :dosok
  22. if NOT exist INSTALL.BAT goto c_error
  23. if "%1"=="" goto a_error
  24. set opsysconfig=
  25. for %%c in (a: A: b: B:) do if %1==%%c goto d_error
  26. for %%c in (Help HELP help ) do if %1==%%c goto help
  27. if NOT exist %1\nul goto b_error
  28. :start
  29. echo    ╠═══════════════════════════════════════════════════════════════════════╝
  30. echo    ║   Install OPSYS in: %1\OPSYS
  31. echo    ╠═══════════════════════════════════════════════════════════════════════╗
  32. echo    ║                                                                       ║
  33. echo    ║ This batch file will install  OPSYS and all of its files on the Hard  ║
  34. echo    ║ Disk you have specified above.  Would you like to continue with this  ║
  35. echo    ║ installation? (Yes/No)                                                ║
  36. echo    ║                                                                       ║
  37. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  38. bh YN
  39. if errorlevel 2 install help
  40. cls
  41. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  42. echo    ║                                                                       ║
  43. echo    ║          ▒▒▒▒▒▄     ▒▒▒▒▒▄     ▒▒▒▒▒▄     ▒▄  ▒▄     ▒▒▒▒▒▄           ║
  44. echo    ║          ▒█▀▀▒█     ▒█▀▀▒█     ▒▀▀▀▀▀     ▒█▄▄▒█     ▒▀▀▀▀▀           ║
  45. echo    ║          ▒█  ▒█     ▒▒▒▒▒█      ▀▀▀▒▄      ▒▒▒█▀      ▀▀▀▒▄           ║
  46. echo    ║          ▒▒▒▒▒█     ▒█▀▀▀▀     ▒▒▒▒▒█       ▒█▀      ▒▒▒▒▒█           ║
  47. echo    ║           ▀▀▀▀▀      ▀           ▀▀▀▀        ▀        ▀▀▀▀▀           ║
  48. echo    ║                                                                       ║
  49. echo    ║         An Operating System Multi-Configuration Menu Utility          ║
  50. echo    ║                                                                       ║
  51. echo    ╠═══════════════════════════════════════════════════════════════════════╣
  52. echo    ║                                                                       ║
  53. if exist %1\opsys\OPSYS.EXE goto update
  54. echo    ║       OPSYS installation now in progress.  Please stand by ....       ║
  55. echo    ║                                                                       ║
  56. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  57. goto cont
  58. :update
  59. echo    ║          OPSYS update now in progress.  Please stand by ....          ║
  60. echo    ║                                                                       ║
  61. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  62. :cont
  63. if NOT exist %1\OPSYS\nul md %1\OPSYS >nul
  64. copy *.* %1\OPSYS >nul
  65. %1\OPSYS\
  66. cd %1\OPSYS
  67. IF EXIST INSTALL.BAT DEL INSTALL.BAT
  68. IF EXIST OPSYS.EXE DEL OPSYS.EXE
  69. if exist OPSYS.BIN RENAME OPSYS.BIN OPSYS.EXE
  70. CLS
  71. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  72. echo    ║                                                                       ║
  73. echo    ║          ▒▒▒▒▒▄     ▒▒▒▒▒▄     ▒▒▒▒▒▄     ▒▄  ▒▄     ▒▒▒▒▒▄           ║
  74. echo    ║          ▒█▀▀▒█     ▒█▀▀▒█     ▒▀▀▀▀▀     ▒█▄▄▒█     ▒▀▀▀▀▀           ║
  75. echo    ║          ▒█  ▒█     ▒▒▒▒▒█      ▀▀▀▒▄      ▒▒▒█▀      ▀▀▀▒▄           ║
  76. echo    ║          ▒▒▒▒▒█     ▒█▀▀▀▀     ▒▒▒▒▒█       ▒█▀      ▒▒▒▒▒█           ║
  77. echo    ║           ▀▀▀▀▀      ▀           ▀▀▀▀        ▀        ▀▀▀▀▀           ║
  78. echo    ║                                                                       ║
  79. echo    ║         An Operating System Multi-Configuration Menu Utility          ║
  80. echo    ║                                                                       ║
  81. echo    ╠═══════════════════════════════════════════════════════════════════════╣
  82. echo    ║                                                                       ║
  83. echo    ║ OPSYS  is  now installed  on your  hard drive  along with  all of its ║
  84. echo    ║ support files.    To print out the OPSYS manual type "DOCUTIL" at the ║
  85. echo    ║ DOS prompt.  If this is a Shareware copy please register your copy if ║
  86. echo    ║ you  decide to use  OPSYS.    To run  OPSYS  you must  change  to the ║
  87. echo    ║ installed directory and enter "OPSYS".    See the OPSYS Documentation ║
  88. echo    ║ for more information.  Thank You !                                    ║
  89. echo    ║                                                                       ║
  90. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  91. echo       CHANGE TO "%1\OPSYS" AND ENTER "OPSYS"
  92. echo    ═════════════════════════════════════════════════════════════════════════
  93. pause
  94. OPSYS /p:%1\opsys
  95. :wantdoc
  96. cls
  97. echo    ╔══════════════════════════════════════════════════════╗
  98. echo    ║                                                      ║
  99. echo    ║  Would you like to run the  OPSYS Document, Display  ║
  100. echo    ║  and Print Utility DOCUTIL NOW (Yes/No)?             ║
  101. echo    ║                                                      ║
  102. echo    ╚══════════════════════════════════════════════════════╝
  103. bh yn
  104. if errorlevel 2 goto done
  105. if errorlevel 1 docutil
  106. GOTO DONE
  107. :help
  108. echo    ╠═══════════════════════════════════════════════════════════════════════╣
  109. goto e_error
  110. :a_error
  111. echo    ╠═══════════════════════════════════════════════════════════════════════╣
  112. echo    ║                                                                       ║
  113. echo    ║   This INSTALL.BAT file needs to know what  Hard Drive you want to    ║
  114. echo    ║   install OPSYS on.  ALL Hard Disk Drive Letters can be entered at    ║
  115. echo    ║   the DOS prompt.  If your HARD DRIVE is C:, D:, E:, F:, or G: and    ║
  116. echo    ║   the predefined  subdirectory name  \OPSYS  is OK, then enter the    ║
  117. echo    ║   Listed Hard Drive Letter to use, or press Q to Quit.                ║
  118. echo    ║                                                                       ║
  119. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  120. bh CDEFGQ
  121. if errorlevel 6 goto nodrive
  122. if errorlevel 5 INSTALL G:
  123. if errorlevel 4 INSTALL F:
  124. if errorlevel 3 INSTALL E:
  125. if errorlevel 2 INSTALL D:
  126. if errorlevel 1 INSTALL C:
  127. :nodrive
  128. cls
  129. echo    ╔═══════════════════════════════════════════════════════════════════════╗
  130. echo    ║                                                                       ║
  131. echo    ║          ▒▒▒▒▒▄     ▒▒▒▒▒▄     ▒▒▒▒▒▄     ▒▄  ▒▄     ▒▒▒▒▒▄           ║
  132. echo    ║          ▒█▀▀▒█     ▒█▀▀▒█     ▒▀▀▀▀▀     ▒█▄▄▒█     ▒▀▀▀▀▀           ║
  133. echo    ║          ▒█  ▒█     ▒▒▒▒▒█      ▀▀▀▒▄      ▒▒▒█▀      ▀▀▀▒▄           ║
  134. echo    ║          ▒▒▒▒▒█     ▒█▀▀▀▀     ▒▒▒▒▒█       ▒█▀      ▒▒▒▒▒█           ║
  135. echo    ║           ▀▀▀▀▀      ▀           ▀▀▀▀        ▀        ▀▀▀▀▀           ║
  136. echo    ║                                                                       ║
  137. echo    ║         An Operating System Multi-Configuration Menu Utility          ║
  138. echo    ║                                                                       ║
  139. echo    ╠═══════════════════════════════════════════════════════════════════════╣
  140. echo    ║                                                                       ║
  141. echo    ║  PROBLEM: What is your TARGET Drive ?  A TARGET Drive is required!    ║
  142. goto e_error
  143. :b_error
  144. echo    ╠═══════════════════════════════════════════════════════════════════════╣
  145. echo    ║                                                                       ║
  146. echo    ║  PROBLEM: The drive\directory Specified DOES NOT EXIST!               ║
  147. goto e_error
  148. :c_error
  149. echo    ╠═══════════════════════════════════════════════════════════════════════╣
  150. echo    ║                                                                       ║
  151. echo    ║  PROBLEM: "INSTALL.BAT" is NOT Located in the Default Drive!          ║
  152. goto :e_error
  153. :d_error
  154. echo    ╠═══════════════════════════════════════════════════════════════════════╣
  155. echo    ║                                                                       ║
  156. echo    ║  PROBLEM: Floppy Disk installation not required.  For Hard Disk Only! ║
  157. :e_error
  158. echo    ║                                                                       ║
  159. echo    ║  Syntax: "INSTALL d:[\path]"                                          ║
  160. echo    ║                                                                       ║
  161. echo    ║  This INSTALL  batch file must be located in the default drive.  The  ║
  162. echo    ║  target disk drive d is a required parameter and must be a HARD DISK  ║
  163. echo    ║  DRIVE while the  \path  is optional.  The  final sub-directory will  ║
  164. echo    ║  always be named OPSYS.  INSTALL C:  will install OPSYS in C:\OPSYS.  ║
  165. echo    ║  INSTALL C:\UTILITY will install OPSYS in C:\UTILITY\OPSYS.   Please  ║
  166. echo    ║  rerun INSTALL with required parameters.                              ║
  167. echo    ╚═══════════════════════════════════════════════════════════════════════╝
  168. pause
  169. goto wantdoc
  170. :done
  171. cls
  172.