home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c220 / 1.ddi / INSTALL1.DAT < prev    next >
Encoding:
Text File  |  1990-12-16  |  6.8 KB  |  238 lines

  1. $$$loc$$$
  2. $$$nomsg$$$
  3. ::@echo off
  4.  
  5. :set 21
  6. :set 22
  7. :string 8
  8.  
  9. Please enter the serial number found on
  10. the label of your High C distribution disk.
  11.  
  12. Serial Number: :endstring
  13.  
  14. :if 6
  15. :msg
  16. :msg
  17. :msg High C requires approximately 4.5 megabytes of disk space.
  18. :msg You do not have enough available disk space.
  19. :msg
  20. :askyn 21 Do you wish to continue?  
  21. :msg
  22. :msg
  23. :endif
  24.  
  25. :if 21
  26.  
  27. :if 7
  28. :msg
  29. :msg
  30. :msg WARNING!!! There are existing files and/or sub-directories in the
  31. :msg target disk directory. This installation process may replace those
  32. :msg files with High C files.
  33. :msg
  34. :askyn 22 Do you wish to continue?  
  35. :msg
  36. :msg
  37. :endif
  38.  
  39. :if 22
  40.  
  41. echo  
  42. echo  
  43. echo │
  44. echo │ Installing MetaWare High C from %1 to %2
  45. echo │
  46. echo  
  47. echo  
  48.  
  49. :ask1
  50. if exist %1hc_v17.1 goto dsk1ok
  51. echo 
  52. echo │
  53. echo │  The disk in drive %1 is not the first High C diskette.
  54. echo │  Please put the first High C diskette in drive %1.
  55. echo │
  56. pause
  57. goto ask1
  58. :dsk1ok
  59.  
  60. echo │
  61. echo │  First we insure there are no read only files in the target directory.
  62. echo │
  63.  
  64. %1\bin\find %2 -attr- r > nul:
  65. copy %1\installt.com %2 > nul:
  66.  
  67. echo │  Copy readme files.
  68. %1\bin\find %1 -name readme -name readme.* -nr -t -cp %2
  69. echo │  Create the \bin subdirectory, for all the executable files.
  70. %1\bin\find %1bin -t -cp %2
  71.  
  72. echo #include hc386.cnf>%2\bin\hcxref.cnf
  73.  
  74. rem get the serial number.
  75.  
  76. :msg
  77. :msg
  78. :msg Each MetaWare compiler is assigned a serial number.
  79. :msg This serial number is required when you call MetaWare Technical
  80. :msg Support. To make it easier for you to find this number, the
  81. :msg compiler will display it each time it is run.
  82.  
  83. echo $$$loc$$$:serial>%2\bin\xpq87.tmp
  84. if exist %2\bin\serialno del %2\bin\serialno > nul:
  85. %2\installt **;%2\bin\xpq87.tmp;%2\bin\serialno
  86. if errorlevel 1 goto finis
  87. if exist %2\bin\xpq87.tmp del %2\bin\xpq87.tmp > nul:
  88.  
  89. :msg If you purchased the MetaWare Debugger, you can choose to
  90. :msg install it along with the compiler.
  91. :msg
  92. :askyn 20 Would you like to install the debugger along with the compiler? 
  93.  
  94. :ask2
  95. echo ┌────────────────────────────────────────────────────────────────────┐
  96. echo │   Place compiler diskette TWO in your %1 drive.                    │
  97. echo └────────────────────────────────────────────────────────────────────┘
  98. pause
  99. if exist %1hc_v17.2 goto dsk2ok
  100. echo 
  101. echo │
  102. echo │  The disk in drive %1 is not the second High C diskette.
  103. echo │  Please put the second High C diskette in drive %1.
  104. echo │
  105. goto ask2
  106. :dsk2ok
  107.  
  108. echo │
  109. echo │  Thank you.
  110. echo │
  111.  
  112. echo │  Copy more programs to the \bin subdirectory.
  113. %2\bin\find %1\bin -t -cp %2
  114. %2\bin\config %2\bin\hcd386p.exe <%2\bin\serialno >nul
  115. %2\bin\config %2\bin\hcd386.exe <%2\bin\serialno >nul
  116. del %2\bin\serialno > nul:
  117.  
  118. :ask3
  119. echo ┌────────────────────────────────────────────────────────────────────┐
  120. echo │   Place compiler diskette THREE in your %1 drive.                  │
  121. echo └────────────────────────────────────────────────────────────────────┘
  122. pause
  123. if exist %1hc_v17.3 goto dsk3ok
  124. echo 
  125. echo │
  126. echo │  The disk in drive %1 is not the third High C diskette.
  127. echo │  Please put the third High C diskette in drive %1.
  128. echo │
  129. goto ask3
  130. :dsk3ok
  131.  
  132. echo │
  133. echo │  Thank you.
  134. echo │
  135.  
  136. echo │  Copy more programs to the \bin subdirectory.
  137. %2\bin\find %1\bin -t -cp %2
  138. copy %2\bin\hc386.exe %2\bin\hcxref.exe > nul:
  139. echo │  Copy Weitek ABACUS support files to the \weitek subdirectory.
  140. %2\bin\find %1weitek -cp %2 -t
  141.  
  142. :ask4
  143. echo ┌────────────────────────────────────────────────────────────────────┐
  144. echo │   Place compiler diskette FOUR in your %1 drive.                   │
  145. echo └────────────────────────────────────────────────────────────────────┘
  146. pause
  147.  
  148. if exist %1hc_v17.4 goto dsk4ok
  149. echo 
  150. echo │
  151. echo │  The disk in drive %1 is not the fourth High C diskette.
  152. echo │  Please put the fourth High C diskette in drive %1.
  153. echo │
  154. goto ask4
  155. :dsk4ok
  156.  
  157. echo │
  158. echo │  Thank you.
  159. echo │
  160.  
  161. echo │  Copy the demo programs to the \demos subdirectory.
  162. %2\bin\find %1demos -cp %2 -t
  163. echo │  Copy other files to the \etc subdirectory.
  164. %2\bin\find %1etc -cp %2 -t
  165. echo │  Copy example programs to the \examples subdirectory.
  166. %2\bin\find %1examples -cp %2 -t
  167. echo │  Copy the include files to the \inc subdirectory.
  168. %2\bin\find %1inc -cp %2 -t
  169. echo │  Copy selected library source code to the \lib subdirectory.
  170. %2\bin\find %1lib -cp %2 -t
  171. echo │  Copy the object module libraries to the \small subdirectory.
  172. %2\bin\find %1small -cp %2 -t
  173.  
  174. echo $$$thisdir$$$>%2\bin\xpq87.tmp
  175. echo :=5>>%2\bin\xpq87.tmp
  176. %2\installt **;%2\bin\xpq87.tmp;%2\bin\serialno
  177. if errorlevel 1 goto finis
  178. del %2\installt.com > nul:
  179. del %2\bin\xpq87.tmp > nul:
  180.  
  181. %2\bin\autocfig %2\bin\hcd386.exe > nul:
  182.  
  183. echo ┌────────────────────────────────────────────────────────────────────┐
  184. echo │                                                                    │
  185. echo │    Installation of the High C 386 Locally Optimizing Compiler,     │
  186. echo │                libraries, and utilities is complete.               │
  187. echo │                                                                    │
  188. echo │    Both the protected-mode-hosted and real-mode-hosted compilers   │
  189. echo │    have been installed.  By default, the protected-mode-hosted     │
  190. echo │    compiler will be used.  See the installation guide for a        │
  191. echo │    discussion of how to switch between the protected- and real-    │
  192. echo │    mode-hosted compilers.                                          │
  193. echo │                                                                    │
  194. echo │      Now you can run "bin\DEMO" for some sample compilations.      │
  195. echo │                                                                    │
  196. echo │                         You should include                         │
  197. type %2\bin\serialno
  198. del %2\bin\serialno > nul:
  199. echo │                  in your autoexec.bat PATH= command.               │
  200. echo │                                                                    │
  201. echo │      To modify the configuration file, edit bin\hc386set.cnf       │
  202. echo │                                                                    │
  203. echo └────────────────────────────────────────────────────────────────────┘
  204.  
  205. :if 20
  206. :askdbg
  207. echo ┌────────────────────────────────────────────────────────────────────┐
  208. echo │  Place the Debugger disk in your %1 drive.                         │
  209. echo └────────────────────────────────────────────────────────────────────┘
  210. pause
  211.  
  212. if exist %1mw_db.1 goto dbgdskok
  213. echo 
  214. echo │
  215. echo │  The disk in drive %1 is not the Debugger diskette.
  216. echo │  Please put the Debugger diskette in drive %1.
  217. echo │
  218. goto askdbg
  219. :dbgdskok
  220.  
  221. echo │
  222. echo │  Thank you.
  223. echo │
  224.  
  225. %1install CONTINUE
  226. goto finis
  227. :endif
  228.  
  229. :ifn 20
  230. goto finis
  231. :endif
  232.  
  233.  
  234. :finis
  235. :endif 22
  236. :endif 21
  237. if exist %1cleanup.bat %1cleanup %1 %2\
  238.