home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / demos / nddemo.arj / INSTALL.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-09-24  |  8.9 KB  |  299 lines

  1. :: --------------------------------------------
  2. :: Installation Program for Norton Desktop
  3. :: (c) 1991 AdWare, Inc.
  4. :: --------------------------------------------
  5. echo off
  6. cls
  7. :: ------------------------------------ Get rid of colon, if typed in
  8. if "%1" == "" goto nodrive
  9. if "%1" == "c:" install C
  10. if "%1" == "C:" install C
  11. if "%1" == "d:" install D
  12. if "%1" == "D:" install D
  13. if "%1" == "e:" install E
  14. if "%1" == "E:" install E
  15. if "%1" == "f:" install F
  16. if "%1" == "F:" install F
  17. if "%1" == "g:" install G
  18. if "%1" == "G:" install G
  19. if "%1" == "h:" install H
  20. if "%1" == "H:" install H
  21. if "%1" == "i:" install I
  22. if "%1" == "I:" install I
  23. if "%1" == "j:" install J
  24. if "%1" == "J:" install J
  25. if "%1" == "k:" install K
  26. if "%1" == "K:" install K
  27. if "%1" == "l:" install L
  28. if "%1" == "L:" install L
  29. if "%1" == "m:" install M
  30. if "%1" == "M:" install M
  31. if "%1" == "n:" install N
  32. if "%1" == "N:" install N
  33. if "%1" == "o:" install O
  34. if "%1" == "O:" install O
  35. if "%1" == "p:" install P
  36. if "%1" == "P:" install P
  37. if "%1" == "q:" install Q
  38. if "%1" == "Q:" install Q
  39. if "%1" == "r:" install R
  40. if "%1" == "R:" install R
  41. if "%1" == "s:" install S
  42. if "%1" == "S:" install S
  43. if "%1" == "t:" install T
  44. if "%1" == "T:" install T
  45. if "%1" == "u:" install U
  46. if "%1" == "U:" install U
  47. if "%1" == "v:" install V
  48. if "%1" == "V:" install V
  49. if "%1" == "w:" install W
  50. if "%1" == "W:" install W
  51. if "%1" == "x:" install X
  52. if "%1" == "X:" install X
  53. if "%1" == "y:" install Y
  54. if "%1" == "Y:" install Y
  55. if "%1" == "z:" install Z
  56. if "%1" == "Z:" install Z
  57. ::
  58. :: ------------------------------------ Check for enough space on drive
  59. echo off
  60. dfree %1: 1800000
  61. if errorlevel 1 goto nofree
  62. ::
  63. :: ------------------------------------ Check for Installation Conditions
  64. ::
  65. if not exist ND_pak.exe goto filefail
  66. if not exist NDDEMO.BAT goto filefail
  67. ::
  68. :: ------------------------------------ Start Installation
  69. ::
  70. echo.
  71. echo       Norton Desktop Demo Disk Install
  72. echo       ═════════════════════════════════════
  73. echo.
  74. echo       Make sure that your Norton Desktop Demo
  75. echo       Disk is in disk drive A: or B:
  76. echo       ─────────────────────────────────────
  77. echo.
  78. echo       This installation program will create
  79. echo       a directory called %1:\NDDEMO.
  80. echo.
  81. echo       1.8 megabytes of free disk space
  82. echo       on your %1: drive is required for
  83. echo       the installation process.
  84. echo       ─────────────────────────────────────
  85. echo.
  86. echo       To quit this installation,
  87. echo       press [CTRL] [C] or [CTRL] [BREAK].
  88. echo.
  89. echo       Or press any key to continue
  90. pause >nul
  91. cls
  92. :: ------------------------------------ Make directory
  93. md %1:\NDDEMO
  94. :: ------------------------------------ Mask out "Unable to create directory"
  95. cls
  96. echo.  
  97. echo       Norton Desktop Demo Disk Install
  98. echo       ══════════════════════════════════
  99. echo.
  100. echo       Now unpacking demo files onto your
  101. echo       %1: hard disk drive partition...
  102. echo       ──────────────────────────────────
  103. echo.
  104. :: ------------------------------------ unpack demo and copy batch file
  105. ND_pak %1:\NDDEMO
  106. if errorlevel 1 goto failinst
  107. copy NDDEMO.bat %1:\NDDEMO
  108. copy ND_DEMO.pif %1:\NDDEMO
  109. if errorlevel 1 goto failinst
  110. :: cls
  111. goto success
  112. :: --------
  113. :success
  114. :: --------
  115. ::
  116. :: ----------------------------------- Change to user designated drive
  117. ::
  118. %1:
  119. cd \NDDEMO
  120. ::
  121. :: ----------------------------------- Check for unsuccessful unzip
  122. ::
  123. if not exist ND_demo.exe goto failinst
  124. if not exist NDDEMO.bat goto failinst
  125. ::
  126. :: ----------------------------------- Putup successful message
  127. ::
  128. cls
  129. echo.
  130. echo       Norton Desktop Demo Disk Install
  131. echo       ═══════════════════════════════════════════════════════
  132. echo.
  133. echo       You have successfully installed the Norton Desktop demo.
  134. echo.
  135. echo       To start the demo from DOS, type: NDDEMO and press the
  136. echo       Enter key.
  137. echo.
  138. echo       You can also run the demo from Windows.  For smoothest
  139. echo       results, run Windows in real mode (WIN /R) or standard
  140. echo       mode (WIN /S).
  141. echo.
  142. echo       ────────────────────────────────────────────────────────
  143. echo.
  144. echo       You can quit by pressing [CTRL] [C] or [CTRL] [BREAK]
  145. goto exit
  146. :: --------
  147. :failinst
  148. :: --------
  149. :: ----------------------------------- Change File Name for Current Demo
  150. ::
  151. cls
  152. echo       Norton Desktop Demo Disk Install Problem 1
  153. echo.    
  154. echo       ═════════════════════════════════════════════════════
  155. echo.
  156. echo       We are sorry, but an error occured during the
  157. echo       unpacking of the Norton Desktop demo files
  158. echo.
  159. echo       To correctly install on your hard disk drive, first
  160. echo       log onto the drive where INSTALL resides and type:
  161. echo.
  162. echo       "INSTALL X"
  163. echo.
  164. echo         (X is the hard disk drive partition you designate)
  165. echo       ─────────────────────────────────────────────────────
  166. echo.
  167. echo       You can quit by pressing [CTRL] [C] or [CTRL] [BREAK]
  168. echo       Or press any key for more information
  169. echo.
  170. pause >nul
  171. :: --------
  172. cls
  173. echo       Norton Desktop Demo Disk Install Problem 2
  174. echo.    
  175. echo       ═════════════════════════════════════════════════════
  176. echo.
  177. echo       A likely problem was the failure of the installation
  178. echo       program to properly "unpack" the key demo file:
  179. echo.
  180. echo             ND_PAK.EXE
  181. echo.
  182. echo       Check to see if these files are in your %1:\NDDEMO
  183. echo       directory.  If they exist, then simply type NDDEMO
  184. echo       and see if the demo plays.
  185. echo.
  186. echo       If they don't exist, then please try again.
  187. echo       ─────────────────────────────────────────────────────
  188. echo.
  189. echo       You can quit by pressing [CTRL] [C] or [CTRL] [BREAK]
  190. echo       Or press any key for more information
  191. echo.
  192. pause >nul
  193. :: --------
  194. cls
  195. echo       Norton Desktop Demo Disk Install Problem 3
  196. echo       ═════════════════════════════════════════════════════
  197. echo.    
  198. echo         If you fail again, then try manually installing the
  199. echo         demo as follows:
  200. echo.    
  201. echo         1. Make a directory called NDDEMO on your hard drive
  202. echo            ──Make sure you have at least 1.8 MB of free space
  203. echo.
  204. echo         2. Copy the ND_PAK.EXE and NDDEMO.BAT files
  205. echo            from the demo disk into the \NDDEMO directory
  206. echo.
  207. echo         3. Type: "CD \NDDEMO"
  208. echo.
  209. echo         4. Type: "ND_PAK" and watch the demo unpack itself
  210. echo.
  211. echo         5. Type: NDDEMO
  212. echo.
  213. echo         We're sorry you had to go through this
  214. echo         ──but the demo should work now!
  215. echo       ─────────────────────────────────────────────────────
  216. goto exit
  217.  
  218. :: --------
  219. :nofree
  220. :: --------
  221. cls
  222. echo.
  223. echo       Norton Desktop Demo Disk Install
  224. echo       ════════════════════════════════════════
  225. echo.
  226. echo       We are sorry, but the hard disk drive
  227. echo       partition you selected (%1:) does not
  228. echo       have enough free space to copy the
  229. echo       Norton Desktop demo files.
  230. echo.
  231. echo       Or, the %1: hard disk drive partition
  232. echo       you selected does not exist or was
  233. echo       incorrectly typed in.
  234. echo. 
  235. echo       Please remove any unnecessary files
  236. echo       and directories to create at least 1.8 MB
  237. echo       of free disk space, then repeat the
  238. echo       installation, or choose another valid
  239. echo       partition with sufficient space.
  240. echo       ────────────────────────────────────────
  241. goto exit
  242.  
  243. :: --------
  244. :nodrive
  245. :: --------
  246. echo.
  247. echo       To install the Norton Desktop Demo Disk:
  248. echo       ════════════════════════════════════════════════════════
  249. echo.
  250. echo       Make room on your hard disk for the 1.8 megabytes
  251. echo       needed for the demo, after it's decompressed.
  252. echo.
  253. echo       Put your Norton Desktop Demo Disk in disk drive A: or B:
  254. echo.
  255. echo       Log onto the drive with the Demo Disk and type:
  256. echo. 
  257. echo       "INSTALL X:"    (where X is the hard disk drive
  258. echo                        which has 1.8 Meg of storage available)
  259. echo       ────────────────────────────────────────────────────────
  260. echo.
  261. echo       For example:    "A:"
  262. echo                       "A:\>INSTALL C:"
  263. echo.
  264. echo       The installation program would create a directory
  265. echo       called C:\NDDEMO.  Then, the compressed demo file,
  266. echo       ND_PAK.EXE, would self extract as c:\NDDEMO\ND_DEMO.EXE.
  267. echo       ────────────────────────────────────────────────────────
  268. goto exit
  269.  
  270. :: --------
  271. :filefail
  272. :: --------
  273. cls
  274. echo.
  275. echo       Norton Desktop Demo Disk Install
  276. echo       ═══════════════════════════════════════════════
  277. echo.
  278. echo       One of the following files was not found
  279. echo       on your current drive and directory:
  280. echo.
  281. echo                ND_PAK.EXE
  282. echo                NDDEMO.BAT
  283. echo.
  284. echo       Be sure to log onto the drive and directory
  285. echo       which has the INSTALL.BAT file, before typing: 
  286. echo.
  287. echo                INSTALL %1
  288. echo.
  289. echo       ───────────────────────────────────────────────
  290. goto exit
  291.  
  292. :: --------
  293. :exit
  294. :: --------
  295. echo. 
  296. echo       Press any key to continue
  297. pause >nul
  298. exit
  299.