home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / lant / neteval.arc / NCSINST.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-01-30  |  14.4 KB  |  506 lines

  1. echo off
  2. cls
  3. echo  
  4. echo                       ╔═════════════════════════╗
  5. echo                       ║ ┌─────────────────────┐ ║
  6. echo                       ║ │       ███  ███      │ ║
  7. echo                       ║ │       ███  ███      │ ║
  8. echo                       ║ │       ███  ███      │ ║
  9. echo                       ║ │       ███  ███      │ ║
  10. echo                       ║ │ ▄▄▄   ███  ███      │ ║
  11. echo                       ║ │ ███   ███  ███      │ ║
  12. echo                       ║ │ ▀██▄▄▄█▀   ████████ │ ║
  13. echo                       ║ │   ▀▀▀▀     ▀▀▀▀▀▀▀▀ │ ║
  14. echo                       ║ └─────────────────────┘ ║
  15. echo                       ╚═════════════════════════╝
  16. echo  
  17. echo                      █      █    ▄▀▀▀▀▀▄   ▄▀▀▀▀▀▄  TM
  18. echo                      █▀▄    █   █          █                 NETWORK
  19. ECho                      █  ▀▄  █   █           ▀▀▀▀▀▄           COMMUNICATION
  20. echo                      █    ▀▄█   █                █           SERVER
  21. echo                      █      █    ▀▄▄▄▄▄▀   ▀▄▄▄▄▄▀      
  22. echo                                                       
  23. ECHO                                                       Version 5.0
  24. echo  
  25. echo                Press any key to start the NCS installation
  26. pause>nul
  27. cls
  28. echo  
  29. echo                      INSTALLATION PROCEDURE                        NCS (tm)
  30. echo                      ──────────────────────                       Ver. 5.00
  31. echo  
  32. echo               1. Make a directory on network drive.
  33. echo               2. Change to that directory.
  34. echo               3. Type A and press ┘Enter.
  35. echo  
  36. echo               4. The command switches to install the software are:
  37. echo  
  38. echo                        NCSINST   F   U
  39. echo                                     
  40. echo                                  │   │
  41. ECHO                  Drive letter  ──┘   └──  Upgrade Option
  42. ECHO                   (NO COLON)             (any NCS version)
  43. echo  
  44. ECHO  
  45. echo    Examples:
  46. echo    ─────────
  47. ECHO           1. NCSINST F U     =   Upgrade Previous NCS To Ver.5.00 On Drive F.
  48. echo           2. NCSINST F       =   New NCS Ver.5.00 Installation On Drive F.
  49. echo  
  50. ECHO  
  51. echo   Ctrl-C to abort the installation, any other key to continue ...
  52. pause>nul
  53. if %1x==x goto no_drive
  54. if not exist pkunzip.exe goto bad_disk
  55. if not exist ncsfiles.zip goto bad_disk
  56. if %2x==x goto new_install
  57. if %2x==x goto new_install
  58. if not exist %1:ncsserv.ncs goto error3
  59. rem else if updating (ncsserv.ncs) found
  60. goto detr_update
  61. :new_install
  62. if exist %1:*.* goto bad_current
  63. cls
  64. echo  
  65. ECHO                          INSTALLATION PROCEDURE                    NCS (tm)
  66. ECHO                          ──────────────────────                   Ver. 5.00
  67. ECHO  
  68. ECHO      First Time Installation:
  69. echo      ────────────────────────
  70. echo  
  71. echo  
  72. echo      The NCS software files will be placed in the directory:
  73. echo  
  74. cd %1:
  75. echo  
  76. echo  
  77. echo  
  78. echo  
  79. echo  
  80. echo  
  81. echo  
  82. echo  
  83. echo  
  84. echo  
  85. echo      Ctrl-C to abort the installation, any other key to continue ...
  86. pause>nul
  87. cls
  88. echo  
  89. echo                          INSTALLATION PROCEDURE                    NCS (tm)
  90. echo                          ──────────────────────                   Ver. 5.00
  91. echo  
  92. echo Copying Files
  93. echo ─────────────
  94. copy *.* %1:
  95. cls
  96. %1:pkunzip -o %1:ncsfiles.zip %1:
  97. if exist %1:ncsfiles.zip del %1:ncsfiles.zip
  98. if exist %1:pkunzip.exe del %1:pkunzip.exe
  99. if exist %1:ncsinst.bat del %1:ncsinst.bat
  100. if exist %1:chk*.com del %1:chk*.com
  101. if exist %1:cvt*.com del %1:cvt*.com
  102. goto exit
  103. :detr_update
  104. cls
  105. echo  
  106. echo                          INSTALLATION PROCEDURE                    NCS (tm)
  107. ECHO                          ──────────────────────                   Ver. 5.00
  108. ECHO  
  109. echo         Updating NCS:
  110. echo         ─────────────
  111. if not exist %1:ncsserv.ncs goto no_files
  112. if exist %1:ncsfiles.zip del %1:ncsfiles.zip
  113. if exist %1:ncsinst.bat del %1:ncsinst.bat
  114. if exist %1:ncsserv.ncs copy %1:ncsserv.ncs %1:*.jl
  115. if exist %1:ncsserv.ncs copy %1:ncsserv.ncs %1:*
  116. if exist %1:ncsuser.nca copy %1:ncsuser.nca %1:*.jl
  117. echo  
  118. cls
  119. echo  
  120. echo                          INSTALLATION PROCEDURE                    NCS (tm)
  121. echo                          ──────────────────────                   Ver. 5.00
  122. echo  
  123. echo Copying Files:
  124. echo ──────────────
  125. copy *.* %1:
  126. echo  
  127. echo  
  128. cls
  129. %1:pkunzip -o %1:ncsfiles.zip %1:
  130. del %1:pkunzip.exe
  131. del %1:ncsfiles.zip
  132. copy %1:ncsserv.jl %1:*.ncs
  133. copy %1:ncsuser.jl %1:*.nca
  134. %1:
  135. chkserv5
  136. if errorlevel = 1 goto next
  137. goto upgrade_new
  138. :next
  139. chkserv4
  140. if errorlevel = 1 goto upgrade_new
  141. goto upgrades
  142. :upgrade_new
  143. del %1:ncsserv.jl
  144. del %1:chk*.com
  145. del %1:cvt*.com
  146. del %1:ncsinst.bat
  147. del %1:ncsserv
  148. del %1:ncsuser.jl
  149. cls
  150. echo  
  151. echo                          INSTALLATION COMPLETE                     NCS (tm)
  152. echo                          ─────────────────────                    Ver. 5.00
  153. echo  
  154. echo      Upgrade Complete:
  155. echo      ─────────────────
  156. echo  
  157. echo          ■ File NCSSERV.NCS was not converted since it is
  158. echo            compatible with NCS Ver 5.00.
  159. echo  
  160. echo  
  161. echo  
  162. echo          ■ You can now view some .DOC files containing a
  163. echo            variety of information, tips, updates, tech notes etc ...
  164. echo  
  165. echo  
  166. echo  
  167. echo  
  168. echo  
  169. echo      
  170. echo      Ctrl-C to exit, any other key to continue
  171. pause>nul
  172. goto exit
  173. :upgrades
  174. cls
  175. echo  
  176. echo                          INSTALLATION PROCEDURE                    NCS (tm)
  177. ECHO                          ──────────────────────                   Ver. 5.00
  178. ECHO  
  179. echo      Upgrade Complete:
  180. echo      ─────────────────
  181. echo  
  182. echo  
  183. echo          ■ Updating version 4.xx or earlier requires the 
  184. echo            conversion of the server configuration file:
  185. echo  
  186. echo                       ■ NCSSERV.NCS
  187. echo  
  188. echo          into NCS 5.00 format.
  189. echo  
  190. echo  
  191. echo          The current configurations in the above file will be
  192. echo          copied to:
  193. echo                       ■ NCSSERV.JL
  194. echo  
  195. echo  
  196. echo  
  197. echo      Press any key convert configuration file 
  198. pause>nul
  199. cls
  200. echo  
  201. echo                          INSTALLATION PROCEDURE                    NCS (tm)
  202. echo                          ──────────────────────                   Ver. 5.00
  203. echo  
  204. echo  
  205. echo        Converting Server Configuration File:
  206. echo        ─────────────────────────────────────
  207. echo  
  208. echo  
  209. echo        Please wait ...
  210. echo        ───────────────
  211. %1:
  212. cvtserv5
  213. if exist %1:cvt*.com del %1:cvt*.com
  214. if exist %1:chk*.com del %1:chk*.com
  215. copy %1:ncsserv.jl %1:ncsserv.ncs
  216. if exist %1:ncsuser.jl del %1:ncsuser.jl
  217. if exist %1:ncauser.jl del %1:ncauser.jl
  218. copy %1:ncsserv %1:ncsserv.jl
  219. del %1:ncsserv
  220. echo  
  221. echo  
  222. echo        ■ Upgrade and conversion successful
  223. echo  
  224. echo        ■ Updated NCSSERV.NCS. Old file renamed to: NCSSERV.JL.
  225. echo  
  226. echo  
  227. echo  
  228. echo  
  229. echo      Ctrl-C to abort installation, any other key to continue
  230. pause>nul
  231. :exit
  232. cls
  233. echo  
  234. echo                          INSTALLATION COMPLETE                     NCS (tm)
  235. echo                          ─────────────────────                    Ver. 5.00
  236. ECHO  
  237. ECHO  
  238. ECHO      ■ NCS 5.0 Has been successfully installed on your network.
  239. ECHO        Remember to run NCSEDIT.EXE to configure the server.
  240. echo  
  241. echo      ■ You should print the .DOC files available and read them
  242. echo        as they contain information not found in the manual.
  243. echo  
  244. ECHO          DTERM.DOC      Info on running JL Terminal Emulator program.
  245. ECHO          NCSEVAL.DOC    Info on running the NCS Demo version FIRST.
  246. echo          NCSUPDAT.DOC   Updates, fixes, command line switches, etc...
  247. ECHO          NCSQUICK.DOC   Quick Start Chapter for 5-minute setup.
  248. echo          NETWORKS.DOC   Info on setting up NCS on Novell & NetBIOS networks.
  249. ECHO          README.1ST     Should read before installation. Basic setup info.
  250. ECHO          README.2ND     Info on setup on IPX/NetBIOS.
  251. echo          TIPS.DOC       Tips, tech notes, fixes, etc ...
  252. echo  
  253. echo  
  254. echo       Press Ctrl-C to ABORT, any other key to VIEW above files ...
  255. pause>nul
  256. :view_files
  257. cls
  258. echo  
  259. echo                              VIEW FILES
  260. echo                              ──────────
  261. echo  
  262. echo      View The File:
  263. echo      ──────────────
  264. echo  
  265. echo          ■ README.2ND:  Contains information on the config-
  266. echo                          uring the NCS server.
  267. echo  
  268. echo  
  269. echo  
  270. echo  
  271. echo      Ctrl-C to exit, any other key to view NCSUPDAT.DOC
  272. pause >NUL
  273. if not exist %1:readme.2nd goto general
  274. cls
  275. %1:
  276. %1:mre %1:readme.2nd
  277. echo                       Press any key to continue
  278. pause >nul
  279. :general
  280. cls
  281. echo  
  282. echo                              VIEW FILES
  283. ECHO                              ──────────
  284. ECHO  
  285. ECHO      View The File:
  286. echo      ──────────────
  287. echo  
  288. echo          ■ NCSEVAL.DOC:  contains information on the evaluation
  289. echo                          demonstration version of the NCS.
  290. echo  
  291. echo  
  292. echo  
  293. echo  
  294. echo      Ctrl-C to exit, any other key to view NCSEVAL.DOC ...
  295. pause>nul
  296. if not exist %1:ncseval.doc goto tips
  297. cls
  298. %1:mre %1:ncseval.doc
  299. echo  
  300. echo                       Press any key to continue
  301. pause>nul
  302. echo  
  303. :tips
  304. cls
  305. echo  
  306. echo                              VIEW FILES
  307. ECHO                              ──────────
  308. ECHO  
  309. ECHO      View the file:
  310. echo      ──────────────
  311. echo  
  312. echo          ■  TIPS.DOC: contains "tips" on installing and 
  313. echo                       using the NCS.
  314. echo  
  315. echo  
  316. echo  
  317. echo  
  318. echo  
  319. echo      Ctrl-C to exit, any other key to view TIPS.DOC ...
  320. pause>nul
  321. if not exist %1:tips.doc goto dterm
  322. cls
  323. %1:mre %1:tips.doc
  324. echo  
  325. echo                       Press any key to continue
  326. pause>nul
  327. :dterm
  328. cls
  329. echo  
  330. ECHO                              VIEW FILES
  331. ECHO                              ──────────
  332. ECHO  
  333. echo      View the file:
  334. echo      ──────────────
  335. echo  
  336. echo  
  337. echo          ■ DTERM.DOC: contains information on J&L Dumb Terminal
  338. echo                       Emulator.
  339. echo  
  340. echo  
  341. echo  
  342. echo      Ctrl-C to exit, any other key to view file
  343. pause>nul
  344. if not exist %1:dterm.doc goto readme
  345. cls
  346. %1:mre %1:dterm.doc
  347. echo  
  348. echo                       Press any key to continue
  349. pause>nul
  350. :readme
  351. cls
  352. echo  
  353. echo                              VIEW FILES
  354. echo                              ──────────
  355. echo  
  356. echo      View the file:
  357. echo      ──────────────
  358. echo  
  359. echo          ■ NCSUPDAT.DOC: contains information on the latest
  360. echo                          updates to NCS.
  361. echo  
  362. echo  
  363. echo  
  364. echo  
  365. echo      Ctrl-C to exit, any other key to continue
  366. pause>nul
  367. if not exist %1:ncsupdat.doc goto exit
  368. cls
  369. %1:mre %1:ncsupdat.doc
  370. echo  
  371. echo                       Press any key to exit
  372. pause>nul
  373. goto done
  374. :bad_disk
  375. cls
  376. echo  
  377. echo                          INSTALLATION ERROR                        NCS (tm)
  378. echo                          ──────────────────                       Ver. 5.00
  379. echo  
  380. echo      File(s) Not Found:
  381. echo      ──────────────────
  382. echo  
  383. echo            ■ NCSFILES.ZIP
  384. echo            ■ PKUNZIP.EXE
  385. echo  
  386. echo  
  387. echo      Unable to proceed. Must have the above files on the
  388. echo      NCS diskette.
  389. echo  
  390. echo  
  391. echo  
  392. echo  
  393. echo      Contact J&L's Customer Support Group: (818) 709-1778
  394. echo  
  395. echo  
  396. echo                                                                  ERROR CODE: 74
  397. echo  
  398. echo   ── Strike any key to exit ──
  399. pause>nul
  400. goto done
  401. :no_files
  402. cls
  403. echo  
  404. echo                          INSTALLATION ERROR                        NCS (tm)
  405. echo                          ──────────────────                       Ver. 5.00
  406. echo  
  407. echo      Specified Directory Empty:
  408. echo      ──────────────────────────
  409. echo  
  410. echo        ■ The directory you specified is empty. There are no
  411. echo          files to update. Check directory name.
  412. echo  
  413. echo        ■ If you are installing NCS for the first time, type:
  414. echo  
  415. echo                         NCSINST F 
  416. echo  
  417. echo  
  418. echo  
  419. echo      Correct this situation and re-install NCS 5.00.
  420. echo  
  421. echo                                                                  ERROR CODE: 53
  422. echo  
  423. echo   ── Strike any key to exit ──
  424. pause>nul
  425. :bad_current
  426. cls
  427. echo  
  428. echo                          INSTALLATION ERROR                        NCS (tm)
  429. ECHO                          ──────────────────                       Ver. 5.00
  430. ECHO  
  431. echo      Write Attempt Error:
  432. echo      ────────────────────
  433. echo  
  434. echo      ■ The specified directory is NOT empty. If this is a:
  435. echo  
  436. echo  
  437. echo         1. UPGRADE: include a U in your command line
  438. echo            ──────── 
  439. echo                            Example:   NCSINST F U
  440. echo  
  441. echo  
  442. echo         2. NEW INSTALL: choose another directory.
  443. echo            ────────────
  444. echo                            Example:   NCSINST F
  445. echo  
  446. echo                                                                  ERROR CODE: 82
  447. echo      Correct the situation and re-install NCS 5.0.
  448. echo  
  449. echo   ── Strike any key to exit ──
  450. pause>nul
  451. goto done
  452. :no_drive
  453. cls
  454. echo  
  455. echo                          INSTALLATION ERROR                        NCS (tm)
  456. echo                          ──────────────────                       Ver. 5.00
  457. echo  
  458. echo  
  459. echo      Missing Destination Drive:
  460. echo      ──────────────────────────
  461. echo  
  462. echo      ■ You must specify the drive letter on which you would
  463. echo        like the NCS 5.0 installed.
  464. echo  
  465. echo  
  466. echo                 Example: NCSINST F
  467. echo  
  468. echo  
  469. echo  
  470. echo  
  471. echo      Correct the situation and re-install NCS 5.0.
  472. echo  
  473. echo                                                                  ERROR CODE: 53
  474. echo  
  475. echo   ── Strike any key to exit ──
  476. pause>nul
  477. goto done
  478. :error3
  479. cls
  480. echo  
  481. echo                          INSTALLATION ERROR                        NCS (tm)
  482. echo                          ──────────────────                       Ver. 5.00
  483. echo  
  484. echo  
  485. echo      Missing File During Update:
  486. echo      ───────────────────────────
  487. echo  
  488. echo      ■ Can not locate:
  489. echo  
  490. echo             NCSSERV.NCS
  491. echo  
  492. echo  
  493. echo      ■ If this is a new installation, make sure the directory
  494. echo        you are installing NCS 5.00 to is empty, and type:
  495. echo  
  496. echo                        NCSINST F  
  497. echo  
  498. echo  
  499. echo      Correct the situation and re-install NCS 5.0.
  500. echo  
  501. echo                                                                  ERROR CODE: 12
  502. echo   ── Strike any key to exit ──
  503. pause>nul
  504. goto done
  505. :done
  506.