home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 60.img / DESQV225.ZIP / INST0.BAT < prev    next >
DOS Batch File  |  1989-03-22  |  6KB  |  198 lines

  1. echo off
  2. rem INST0.BAT
  3. rem Comments are at the end of the file
  4. if %2 == %3 goto nosame
  5. if %1 == H goto hard_drv
  6. cls
  7. echo  
  8. echo  
  9. echo  
  10. echo  
  11. echo  
  12. echo  
  13. echo  
  14. echo  
  15. echo         ╔Floppy Disk Installation══════════════════════════╗
  16. echo         ║                           ║
  17. echo         ║   Place the blank diskette you prepared using    ║
  18. echo         ║        the FORMAT/S command in drive %3.          ║
  19. echo         ║                           ║
  20. echo         ╟──────────────────────────────────────────────────╢
  21. echo         ║                Type C to continue.               ║
  22. echo         ╚══════════════════════════════════════════════════╝
  23. echo  
  24. ask 0CQ
  25. cls
  26. if errorlevel 2 stop aborted
  27. :check
  28. %3:
  29. chdir \
  30. if not exist command.com goto nocom
  31. :hard_drv
  32. %2:
  33. if not %2 == A goto echoask
  34. if %1 == F goto chkflp
  35. if not %3 == C goto echoask
  36. ask 9YNQ
  37. goto chkans
  38. :chkflp
  39. if not %3 == B goto echoask
  40. ask :YNQ
  41. goto chkans
  42. :echoask
  43. echo  
  44. echo  
  45. echo  
  46. echo  
  47. echo  
  48. echo  
  49. echo         ╔DESQview Installation ════════════════════════════╗
  50. echo         ║                           ║
  51. echo         ║             You have specified that:             ║
  52. echo         ║                           ║
  53. echo         ║   » The DESQview diskette is now in drive %2.     ║
  54. echo         ║                           ║
  55. echo         ║   » You want DESQview installed on drive %3.      ║
  56. echo         ║                           ║
  57. echo         ║                 Is this correct?                 ║
  58. echo         ║                           ║
  59. echo         ╟──────────────────────────────────────────────────╢
  60. echo         ║         Type Y (for yes) or N (for no).          ║
  61. echo         ╚══════════════════════════════════════════════════╝
  62. echo  
  63. ask 0YNQ
  64. :chkans
  65. cls
  66. if errorlevel 3 goto done
  67. if errorlevel 2 install
  68. %3:
  69. chdir \
  70. if %1 == F goto no_dir
  71. if not %4x==x goto dir4
  72. mkdir \dv >NUL:
  73. chdir \dv >NUL:
  74. goto no_dir
  75. :dir4
  76. mkdir %4 >NUL:
  77. chdir %4 >NUL:
  78. :no_dir
  79. cls
  80. type %2:inprog.txt
  81. if exist desqview.dvo echo ***** Upgrade in progress, configuration files will be preserved *****
  82. if exist desqview.dvo copy %2:stop.bat %3:update.qd >NUL:
  83. if not exist desqview.dvo copy %2:desqview.dvo %3:*.* >NUL:
  84. rem Remove version 1 files not needed
  85. if exist %3:setup.exe del setup.exe
  86. if exist %3:dosserv.exe del dosserv.exe
  87. if exist %3:autoinst.exe del autoinst.exe
  88. if exist %3:dv.com copy %2:xdv.com %3:dv.com >NUL:
  89. copy %2:*.exe %3:*.* >NUL:
  90. copy %2:*.dvr %3:*.* >NUL:
  91. copy %2:*.com %3:*.* >NUL:
  92. copy %2:*.shr %3:*.* >NUL:
  93. del autoinst.com
  94. del convscr.com
  95. if exist demo.com del demo.com
  96. copy %2:*.sys %3:\*.* >NUL:
  97. if not exist bd-pif.dvp copy %2:bd-pif.dvp %3:*.* >NUL:
  98. if not exist d1-pif.dvp copy %2:d1-pif.dvp %3:*.* >NUL:
  99. if not exist ds-pif.dvp copy %2:ds-pif.dvp %3:*.* >NUL:
  100. if not exist sd-pif.dvp copy %2:sd-pif.dvp %3:*.* >NUL:
  101. if not exist ss-pif.dvp copy %2:ss-pif.dvp %3:*.* >NUL:
  102. if not exist ms-pif.dvp copy %2:ms-pif.dvp %3:*.* >NUL:
  103. copy %2:setup.dvp %3:*.* >NUL:
  104. copy %2:ap-pif.dvp %3:*.* >NUL:
  105. copy %2:cp-pif.dvp %3:*.* >NUL:
  106. copy %2:*.dir %3:*.* >NUL:
  107. copy %2:*.doc %3:*.* >NUL:
  108. if %1 == F goto nohard
  109. copy %2:autoinst.com %3:*.* >NUL:
  110. rem if not %3 == C copy %2:dv.bat %3:\dv.bat >NUL:
  111. copy %2:dv.bat %3:\dv.bat >NUL:
  112. rem if     %3 == C copy %2:dc.bat %3:\dv.bat >NUL:
  113. if exist update.qd goto nohard
  114. autoinst
  115. if errorlevel 2 goto done
  116. echo  
  117. echo ***** IMPORTANT *****
  118. echo  
  119. echo The programs listed above have been automatically installed for you in 
  120. echo DESQview.  Please examine this list and be sure that the names listed are
  121. echo really programs installed on your hard disk.
  122. echo  
  123. echo If any names in this list are wrong, jot them down.  Then, when DESQview is
  124. echo running, use the Delete a Program command to remove them from DESQview (see
  125. echo page 62 of the DESQview Manual).  See the note 5 on page 12 of the DESQview
  126. echo Manual for additional information.
  127. echo  
  128. pause
  129. :nohard
  130. if exist update.qd del update.qd
  131. copy %2:setup.bat %3:*.* >NUL:
  132. copy %2:convscr.* %3:*.* >NUL:
  133. copy %2:*.dvh %3:*.* >NUL:
  134. if exist desqview.dvh goto compl
  135. echo  
  136. echo  
  137. echo ***** IMPORTANT *****
  138. echo  
  139. echo There was not enough room on your disk to copy the DESQview help file.
  140. echo This will not affect DESQview except that online help will NOT be available.
  141. echo If you would like to have the help available, you will need to delete some
  142. echo files from this disk and then copy DESQVIEW.DVH to it.  See Appendix G for
  143. echo information about DESQview files.
  144. echo  
  145. echo  
  146. pause
  147. :compl
  148. %2:stop completed %2 %3
  149. :nocom
  150. echo  
  151. echo  
  152. echo  
  153. echo  
  154. echo  
  155. echo  
  156. echo         ╔DESQview Installation ════════════════════════════╗
  157. echo         ║                           ║
  158. echo         ║    There is no file named COMMAND.COM in the     ║
  159. echo         ║           root directory of drive %3.             ║
  160. echo         ║                           ║
  161. echo         ║      If %3 is a hard disk, please follow the      ║
  162. echo         ║  instructions on page 9 of the DESQview Manual.  ║
  163. echo         ║                           ║
  164. echo         ║  If %3 is a floppy drive, you have not prepared   ║
  165. echo         ║       this disk using the FORMAT/S command.      ║
  166. echo         ║         See page 8 of the DESQview Manual.       ║
  167. echo         ║                           ║
  168. echo         ╚══════════════════════════════════════════════════╝
  169. echo  
  170. :done
  171. %2:stop aborted %2
  172. :nosame
  173. echo  
  174. echo  
  175. echo  
  176. echo  
  177. echo  
  178. echo  
  179. echo         ╔DESQview Installation ════════════════════════════╗
  180. echo         ║                           ║
  181. echo         ║    You are trying to install DESQview on the     ║
  182. echo         ║ same drive where you have the DESQview diskette. ║
  183. echo         ║                           ║
  184. echo         ║               This is not allowed!               ║
  185. echo         ║                           ║
  186. echo         ║     You must specify a second drive that is      ║
  187. echo         ║     different from the drive where you have      ║
  188. echo         ║     the DESQview diskette.                       ║
  189. echo         ║                           ║
  190. echo         ╚══════════════════════════════════════════════════╝
  191. echo  
  192. %2:stop aborted %2
  193. rem DESQview Installation Procedure (GAS)
  194. rem Copyright (C) 1988 by Quarterdeck Office Systems
  195. rem Note that the F and H must be CAPITAL
  196. rem %1 = F or H, %2 = DESQview source, %3 = hard drive or second drive letter
  197. rem %4 = subdirectory to use (default \DV)
  198.