home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p120 / 1.ddi / PD5 / INSTALL / INSTALL.DAT < prev    next >
Encoding:
Text File  |  1991-10-02  |  18.0 KB  |  685 lines

  1. echo off
  2. clrwin 
  3. -- 04/08/91 SJO PD 5.00 Release
  4.  
  5. -- Rev 5.00 PD load and installation process data file
  6.  
  7. -------- Begin macro definitions -------------------------------------------
  8. macro DISPLAY_TITLE
  9.    setwin
  10.    setatt 15 1
  11.    clrwin
  12.    title  " Personal Designer Revision 5.00 Installation Procedure "
  13. endmac
  14. ----------------------------------------
  15. macro TOP_WINDOW
  16.   setwin 3 5 78 12  
  17.   setatt 0 0
  18.   clrwin
  19.   setwin 2 4 77 11
  20.   setatt 15 2
  21.   clrwin
  22.   setatt  1 2
  23. endmac
  24. ----------------------------------------
  25. macro BOTTOM_WINDOW
  26.   setwin 3 14 78 21
  27.   setatt 0 0
  28.   clrwin
  29.   setwin 2 13 77 20
  30.   setatt 15 2
  31.   clrwin
  32.   setatt  1 2
  33. endmac
  34. ----------------------------------------
  35. macro ERROR_WINDOW
  36.   setwin 3 3 75 19
  37.   setatt 0 0
  38.   clrwin
  39.   setwin 2 2 74 18  
  40.   setatt 1 7
  41.   clrwin
  42.   setatt 7 0
  43. endmac
  44. -------- End macro definitions -------------------------------------------
  45. SET BOOT={COMSPEC: 1,1}
  46. -------- Begin execution -------------------------------------------------
  47. DISPLAY_TITLE
  48.  
  49. -- Part 1 - New Installation --
  50. :new
  51. setatt 15 1
  52. echo
  53. echo                                                                         
  54.  
  55. center "Welcome to Personal Designer DOS-Extended Edition Revision 5.00. These    "
  56. center "screens will walk you through the installation of Personal Designer on    "
  57. center "your hard disk, and will help you configure the software for your         "
  58. center "specific hardware. To install Personal Designer you need a minimum        "
  59. center "of 7 megabyte of space on your hard disk. Three new directories will be   "
  60. center "created on your hard disk, \PD5, \PD5\SHADE and \PD5\INSTALL. \PD5\INSTALL"
  61. center "contains the configuration utility programs, and \PD5 contains the main   "
  62. center "program and all of its support files, including the device drivers. If    "
  63. center "ther is a conflict with an existing directory name, you have to rename the"
  64. center "old directory. As you begin this installation, be sure that you are in    "
  65. center "the root directory of the hard disk on which you wish to load Personal    "
  66. center "Designer. The \PD5\SHADE directory contains the shade utility programs.   "
  67.  
  68. setatt 12 1
  69. center "Note: to properly install Personal Designer, you must turn off all     "
  70. center "memory resident programs such as networks, memory managers and disk    "
  71. center "cache programs.                                                        "
  72. echo 
  73.  
  74. if infile \DMANTMP "A:\" goto overwrite_attempt
  75. if infile \DMANTMP "B:\" goto overwrite_attempt
  76.  
  77. setatt 10 1
  78. center " Do you wish to continue [Y/N]? "
  79. setatt 15 1
  80. getsel "YyNn"
  81. clrwin
  82. if select N goto cleanup
  83. if select n goto cleanup
  84. goto test_environment
  85.  
  86. --------------------------------------
  87. :overwrite_attempt
  88. ERROR_WINDOW
  89. echo
  90. echo
  91. echo 
  92. center "  WARNING: You are attempting to overwrite your Personal Designer"
  93. center "  Master Diskette. Your current drive and path are:              "
  94. echo
  95. type DMANTMP
  96. echo
  97. center " Please review your Installation Procedure and try again. "
  98. echo
  99. goto cleanup
  100. --------------------------------------
  101. :test_environment
  102.  
  103. if infile {BOOT}:\config.sys "vmem.sys" goto vmem
  104. if infile {BOOT}:\config.sys "VMEM.SYS" goto vmem
  105.  
  106. :test1
  107. if not exist \PD5\*.* goto begin
  108. ERROR_WINDOW
  109. echo
  110. echo
  111. echo 
  112.  
  113. center "WARNING: Directory \PD5 currently exists. If you continue, you may    "
  114. center "overwrite existing files, or load Personal Designer into another      "
  115. center "program's work area. If you have previously installed this version    "
  116. center "(5.00) of Personal Designer, and you are re-installing it, you can    "
  117. center "ignore this message.                                                  "
  118.  
  119. echo
  120. center " Do you wish to continue [Y/N]? "
  121. getsel "YyNn"
  122. DISPLAY_TITLE
  123. if select N goto cleanup
  124. if select n goto cleanup
  125.  
  126. ------- Build Directory Structure ----------------------------------------
  127. :begin
  128.  
  129. DISPLAY_TITLE
  130.  
  131. cd \
  132. md \PD5
  133. md \PD5\INSTALL
  134. md \PD5\SHADE
  135.  
  136. ------- Copy Diskette 1 --------------------------------------------------
  137. :disk_1
  138. :disk1_copy
  139. echo
  140. echo
  141. echo
  142. center "Copying files from diskette 1"
  143. echo
  144. center "Creating \PD5\INSTALL directory..."
  145. copy {LOAD}:\PD5\INSTALL\PD5I.EXE  \PD5\INSTALL     >\error.fil
  146. if infile \error.fil "Insufficient disk space" goto disk_full
  147.  
  148. cd \pd5\install
  149. pd5i -n >>\error.fil
  150. if infile \error.fil "Disk Full" goto disk_full
  151.  
  152. del >nul pd5i.exe
  153.  
  154. --configb references drive B for device drivers.
  155. copy config{LOAD}.ssr config.ssr >nul
  156. cd \pd5
  157.  
  158. center "Creating \PD5 directory (Part 1)..."
  159.  
  160. -- Copy last minute info file to hard drive.  Type at end of installation.
  161. if exist {LOAD}:\PD5INFO.TXT copy {LOAD}:\PD5INFO.TXT \ >>\error.fil
  162. if infile \error.fil "Insufficient disk space" goto disk_full
  163.  
  164. copy {LOAD}:\PD5\PD5E.EXE \PD5 >>\error.fil
  165. if infile \error.fil "Insufficient disk space" goto disk_full
  166.  
  167. pd5e -n >>\error.fil
  168. if infile \error.fil "Disk Full" goto disk_full
  169.  
  170. del >nul pd5e.exe
  171.  
  172. clrwin
  173. setatt 12 1
  174. echo
  175. echo
  176. echo
  177. echo
  178. echo
  179. center "Diskette 1 copying complete!"
  180. setatt 15 1
  181.  
  182. ------- Copy Diskette 2 --------------------------------------------------
  183. :disk_2
  184. echo
  185. echo
  186. center "Please insert Personal Designer Rev 5.00 Master Diskette 2,"
  187. center " and then .."
  188. ECHO 
  189. --------------------------------------
  190. :disk2_chk
  191. pause
  192. if exist {LOAD}:disk500.2 goto disk2_copy
  193. setatt 12 1
  194. center "Incorrect diskette!  Please insert diskette 2 and try again."
  195. echo 
  196. goto disk2_chk
  197. --------------------------------------
  198. :disk2_copy
  199. clrwin
  200. setatt 15 1
  201. echo
  202. echo
  203. echo
  204. center "Copying files from diskette 2"
  205. echo
  206. center "Creating \PD5 directory (Part 2)..."
  207. echo
  208. echo
  209. echo
  210. echo 
  211.  
  212. copy {LOAD}:\PD5\PD5S.EXE \PD5 >>\error.fil
  213. if infile \error.fil "Insufficient disk space" goto disk_full
  214.  
  215. pd5s -n >>\error.fil
  216. if infile \error.fil "Disk Full" goto disk_full
  217.  
  218. del >nul pd5s.exe
  219.  
  220. center "Creating \PD5\SHADE directory..."
  221.  
  222. copy {LOAD}:\PD5\SHADE\SHAD5.EXE \PD5\SHADE >>\error.fil
  223. if infile \error.fil "Insufficient disk space" goto disk_full
  224.  
  225. cd \pd5\shade
  226. shad5 -n >>\error.fil
  227. if infile \error.fil "Disk Full" goto disk_full
  228.  
  229. del >nul shad5.exe
  230. cd \pd5
  231.  
  232. :disk_2_done
  233.  
  234. clrwin
  235. setatt 12 1
  236. echo
  237. echo
  238. echo
  239. echo
  240. center "Diskette 2 copying complete!"
  241. setatt 15 1
  242.  
  243. ------- Copy Diskette d --------------------------------------------------
  244. :disk_d
  245.  
  246. echo
  247. echo
  248. echo
  249. center "Please insert Personal Designer Rev 5.00 Device Drivers Diskette      "
  250. center "in drive {LOAD}, and then ..                                          "
  251. echo 
  252.  
  253. --------------------------------------
  254. :diskd_chk
  255. pause
  256. if exist {LOAD}:disk500.d goto diskd_copy
  257. setatt 12 1
  258. center "Incorrect diskette!  Please insert Device Drivers diskette and try again."
  259. echo 
  260. goto diskd_chk
  261.  
  262. --------------------------------------
  263. :diskd_copy
  264. clrwin
  265. DISPLAY_TITLE
  266. echo
  267. echo
  268. echo 
  269. center "This diskette contains optional support files you may use for customizing"
  270. center "the software. These files require approximately 1 MB of disk space. You  "
  271. center "may install them now or at a later time. See your documentation for more "
  272. center "information.                                                             "
  273. echo
  274. setatt 10 1
  275. center " Do you wish to install the optional support files [Y/N]? "
  276. setatt 15 1
  277. getsel "YyNn"
  278. clrwin
  279. if select N goto misc_done
  280. if select n goto misc_done
  281.  
  282. center "Creating \PD5 directory (Part 3)..."
  283.  
  284. copy {LOAD}:\PD5\PD5M.EXE \PD5 >>\error.fil
  285. if infile \error.fil "Insufficient disk space" goto disk_full
  286.  
  287. cd \pd5
  288.  
  289. pd5m -n >>\error.fil
  290. if infile \error.fil "Disk Full" goto disk_full
  291.  
  292. del >nul pd5m.exe
  293.  
  294. cd \
  295.  
  296. :misc_done
  297. clrwin
  298. echo
  299. echo
  300. echo
  301. setatt 15 1
  302. center " Installing Personal Designer Device Drivers "
  303. echo
  304. center "This diskette contains all the hardware device drivers necessary to make  "
  305. center "Personal Designer work with your particular combination of graphics board,"
  306. center "digitizing tablet, mouse, and plotter. You can install the device drivers "
  307. center "you need now or at a later time using the System Configuration Manager.   "
  308. center "The System Configuration manager (also called the configurator) is a      "
  309. center "separate program (called CONFIG.EXE). Enter CONFIG [ENTER] to use the     "
  310. center "configurator at a later time.                                             "
  311. echo
  312. center "Note: you cannot use Personal Designer for the first time without using   "
  313. center "the System Configuration Manager to install your device drivers.          "
  314. setatt 10 1
  315. echo 
  316. center " Do you wish to continue with the installation [Y/N]? "
  317. setatt 15 1
  318. getsel "YyNn"
  319. clrwin
  320. if select N goto chk_autoex
  321. if select n goto chk_autoex
  322. --------------------------------------
  323. :run_config
  324. cd \PD5\install
  325.  
  326. CONFIG /install
  327. --------------------------------------
  328.  
  329. -- If GRAPHICS.DAT exists, then SHADE requires a different driver.
  330. if not exist \PD5\graphics.dat goto copy_same
  331.  
  332. -- use FS switch for From Shade specific installation.
  333. cd \
  334.  
  335. \diskman \pd5\graphics.dat FS
  336.  
  337. del >nul \pd5\graphics.dat
  338. goto dd_done
  339.  
  340. :copy_same
  341. -- If GRAPHICS.dat doesn't exist, then SHADE uses same driver as PD.
  342. center "Copying graphics device driver into the \SHADE directory..."
  343. copy \PD5\graphics.dev \PD5\shade >\error.fil
  344. if infile \error.fil "Insufficient disk space" goto disk_full
  345. copy \PD5\graphics.dif \PD5\shade >\error.fil
  346. if infile \error.fil "Insufficient disk space" goto disk_full
  347.  
  348. --------------------------------------
  349. :dd_done
  350. DISPLAY_TITLE
  351. cd \
  352. echo
  353. echo
  354. echo
  355. echo
  356. center " Device Drivers diskette copying complete! "
  357. echo
  358. center " Please remove diskette and store in a safe place. "
  359. center " To proceed with installation...                   "
  360. echo 
  361. pause
  362. ------- Driver Installation complete -------------------------------------
  363.  
  364. ------- Edit AUTOEXEC.BAT ------------------------------------------------
  365. :chk_autoex
  366. clrwin
  367.  
  368. :Check if COMSPEC invalid
  369. if {bootltr} == bad goto skip_edauto
  370. if {BOOT} == A goto skip_edauto
  371. if {BOOT} == a goto skip_edauto
  372.  
  373. echo  
  374. center "Editing AUTOEXEC.BAT..."
  375. if exist {BOOT}:\AUTOEXEC.BAT copy {BOOT}:\autoexec.bat {BOOT}:\autoexec.bak >nul
  376. subr EDAUTOEX path 1 ev 1
  377. pd5
  378. cvpath
  379. subr EDAUTOEX path 1 ev 1
  380. pd5\shade 
  381. cvshade
  382. if not exist {BOOT}:\AUTOEXEC.OLD goto no_old_autoex
  383. center "Finished editing!  Please make note of the following changes"
  384. TOP_WINDOW
  385. title " Old AUTOEXEC.BAT "
  386. setatt 15 2
  387. type {BOOT}:\AUTOEXEC.OLD
  388. BOTTOM_WINDOW
  389. title " New AUTOEXEC.BAT "
  390. setatt 15 2
  391. type {BOOT}:\AUTOEXEC.BAT
  392. setatt 15 1
  393. pause
  394. goto finish
  395.  
  396. :no_old_autoex
  397. center "No old AUTOEXEC.BAT found, new one created!"
  398. TOP_WINDOW
  399. title " New AUTOEXEC.BAT "
  400. setatt 15 2
  401. type {BOOT}:\AUTOEXEC.BAT
  402. pause
  403. goto finish
  404.  
  405. :skip_edauto
  406. setatt 12 1
  407. echo 
  408. echo 
  409. echo  
  410. center " Unable to edit your AUTOEXEC.BAT file."
  411. setatt 15 1
  412. center "Please include the following in your AUTOEXEC.BAT file:        "
  413. center "PATH C:\PD5;C:\DOS;C:\;"
  414. center "SET CVPATH=C:\PD5      "
  415. center "Sustitute your boot drive letter for the C: in the above lines."
  416. pause
  417.  
  418. :finish
  419. setatt 15 1
  420. ------- Completion Message ------------------------------------------------
  421.  
  422. :options
  423. DISPLAY_TITLE
  424. echo
  425. echo
  426.  
  427. center "If you have purchased other Personal Designer optional products, such"
  428. center "as the User Programming Language, you can install them at this time, "
  429. center "or you can install them at a later date by inserting the appropriate "
  430. center "diskette into your floppy drive and type:"
  431.  
  432. center "'A:\INSTALL' to install from your A: drive or"
  433. center "'B:\INSTALL' to install from your B: drive.  "
  434. echo 
  435. setatt 10 1
  436. center " Do you wish to install other products [Y/N]? "
  437. setatt 15 1
  438. getsel "YyNn"
  439. if select N goto done
  440. if select n goto done
  441. clrwin
  442. echo
  443. echo
  444. center " Please insert option diskette and ..."
  445.  
  446. pause
  447. --Design/Shade 5.00
  448. if exist {LOAD}:disk500.s goto option_copy
  449. --UPL 5.00
  450. if exist {LOAD}:disk500.u goto option_copy
  451. --IGES 5.00
  452. if exist {LOAD}:disk500.i goto option_copy
  453. --misc
  454. if exist {LOAD}:disk400.a goto option_copy
  455. if exist {LOAD}:disk401.a goto option_copy
  456. if exist {LOAD}:disk410.a goto option_copy
  457. if exist {LOAD}:disk500.a goto option_copy
  458.  
  459. setatt 12 1
  460. center "Incorrect diskette!  Please insert proper diskette and try again."
  461. setatt 15 1
  462. echo 
  463. goto options
  464.  
  465. :option_copy
  466. copy {LOAD}:\PD5\install\install.dat \install2.dat >>\error.fil
  467. if infile \error.fil "Insufficient disk space" goto disk_full
  468. -- use FL switch to allow proper cleanup
  469. cd \
  470. \diskman \install2.dat FL
  471. goto options
  472.  
  473. --------------------------------------------------------------------------
  474. :done
  475.  
  476. :codes
  477. -- see if internal or dealer box, add codes to \CVOPTION.FIl
  478.  
  479. ------------------------------------------------------------------------
  480. :internal
  481. -- Prime internal, Option number is: 5223 - PD 5.00 Release
  482. echo "987654 33140 26199 39561 29034 20554 8" >&TMP1
  483. SUBR ADOPTION &TMP1 &TMP2
  484. if not infile &TMP2 Error goto success
  485. goto dealer
  486.  
  487. ------------------------------------------------------------------------
  488. :dealer
  489. -- Dealer, Option number is: 5223 - PD 5.00 Release
  490. echo "987987 33140 38535 39297 29342 33649 139" >&TMP1
  491. SUBR ADOPTION &TMP1 &TMP2
  492. if not infile &TMP2 Error goto success
  493. goto no_can_do
  494.  
  495. ------------------------------------------------------------------------
  496. :no_can_do
  497. -- For Customers only.
  498. --echo
  499. --echo
  500. --center "Codes not added (Not supposed to!)"
  501. --echo 
  502. --pause
  503. goto complete
  504.  
  505. :success
  506. -- For Dealers and Prime Internal only.
  507. echo
  508. echo
  509. center "Codes added!"
  510. echo 
  511. pause
  512. goto re_config
  513.  
  514. :complete
  515. --------------------------------------
  516.  
  517. DISPLAY_TITLE
  518. echo
  519. echo
  520. echo
  521. echo
  522.  
  523. center "When this program terminates you must change to the \PD5\INSTALL"
  524. center "directory and type SECURE to install the security codes for this"
  525. center "product. Please refer to your security device documentation for "
  526. center "security code information and procedures.                       "
  527. setatt 12 1
  528. center "You must then reboot your system by typing [Ctrl][Alt][Del]."
  529. setatt 15 1
  530. center "This will complete the installation of the Personal Designer Version"
  531. center "5.00 operating environment.                                         "
  532.  
  533. echo 
  534. pause
  535.  
  536. :re_config
  537. clrwin
  538. echo
  539. echo
  540. echo
  541. center "If in the future you wish to re-install any of your hardware devices, "
  542. center "or change the Personal Designer default program parameters, from any  "
  543. center "directory type:                                                       "
  544. echo
  545. center "CONFIG [Enter]"
  546. echo
  547. center "This takes you into the Personal Designer System Configuration manager"
  548. center "which is described in your documentation.                             "
  549. echo 
  550. pause
  551.  
  552. center "Installation Complete !!!!!"
  553.  
  554. if infile {BOOT}:\config.sys "vdisk" goto vdisk
  555. if infile {BOOT}:\config.sys "VDISK" goto vdisk
  556. if infile {BOOT}:\config.sys "ramdriv" goto vdisk
  557. if infile {BOOT}:\config.sys "RAMDRIV" goto vdisk
  558. goto config
  559.  
  560. :vdisk
  561. ERROR_WINDOW
  562. center "WARNING: Not all VDISKs or RAMDRIVEs are compatible with the Personal  "
  563. center "Designer DOS-Extended Edition. They must conform to the Virtual Control"
  564. center "Program Interface (VCPI) standard to properly coexist in extended or   "
  565. center "expanded memory. Please see the Personal Designer Rev 5.00 release     "
  566. center "notes for more information.                                            "
  567. echo 
  568. pause
  569. DISPLAY_TITLE
  570.  
  571. :config
  572. if infile {BOOT}:\config.sys "shell" goto f30
  573. if infile {BOOT}:\config.sys "SHELL" goto f30
  574. center "Changing config.sys to FILES=30"
  575. echo "shell ={BOOT}:\command.com /p /e:500" >C.TMP
  576. copy >nul {BOOT}:\config.sys {BOOT}:\config.she
  577. copy >nul c.tmp+{BOOT}:\config.she {BOOT}:\config.sys
  578. del >nul c.tmp
  579.  
  580. :f30
  581. if infile {BOOT}:\config.sys "files=30" goto config_ok
  582. if infile {BOOT}:\config.sys "FILES=30" goto config_ok
  583. if infile {BOOT}:\config.sys "files=40" goto config_ok
  584. if infile {BOOT}:\config.sys "FILES=40" goto config_ok
  585.  
  586. center "Changing config.sys to FILES=30"
  587. echo "FILES=30" >f30
  588. copy >nul {BOOT}:\config.sys {BOOT}:\config.f20
  589. copy >nul {BOOT}:\config.sys+f30 {BOOT}:\config.f30
  590. copy >nul {BOOT}:\config.f30 {BOOT}:\config.sys
  591. del >nul {BOOT}:\config.f30
  592. del >nul f30
  593.  
  594. :config_ok
  595.  
  596. :cvbox
  597. if not exist {BOOT}:\CVBOX.SYS goto box
  598. if not infile {BOOT}:\config.sys "cvbox.sys" goto try_upper
  599. goto opt_fil
  600. :try_upper
  601. if not infile {BOOT}:\config.sys "CVBOX.SYS" goto config
  602. :opt_fil
  603. if not exist \CVOPTION.FIL goto cvopt
  604. goto info
  605.  
  606. :box
  607. echo 
  608. echo
  609. echo
  610. echo
  611. setatt 12 1
  612. center "The file CVBOX.SYS was not found in the root directory of drive {BOOT}: "
  613. goto secure
  614.  
  615. :cvopt
  616. echo 
  617. echo
  618. echo
  619. echo
  620. setatt 12 1
  621. center "The file CVOPTION.FIL was not found in the root directory of this drive."
  622. goto secure
  623.  
  624. :config
  625. echo 
  626. echo
  627. echo
  628. echo
  629. setatt 12 1
  630. center "The line DEVICE={BOOT}:\CVBOX.SYS was not found in the {BOOT}:\CONFIG.SYS file."
  631.  
  632. :secure
  633. setatt 15 1
  634. echo
  635. center "Protection installation not complete. Please refer to security device"
  636. center "documentation for security code information and procedures.          "
  637. echo 
  638. pause
  639. clrwin
  640.  
  641. :info
  642. if not exist \PD5INFO.TXT goto cleanup
  643. type \PD5INFO.TXT 
  644. goto cleanup
  645.  
  646. :disk_full
  647. ERROR_WINDOW
  648. echo
  649. echo
  650. echo 
  651. center "*** FATAL ERROR ***"
  652. echo 
  653. center "*** HARD DISK FULL ***"
  654. echo 
  655. center "Please backup and delete all unnecessary files from the hard "
  656. center "disk and try again. The Personal Designer requires at least 7"
  657. center "Megabytes of disk space and 1 Megabyte for Surfaces.         "
  658. echo 
  659. pause
  660. goto cleanup
  661.  
  662. :vmem
  663. ERROR_WINDOW
  664. center "WARNING: VMEM is not compatible with the Personal Designer    "
  665. center "DOS-Extended Edition. VMEM does not follow the Virtual Control"
  666. center "Program Interface (VCPI) standard. Please remove this line    "
  667. center "from your {BOOT}:\CONFIG.SYS line and reboot.                 "
  668. echo 
  669. pause
  670. goto cleanup
  671.  
  672. :cleanup
  673. del >nul \diskman.exe
  674. del >nul \install.dat
  675. del >nul \install2.dat
  676. del >nul \error.fil
  677. del >nul \cvoption.new
  678. del >nul \&tmp1
  679. del >nul \&tmp2
  680. del DMANTMP >nul
  681. set BOOT=
  682.  
  683. :end
  684. exit
  685.