home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1994 February / psl_9403.zip / psl_9403 / DOS / EDUCA / CNOTEBK.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-12-01  |  14KB  |  470 lines

  1. @echo off
  2. cls
  3. if "%1" == ""  goto explain
  4. if "%1" == "?" goto explain1
  5. goto hardwar1
  6. :install
  7. if "%1" == "C" goto installa
  8. if "%1" == "D" goto installa
  9. if "%1" == "E" goto installa
  10. if "%1" == "F" goto installa
  11. goto drivechk
  12. :installa
  13. @echo off
  14. if not "%2" == ""  goto installb
  15. if exist %1:\usa\options.lxx goto warning1
  16. if exist %1:\usa\*.* goto fail3
  17. goto chk1a 
  18. :installb
  19. if exist %1:\%2\options.lxx goto warning1
  20. if exist %1:\%2\*.* goto fail3
  21. :chk1a
  22. if "%2" == "" tcnstall %1:\usa
  23. if not "%2" == "" tcnstall %1:\%2
  24. goto pass1
  25. :warning1
  26. cls
  27. echo WARNING!!!
  28. echo.
  29. echo A copy of the TCN program already exists.  If you continue, it will be
  30. echo overwritten and any previous work you have done will be lost.
  31. echo.
  32. echo To avoid overwriting, use the CTRL + C key combination and then type a Y
  33. echo according to the following instructions:
  34. echo.
  35. echo     1)  Press and hold the CTRL key.
  36. echo     2)  Type the letter C.
  37. echo     3)  Release both keys.  A prompt appears "Terminate batch job (Y/N)?"
  38. echo     4)  Type the letter Y.
  39. echo.
  40. echo The DOS prompt appears.  Type INSTALL ? to get information about changing
  41. echo install target drive and directory.
  42. echo.
  43. echo If you want to overwrite, press any other key.
  44. echo.
  45. pause
  46. cls
  47. echo Press and hold the "Y" key to overwrite all files.  When you hear
  48. echo rapid beeping sounds coming from your computer, release the "Y" key.
  49. echo When file extraction stops, hold the "Y" key down some more.
  50. echo.
  51. echo Continue this process until you get a DOS prompt.
  52. echo.
  53. goto chk1a
  54. :fail1
  55. cls
  56. echo Installation was not successful.
  57. echo.
  58. echo You typed the following command:
  59. echo.
  60. echo     INSTALL %1 %2
  61. echo.
  62. echo Verify the letter you specified (%1) is a valid drive.  Also, verify
  63. echo that you did NOT type a colon after the letter.
  64. echo.
  65. if not "%2" == "" echo Verify the path you specified (%2) is valid.
  66. echo.
  67. echo Type INSTALL with: 
  68. echo.
  69. echo      a different drive letter, or 
  70. if not "%2" == "" echo      a different path, or
  71. echo      the ? option.
  72. ECHO.
  73. goto end
  74. :fail3
  75. cls
  76. echo Installation was not attempted.
  77. echo.
  78. echo The install path that you specified is already in use.
  79. echo.
  80. echo You typed the following command:
  81. echo.
  82. echo     INSTALL %1 %2 
  83. echo.
  84. echo Type INSTALL with: 
  85. echo.
  86. echo      a different drive letter, or 
  87. if not "%2" == "" echo      a different path (option 2), or
  88. if "%2" == "" echo      a path specified (other than USA) using option 2, or
  89. echo      the ? option.
  90. echo.
  91. goto end
  92. :explain
  93. cls
  94. echo This INSTALL.BAT file installs version 2.0 of the TCN program on your hard
  95. echo drive.
  96. echo.
  97. goto hardware
  98. :parms
  99. echo When using INSTALL.BAT to perform installation of the TCN program, one
  100. echo option is REQUIRED.
  101. echo.
  102. echo The single REQUIRED option is the drive letter of the hard drive where you
  103. echo want to install the TCN program.
  104. echo.
  105. echo Type the letter ONLY, no colon.
  106. echo.
  107. echo EXAMPLE 1: To install the TCN program on your C: drive, type the following
  108. echo.
  109. echo          INSTALL C
  110. echo.
  111. echo EXAMPLE 2:  To install the TCN program on your D: drive, type
  112. echo.
  113. echo          INSTALL D
  114. echo.
  115. pause
  116. cls
  117. echo The TCN program will be installed on the drive you specify in a directory
  118. echo named USA.
  119. echo.
  120. echo You can change the directory name if you want to.
  121. echo.
  122. echo Type INSTALL ? for more information.
  123. echo.
  124. echo OR, type INSTALL followed by a drive letter to get started.
  125. echo.
  126. pause
  127. echo NOTE: For faster execution of INSTALL.BAT, turn on CAPS LOCK or type
  128. echo all capital letters.  Select a hard drive letter between C and F,
  129. echo inclusive.  Do not type a colon with the drive letter.
  130. echo.
  131. goto end.
  132. :explain1
  133. echo One option is REQUIRED to use this INSTALL.BAT file.
  134. echo.
  135. echo One additional option can be used.
  136. echo.
  137. echo Option(s) are typed on the command line with the INSTALL command.  A space
  138. echo must precede each option.
  139. echo.
  140. pause
  141. cls
  142. echo The first option (REQUIRED) is a drive letter.
  143. echo.
  144. echo The drive specified must: 
  145. echo.
  146. echo     1) exist on your computer,
  147. echo     2) not be write protected,
  148. echo     3) not be a CD-ROM (read-only) drive, and
  149. echo     4) have at least 1 megabyte of available space.
  150. echo.
  151. echo Do not type a colon or a backslash with the letter.
  152. echo.
  153. pause
  154. cls
  155. echo The 2nd option (not REQUIRED) specifies the name of the directory in which
  156. echo to install the TCN program.
  157. echo.
  158. echo The default install directory name is USA.
  159. echo.
  160. echo You can specify any valid directory name including USA.
  161. echo.
  162. echo Do not use a colon or a leading backslash.
  163. echo.
  164. echo EXAMPLE 1:  To install the TCN program on drive C in a directory named TCN
  165. echo type
  166. echo.
  167. echo          INSTALL C TCN
  168. echo.
  169. echo EXAMPLE 2.  To install the TCN program on drive D in a directory named
  170. echo MYTCN, type
  171. echo.
  172. echo           INSTALL D MYTCN
  173. echo.
  174. goto end
  175. :hardware
  176. pause
  177. :hardwar1
  178. cls
  179. echo HARDWARE REQUIREMENTS
  180. echo.
  181. echo To install and evaluate the TCN program, you must have at least one 
  182. echo megabyte of space available on the target hard drive.  More is better.
  183. echo.
  184. echo Also, your computer must have at least 640K RAM.  At least 500 K of
  185. echo conventional RAM must be available at the DOS prompt.  Use DOS command
  186. echo MEM or CHKDSK to find out how much conventional RAM is available.
  187. echo.
  188. echo DOS 6 users can use MemMaker to free up more space if needed.
  189. echo.
  190. echo To evaluate available RAM now, press and hold the CTRL key, type the 
  191. echo letter C, release both keys, and then type a Y.  If so, you are returned 
  192. echo to DOS to use MEM or CHKDSK.  Any other key continues installation.
  193. echo.
  194. pause
  195. cls
  196. echo ACKNOWLEDGMENT
  197. echo.
  198. echo LHA is a public domain file compression utility written and copyrighted
  199. echo 1988-91 by Haruyasu Yoshizaki of Japan.
  200. echo.
  201. echo TCNSTALL.EXE is a self-extracting archive created using LHA version 2.13
  202. echo with the large model option.
  203. echo.
  204. echo TCNbP Company hereby:
  205. echo.
  206. echo      congratulates the author of LHA for the excellent 
  207. echo      technical accomplishment it is, 
  208. echo.
  209. echo      acknowledges the enormous effort involved in the realization
  210. echo      of such a work, and
  211. echo.
  212. echo      gratefully accepts his permission to use LHA.
  213. echo.
  214. pause
  215. if not "%1" == "" goto install
  216. cls
  217. echo You can use the INSTALL.BAT file with one or two options to install the TCN
  218. echo Program.
  219. echo.
  220. echo OR, you can type TCNSTALL followed by the drive and path where you want
  221. echo to install the TCN program.  Drive and path can be any valid DOS path
  222. echo on a drive with at least 1 megabyte of free space available.
  223. echo.
  224. pause
  225. cls
  226. if "%1" == "" goto parms
  227. goto install
  228. :drivechk
  229. echo on
  230. if "%1" == "c" goto installa
  231. if "%1" == "C:" goto ginstall
  232. if "%1" == "c:" goto ginstall
  233. if "%1" == "d" goto installa
  234. if "%1" == "D:" goto ginstall
  235. if "%1" == "d:" goto ginstall
  236. if "%1" == "e" goto installa
  237. if "%1" == "E:" goto ginstall
  238. if "%1" == "e:" goto ginstall
  239. if "%1" == "f" goto installa
  240. if "%1" == "F:" goto ginstall
  241. if "%1" == "f:" goto ginstall
  242. if "%1" == "G:" goto ginstall
  243. if "%1" == "G" goto installa
  244. if "%1" == "g" goto installa
  245. if "%1" == "g:" goto ginstall
  246. if "%1" == "H:" goto ginstall
  247. if "%1" == "H" goto installa
  248. if "%1" == "h" goto installa
  249. if "%1" == "h:" goto ginstall
  250. if "%1" == "I:" goto ginstall
  251. if "%1" == "I" goto installa
  252. if "%1" == "i" goto installa
  253. if "%1" == "i:" goto ginstall
  254. if "%1" == "J:" goto ginstall
  255. if "%1" == "J" goto installa
  256. if "%1" == "j" goto installa
  257. if "%1" == "j:" goto ginstall
  258. if "%1" == "K:" goto ginstall
  259. if "%1" == "K" goto installa
  260. if "%1" == "k" goto installa
  261. if "%1" == "k:" goto ginstall
  262. if "%1" == "L:" goto ginstall
  263. if "%1" == "L" goto installa
  264. if "%1" == "l" goto installa
  265. if "%1" == "l:" goto ginstall
  266. if "%1" == "M:" goto ginstall
  267. if "%1" == "M" goto installa
  268. if "%1" == "m" goto installa
  269. if "%1" == "m:" goto ginstall
  270. if "%1" == "N:" goto ginstall
  271. if "%1" == "N" goto installa
  272. if "%1" == "n" goto installa
  273. if "%1" == "n:" goto ginstall
  274. if "%1" == "O:" goto ginstall
  275. if "%1" == "O" goto installa
  276. if "%1" == "o