home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April (Special) / Chip-Special_1997-04_cd.bin / trident / ux64-utl / ux64-utl.exe / TVGAUTIL.ZIP / ACAD / INSTALL.DAT < prev    next >
Text File  |  1995-06-01  |  24KB  |  710 lines

  1. /*
  2.  INSTALL.DAT
  3.  
  4.  Project: TurboDLDClassic
  5.  Version: 2.1
  6.  
  7. */
  8.  
  9. // To place a @pause in the center of the display page,
  10. // space in 38 spaces and then type @pause.  To make sure
  11. // that the @pause is at the bottom of the display, the
  12. // @pause should be at line 21 or better of the display.
  13.  
  14. // Standard header here...
  15.  
  16. @DefineProject
  17.     @Name = "TurboDLDClassic"
  18.     @Version = "2.1"
  19.     @Subdir = "\\ACAD\\DRV"
  20.     @OutDrive = C
  21.     @Group = "A"
  22.     @InDiskBell = 1
  23. @EndProject
  24.  
  25. // Define all the vars you need here
  26. // Init all strings with "" or a hard coded string
  27. // Init all Integers with 0 or 1
  28.  
  29. // If OEM release, set @IsOem = 1 else 0
  30.  
  31. @DefineVars
  32.     @Integer @DDrive = 99
  33.     @Integer @StrLens = 0
  34.     @Integer @bannercol = 0
  35.     @Integer @OurCol = 0
  36.     @Integer @XX = 0
  37.     @Integer @IsOem = 1
  38.     @Dir @AcadDir  = "\\ACAD\\DRV"
  39.     @Drive @AcadDrive  = C
  40.     @qstring @redprogram = "TURBODLD.RED"
  41.     @qstring @thisprogram = "RCTURBOC.EXP"
  42.     @qstring @namethisprogram = "TurboDLD-Classic"
  43.     @qstring @helpcontact = "Panacea Inc"
  44.     @qstring @registration = ""
  45.     @qstring @registrationname = ""
  46.     @qstring @companyname = ""
  47.     @qstring @regreturn = ""
  48.     @qstring @ourhomeexp = ""
  49.     @qstring @ourhomered = ""
  50.     @qstring @tempstring = ""
  51.     @qstring @bannername = " T u r b o D L D   I n s t a l l "
  52. @EndVars
  53.  
  54. // setup some of the local var defs
  55.  
  56. // Used to display the banner on all screens
  57.  
  58. @xx = @strlen("@bannername")
  59. @bannercol = (38 - @xx/2)
  60.  
  61. // used to check for Write Protect on floppy
  62.  
  63. @If (@IsOem == 1)
  64.    @goto OEM1
  65. @Endif
  66.  
  67. @If (@InDrive == A)
  68.    @xx = @homedrive(0)
  69. @ElseIf (@InDrive == B)
  70.    @xx = @homedrive(1)
  71. @EndIf
  72.  
  73. @If (@xx == 1)          // if error found ...
  74.  
  75. @tempstring = " Install must have write access to your @namethisprogram "
  76. @xx = @strlen(@tempstring)
  77. @ourcol = (38 - @xx/2)
  78.  
  79. @movecstr(1,8,62,"╔═══════════════════════════════════════════════════════════╗")
  80. @movecstr(2,8,62,"║                                                           ║")
  81. @movecstr(3,8,62,"╚═══════════════════════════════════════════════════════════╝")
  82. @MoveCStr(2, @bannercol, 48, @bannername)
  83.  
  84.   @movecstr(7,13,79,"╔═════════════════════════════════════════════════╗")
  85.   @movecstr(7,31,207," W A R N I N G ")
  86.   @movecstr(8,13,79,"║                                                 ║")
  87.   @movecstr(9,13,79,"║                                                 ║")
  88.   @movecstr(9,15,79," The diskette in Drive @InDrive is ")
  89.   @movecstr(9,43,78," -WRITE PROTECTED- ")
  90.   @movecstr(10,13,79,"║                                                 ║")
  91.   @movecstr(11,13,79,"╚═════════════════════════════════════════════════╝")
  92.  
  93.   @movecstr(15,@ourcol,31, @tempstring)
  94.   @movecstr(16,@ourcol,31," diskette in order to continue. ")
  95.  
  96.   @movecstr(19,@ourcol,31," Press any key to exit to DOS, unprotect the ")
  97.   @movecstr(20,@ourcol,31," @namethisprogram diskette and then run INSTALL again. ")
  98.  
  99.   @move(22,0)
  100.   @waitkey
  101.   @exit
  102.  
  103. @Endif
  104.  
  105. // get the correct string for the EXP and the RED files
  106.  
  107. OEM1:
  108.  
  109. @ourhomeexp = @wherearewe(@thisprogram)
  110.  
  111. @ourhomered = @wherearewe(@redprogram)
  112.  
  113. @tempstring = " utility for @namethisprogram ! "
  114. @xx = @strlen(@tempstring)
  115. @ourcol = (40 - @xx/2)
  116.  
  117.  
  118. @If (@IsOem == 1)
  119.    @goto OEM1A
  120. @Endif
  121.  
  122. @movecstr(0,0,63,"╔════════════════════════════════════════════════════════════════════════════╗")
  123. @movecstr(1,0,63,"║                                                                            ║")
  124. @movecstr(2,0,63,"║                                                                            ║")
  125. @movecstr(3,0,63,"║                                                                            ║")
  126. @movecstr(3,25,48," Welcome to the installation ")
  127. @movecstr(4,0,63,"║                                                                            ║")
  128. @movecstr(4,@ourcol,48,@tempstring)
  129. @movecstr(5,0,63,"║                                                                            ║")
  130. @movecstr(6,0,63,"║                                                                            ║")
  131. @movecstr(6,33,49,"Panacea Inc.")
  132. @movecstr(7,0,63,"║                                                                            ║")
  133. @movecstr(7,28,49,"  600 Suffolk Street")
  134. @movecstr(8,0,63,"║                                                                            ║")
  135. @movecstr(8,26,49,"  Lowell, Massachussetts")
  136. @movecstr(9,0,63,"║                                                                            ║")
  137. @movecstr(9,34,49,"01854 USA")
  138. @movecstr(10,0,63,"║                                                                            ║")
  139. @movecstr(11,0,63,"║                                                                            ║")
  140. @movecstr(11,30,63,"Phone: 508-937-1760")
  141. @movecstr(12,0,63,"║                                                                            ║")
  142. @movecstr(12,31,63,"FAX: 508-970-0199")
  143. @movecstr(13,0,63,"║                                                                            ║")
  144. @movecstr(13,31,63,"BBS: 603-432-5193")
  145. @movecstr(14,0,63,"║                                                                            ║")
  146. @movecstr(15,0,63,"║                                                                            ║")
  147. @movecstr(15,36,62,"E-Mail:")
  148. @movecstr(16,0,63,"║                                                                            ║")
  149. @movecstr(16,28,62,"Tech_Support@@panacea.com")
  150. @movecstr(17,0,63,"║                                                                            ║")
  151. @movecstr(18,0,63,"║                                                                            ║")
  152. @movecstr(19,0,63,"║                                                                            ║")
  153. @movecstr(20,0,63,"║                                                                            ║")
  154. @movecstr(21,0,63,"║                                                                            ║")
  155. @movecstr(22,0,63,"║                                                                            ║")
  156. @movecstr(23,0,63,"║                                                                            ║")
  157. @movecstr(24,0,63,"║                                                                            ║")
  158. @movecstr(25,0,63,"╚════════════════════════════════════════════════════════════════════════════╝")
  159.  
  160. @goto OEM1ADONE
  161.  
  162. OEM1A:
  163.  
  164. @movecstr(0,0,63,"╔════════════════════════════════════════════════════════════════════════════╗")
  165. @movecstr(1,0,63,"║                                                                            ║")
  166. @movecstr(2,0,63,"║                                                                            ║")
  167. @movecstr(3,0,63,"║                                                                            ║")
  168. @movecstr(3,25,48," Welcome to the installation ")
  169. @movecstr(4,0,63,"║                                                                            ║")
  170. @movecstr(4,@ourcol,48,@tempstring)
  171. @movecstr(5,0,63,"║                                                                            ║")
  172. @movecstr(6,0,63,"║                                                                            ║")
  173. @movecstr(7,0,63,"║                                                                            ║")
  174. @movecstr(8,0,63,"║                                                                            ║")
  175. @movecstr(8,32,63,"Developed by:")
  176. @movecstr(9,0,63,"║                                                                            ║")
  177. @movecstr(10,0,63,"║                                                                            ║")
  178. @movecstr(10,33,49,"Panacea Inc.")
  179. @movecstr(11,0,63,"║                                                                            ║")
  180. @movecstr(11,28,49,"  600 Suffolk Street")
  181. @movecstr(12,0,63,"║                                                                            ║")
  182. @movecstr(12,26,49,"  Lowell, Massachussetts")
  183. @movecstr(13,0,63,"║                                                                            ║")
  184. @movecstr(13,34,49,"01854 USA")
  185. @movecstr(14,0,63,"║                                                                            ║")
  186. @movecstr(15,0,63,"║                                                                            ║")
  187. @movecstr(16,0,63,"║                                                                            ║")
  188. @movecstr(17,0,63,"║                                                                            ║")
  189. @movecstr(18,0,63,"║                                                                            ║")
  190. @movecstr(19,0,63,"║                                                                            ║")
  191. @movecstr(20,0,63,"║                                                                            ║")
  192. @movecstr(21,0,63,"║                                                                            ║")
  193. @movecstr(22,0,63,"║                                                                            ║")
  194. @movecstr(23,0,63,"║                                                                            ║")
  195. @movecstr(24,0,63,"║                                                                            ║")
  196. @movecstr(25,0,63,"╚════════════════════════════════════════════════════════════════════════════╝")
  197.  
  198. OEM1ADONE:
  199.  
  200. @OurPause
  201.  
  202. @Display
  203.    @cls
  204. @EndDisplay
  205.  
  206. @movecstr(1,8,62,"╔═══════════════════════════════════════════════════════════╗")
  207. @movecstr(2,8,62,"║                                                           ║")
  208. @movecstr(3,8,62,"╚═══════════════════════════════════════════════════════════╝")
  209. @MoveCStr(2, @bannercol, 48, @bannername)
  210.  
  211. @movecstr(6,5,31,"Thank you for purchasing @namethisprogram from Panacea, Inc.")
  212. @movecstr(8,5,31,"This utility program registers your copy of @namethisprogram and")
  213. @movecstr(9,5,31,"installs the software into the correct directory or sub-directories.")
  214. @movecstr(11,5,31,"If you have any questions regarding this process, please refer to")
  215. @movecstr(12,5,31,"your @namethisprogram Installation Guide, in particular, Chapter 1,")
  216. @movecstr(13,5,31,"[Quick Start] and Chapter 3, [Installing and Configuring].")
  217. @movecstr(15,5,31,"If you are installing for 3D Studio only, install as though you")
  218. @movecstr(16,5,31,"are using AutoCAD Release 10 or 11 and the follow configuration")
  219. @movecstr(17,5,31,"instructions in the [Rendering With TurboDLD] chapter of your") 
  220. @movecstr(18,5,31,"@namethisprogram Installation Guide.")
  221.  
  222.  
  223. @Display
  224. @move(21,0)
  225.    @pause
  226. @enddisplay
  227.  
  228. @If (@IsOem == 1)
  229.    @goto OEM2
  230. @Endif
  231.  
  232. // First thing to do is to check the software and 
  233. // register it if need to..
  234.  
  235. @regreturn = @ckregisterinfo(@ourhomeexp)
  236.  
  237. @If (@strlen("@regreturn") == 0)
  238.     @GoTo Not_Registered
  239. @Endif
  240.  
  241. @If (@strfind(@regreturn, "ERROR") == -1)
  242.     @GoTo Show_Registered
  243. @Endif
  244.  
  245. // If here, there must have been an error 
  246.  
  247. ShowError:
  248.  
  249. @xx = @strlen(@regreturn)
  250. @ourcol = (40 - @xx/2)
  251. // adjust for junk on the end of the string
  252. @xx = (@xx - 1)
  253.  
  254. @Display @Cls
  255. @move(4,0)
  256.     There was an error detected by the install software.
  257.  
  258.     The error was:
  259.  
  260. @movecstr(10,@ourcol,30,@strhead("@regreturn", @xx))
  261.  
  262. @move(12,0)
  263.     Please insure that you have the correct files on your disk.
  264.  
  265.     If you need help, please contact @helpcontact.
  266. @move(21,0)
  267.    @pause
  268. @Exit
  269. @enddisplay
  270.  
  271. // If we are here then the software has been registered
  272.  
  273. Show_Registered:
  274.  
  275. @regreturn = @ckregisterinfo(@ourhomeexp)
  276.  
  277. // Clear the options out
  278. @clearoption(1)
  279. @clearoption(2)
  280.  
  281. @xx = @strlen(@regreturn)
  282. @ourcol = (38 - @xx/2)
  283.  
  284. @GetOption
  285. @LocalWindow(18,40)
  286.  
  287. @movecstr(1,22,79,"╔═════════════════════════════╗")
  288. @movecstr(2,22,79,"║                             ║")
  289. @movecstr(2,24,78,"This Copy Is Registered To:")
  290. @movecstr(3,22,79,"╚═════════════════════════════╝")
  291.  
  292. @movecstr(7,@ourcol,30,@strhead("@regreturn", @xx))
  293.  
  294. @move(9,0)
  295.        The program has been installed and is protected by federal
  296.        copyright laws.  If you need additional copies of this software 
  297.        please contact @helpcontact.
  298.  
  299.      @Option 1 = "Continue"
  300.      @Option 2 = "Exit Install"
  301.  
  302. @EndOption
  303.  
  304. @If(1 [= @Option)
  305.    @Goto Get_Acad
  306. @Else
  307.    @Exit
  308. @Endif
  309.  
  310. Not_Registered:
  311.  
  312. @getstring @registration
  313.  
  314. @movecstr(1,8,62,"╔═══════════════════════════════════════════════════════════╗")
  315. @movecstr(2,8,62,"║                                                           ║")
  316. @movecstr(3,8,62,"╚═══════════════════════════════════════════════════════════╝")
  317. @MoveCStr(2, @bannercol, 48, @bannername)
  318.  
  319. @LocalWindow(13,40)
  320.  
  321. @movecstr(7,3,31,"Please type in your Full Name as you wish it to appear for registration")
  322. @movecstr(8,3,31,"purposes. For Corporate installations, you may wish to enter the name of")
  323. @movecstr(9,3,31,"your CAD Manager.")
  324.  
  325. @movecstr(18,8,31,"Note: The total combined length of [Your Name] and, from the")
  326. @movecstr(19,8,31,"      next screen, [Company Name] cannot exceed 64 characters.")
  327. @movecstr(20,8,31,"      If the total is longer, [Company Name] will be truncated.")
  328.  
  329. @prompt = "    Please Enter Your Full Name    "
  330.  
  331. @EndString
  332.  
  333. // get the length of the string so-far
  334.  
  335. @strlens = (64 - @strlen("@registration"))
  336.  
  337. @getstring @companyname
  338.  
  339. @movecstr(1,8,62,"╔═══════════════════════════════════════════════════════════╗")
  340. @movecstr(2,8,62,"║                                                           ║")
  341. @movecstr(3,8,62,"╚═══════════════════════════════════════════════════════════╝")
  342. @MoveCStr(2, @bannercol, 48, @bannername)
  343.  
  344. @LocalWindow(13,40)
  345.  
  346. @movecstr(7,14,31,"Please type in your Company Name as you would like")
  347. @movecstr(8,14,31,"to have it appear for registration purposes.")
  348.  
  349. @movecstr(18,9,31,"Note: You have @strlens characters available for [Company Name].")
  350. @movecstr(19,9,31,"      If you enter a Company Name longer than @strlens characters,")
  351. @movecstr(20,9,31,"      the additional information will be truncated.")
  352.  
  353.  
  354. @prompt = "    Please Enter Your Company Name    "
  355.  
  356. @EndString
  357.  
  358. @registrationname = "@registration, @companyname"
  359.  
  360. // Clear the options out
  361. @clearoption(10)
  362. @clearoption(20)
  363.  
  364. @xx = @strlen(@registrationname)
  365. @ourcol = (40 - @xx/2)
  366.  
  367. @GetOption
  368.  
  369. @LocalWindow(18,40)
  370.  
  371. @movecstr(1,8,62,"╔═══════════════════════════════════════════════════════════╗")
  372. @movecstr(2,8,62,"║                                                           ║")
  373. @movecstr(3,8,62,"╚═══════════════════════════════════════════════════════════╝")
  374. @Movecstr(2, @bannercol, 48, @bannername)
  375.  
  376. @movecstr(8,18,31,"You have entered the following information:")
  377.  
  378. @movecstr(12, @ourcol, 62, @registrationname)
  379.  
  380.  
  381.      @Option 10 = "Information Correct"
  382.      @Option 20 = "Information Not Correct"
  383.  
  384. @EndOption
  385.  
  386. @If(20 [= @Option)
  387.    @Goto Not_Registered
  388. @Endif
  389.  
  390. // NULL out the string b4 using again
  391.  
  392. @tempstring = ""
  393.  
  394. // If we are here, do the registration ....
  395.  
  396. @regreturn = @registerit(@registrationname @ourhomeexp)
  397.  
  398. @If (@strfind(@regreturn, "ERROR") != -1)
  399.     @GoTo ShowError
  400. @Endif
  401.  
  402. OEM2:
  403.  
  404. Get_Acad:
  405.  
  406. @GetOutDrive @AcadDrive
  407.  
  408.  
  409.     Install needs to know which drive you would like to copy 
  410.     @namethisprogram files to. Please select an available 
  411.     drive from the list below.
  412.  
  413.     @LocalWindow(16,56)   
  414.   
  415.     Use the [Up Arrow], [Down Arrow], 
  416.     [Pg Up], & [Pg Dn] keys to highlight 
  417.     your selection and then press the 
  418.     [Enter] key to continue.
  419.   
  420. @EndOutDrive
  421.  
  422. // clear the options first
  423. @clearoption(1000)
  424. @clearoption(2000)
  425.  
  426. @GetOption @cls
  427. @LocalWindow(14,40)
  428.  
  429. @movecstr(1,8,62,"╔═══════════════════════════════════════════════════════════╗")
  430. @movecstr(2,8,62,"║                                                           ║")
  431. @movecstr(3,8,62,"╚═══════════════════════════════════════════════════════════╝")
  432. @Movecstr(2, @bannercol, 48, @bannername)
  433.  
  434. @move(8,0)
  435.           Please enter the Version of AutoCAD you are running:
  436.  
  437.     @Option 1000 = " Release 12 or 13 "
  438.     @Option 2000 = " Release 10 or 11 "
  439.  
  440. @EndOption
  441.  
  442. @If(2000 [= @Option)
  443.    @AcadDir = "TURBODLD"
  444. @EndIf
  445.  
  446. @GetSubDir @AcadDir
  447. @Cls
  448. @LocalWindow(14,40)
  449.  
  450. @If(1000 [= @Option)
  451.  
  452. @movecstr(3,5,31,"You have chosen to install @namethisprogram for AutoCAD Release 12/13.")
  453. @movecstr(4,5,31,"We recommend installing into the DRV sub-directory off of your main")
  454. @movecstr(5,5,31,"AutoCAD sub-directory. Please enter your ACAD\\DRV sub-directory name")
  455. @movecstr(6,5,31,"below.")
  456. @movecstr(8,5,31,"You may also install @namethisprogram into its own sub-directory, to")
  457. @movecstr(9,5,31,"do so, enter an alternate sub-directory name. If the sub-directory does")
  458. @movecstr(10,5,31,"not exist, @namethisprogram Install will create it for you.")
  459. @movecstr(19,5,31,"Please note that if you install @namethisprogram into an alternate")
  460. @movecstr(20,5,31,"sub-directory you will have to alter your ACADDRV environment variable")
  461. @movecstr(21,5,31,"to include the @namethisprogram sub-directory.")
  462.  
  463. @Else
  464.  
  465. @movecstr(6,5,31,"You have chosen to install @namethisprogram for AutoCAD Release 10")
  466. @movecstr(7,5,31,"or 11. Enter a sub-directory name on @AcadDrive: for @namethisprogram")
  467. @movecstr(8,5,31,"files. If the sub-directory does not exist, @namethisprogram Install")
  468. @movecstr(9,5,31,"will create it for you.")
  469.  
  470. @EndIf
  471.  
  472. @EndSubDir
  473.  
  474. // Clear the options out
  475. @clearoption(10)
  476. @clearoption(20)
  477.  
  478. @If (@DirExists("@AcadDrive:\\@AcadDir"))
  479.   @GoTo Report
  480. @Else
  481.   @GetOption
  482.   @LocalWindow(12,40)
  483.     @AcadDir path was not found on @AcadDrive.
  484.     
  485.     Would you like to create @AcadDir at this time?
  486.  
  487.  
  488.      @Option 10 = "Yes, create the path"
  489.      @Option 20 = "No; re-enter the information"
  490.  
  491.   @EndOption
  492. @Endif
  493.  
  494. @tempstring = " Creating @AcadDrive:@AcadDir, please stand-by ! "
  495. @xx = @strlen(@tempstring)
  496. @ourcol = (40 - @xx/2)
  497.  
  498. @If(10 [= @Option)
  499.    @Display @Cls
  500.       @movecstr(12,@ourcol,48,@tempstring)
  501.    @MkDir("@AcadDrive:@AcadDir")
  502.    @EndDisplay
  503.    @Goto WeBuiltPath
  504. @Else
  505.    @Goto Get_Acad
  506. @Endif
  507.  
  508. // Now we know where to install TURBODLD, tell the user whats going on
  509.  
  510. Report:
  511.  
  512. @clearoption(10)
  513. @clearoption(20)
  514.  
  515. @tempstring = " @AcadDrive:@AcadDir exists, do you wish to use it? "
  516. @xx = @strlen(@tempstring)
  517. @ourcol = (38 - @xx/2)
  518.  
  519. @Getoption
  520. @localwindow(14,40)
  521.  
  522. @movecstr(1,8,62,"╔═══════════════════════════════════════════════════════════╗")
  523. @movecstr(2,8,62,"║                                                           ║")
  524. @movecstr(3,8,62,"╚═══════════════════════════════════════════════════════════╝")
  525. @Movecstr(2, @bannercol, 48, @bannername)
  526.  
  527. @movecstr(9,@ourcol,48,@tempstring)
  528.      @Option 10 = "Yes, Continue"
  529.      @Option 20 = "No; re-enter the information"
  530. @Endoption
  531.  
  532. @If(20 [= @Option)
  533.    @Goto Get_Acad
  534. @Endif
  535.  
  536. // we get here from building the dir\sub-dir and not asking if they want to use it.
  537.  
  538. WeBuiltPath:
  539.  
  540. // Test the amount of free room left on the dest drive
  541.  
  542. @Display @Cls
  543.  
  544.    @if (@diskfree(@AcadDrive) < 1200000)
  545.  
  546.       @move(7,0)
  547.       The selected output disk drive only has @diskfree(@AcadDrive) bytes.
  548.  
  549.       @namethisprogram requires a minumum of 1.2mb.
  550.  
  551.       The Install program will now exit, please correct this problem
  552.  
  553.       and re-run the Install program.
  554.       @move(21,0)
  555.      @pause
  556.       @exit
  557.    @endif
  558. @enddisplay
  559.  
  560. // Clear the options out
  561. @clearoption(10)
  562. @clearoption(20)
  563.  
  564. @tempstring = " @AcadDrive:@AcadDir "
  565. @xx = @strlen(@tempstring)
  566. @ourcol = (40 - @xx/2)
  567.  
  568. @movecstr(12,@ourcol,63,@tempstring)
  569.  
  570. @tempstring = " @Name will be installed in: "
  571. @xx = @strlen(@tempstring)
  572. @ourcol = (40 - @xx/2)
  573.  
  574. @GetOption
  575.  
  576. @LocalWindow(17,40)
  577.  
  578. @movecstr(1,8,62,"╔═══════════════════════════════════════════════════════════╗")
  579. @movecstr(2,8,62,"║                                                           ║")
  580. @movecstr(3,8,62,"╚═══════════════════════════════════════════════════════════╝")
  581. @Movecstr(2, @bannercol, 48, @bannername)
  582.  
  583. @movecstr(8,@ourcol,63,@tempstring)
  584.      @Option 10 = "Yes, this is the correct path"
  585.      @Option 20 = "No; re-enter the information"
  586. @endoption
  587.  
  588. @If(10 [= @Option)
  589.    @Goto Start_Copy
  590. @Else
  591.    @Goto Get_Acad
  592. @Endif
  593.  
  594. Start_Copy:
  595.  
  596. @Display
  597.  
  598. // First check if this is v10 or 11
  599.  
  600. @If(2000 [= @Option)
  601. //        Creating FASTACAD.BAT and PANA3DS.BAT files, please stand-by
  602.  
  603.    @Write("@AcadDrive:\\@AcadDir\\FASTACAD.BAT", "wt", "SET DLDCFG=@AcadDrive:\\@AcadDir\n")
  604.    @Write( , , "SET DSPADI=@AcadDrive:\\@AcadDir\\@thisprogram\n")
  605.    @Write( , , "SET RDPADI=@AcadDrive:\\@AcadDir\\@thisprogram\n")
  606.    @Write( , , "SET RCPADI=@AcadDrive:\\@AcadDir\\@thisprogram\n")
  607. @Else
  608. //                  Creating PANA3DS.BAT file, please stand-by
  609. @EndIf
  610.  
  611. @Write("@AcadDrive:\\@AcadDir\\PANA3DS.BAT", "wt", "SET DLDCFG=@AcadDrive:\\@AcadDir\n")
  612. @Write( , , "SET RCPADI=@AcadDrive:\\@AcadDir\\@thisprogram\n")
  613.  
  614. @enddisplay
  615.  
  616. // This part is a DOS style copy ...
  617.  
  618. @tempstring = "Processing @namethisprogram Install information -- Please Wait."
  619. @xx = @strlen(@tempstring)
  620. @ourcol = (40 - @xx/2)
  621.  
  622. @Display
  623.  
  624. @movecstr(1,8,62,"╔═══════════════════════════════════════════════════════════╗")
  625. @movecstr(2,8,62,"║                                                           ║")
  626. @movecstr(3,8,62,"╚═══════════════════════════════════════════════════════════╝")
  627. @Movecstr(2, @bannercol, 48, @bannername)
  628.  
  629. @move(6,0)
  630.               R e g i s t e r   T o d a y !
  631.  
  632.        Help us keep you up-to-date with the latest and greatest Panacea
  633.        products.  Be sure to fill out and return your @namethisprogram
  634.        registration card today.  As a registered Panacea software user,
  635.        you will receive advance notice of new products and upgrades
  636.        as well as preferred customer pricing.
  637.  
  638.   @move(21,0)
  639.      @pause
  640.  
  641. @movecstr(16,@ourcol,63,@tempstring)
  642.  
  643. @copy("@ourhomeexp", "@AcadDrive:\\@AcadDir\\@thisprogram")
  644.  
  645. @enddisplay
  646.  
  647. @DefineDisk
  648.    @Label = "Disk #1"
  649.    @BeginLib @ourhomered
  650.        @File *.* @Out @AcadDrive:\\@AcadDir\\*.*
  651.    @EndLib
  652. @EndDisk
  653.  
  654. @If(2000 [= @Option)
  655.   @Finish @cls
  656.    @move(2,0)
  657.      You have successfully installed @namethisprogram for use with 
  658.      AutoCADRelease 10 or 11. Before you can use @namethisprogram you 
  659.      must run the FASTACAD.BAT file copied to your @AcadDrive:@AcadDir 
  660.      sub-directory and then reconfigure AutoCAD to use @namethisprogram.
  661.      You may wish to add FASTACAD.BAT to your AutoCAD start-up file.
  662.  
  663.      To reconfigure AutoCAD to use @namethisprogram start AutoCAD and
  664.      select the "P386 ...." display option and then follow the
  665.      on-screen directions.
  666.  
  667.      Thank you again for using @namethisprogram. We appreciate your
  668.      support and welcome any comments you may have concerning our
  669.      products. To register this software and be eligible for discounts
  670.      on upgrades and other Panacea products, you may contact us by phone
  671.      at 508-937-1760, or by Fax at 508-970-0199. For Technical Support,
  672.      please refer to your Users Manual or READ.ME file.
  673.  
  674.   @move(21,0)
  675.      @pause
  676.  
  677.   @EndFinish
  678.  
  679. @Else
  680.   @Finish @cls
  681.      You have successfully installed @namethisprogram for AutoCAD
  682.      Release 12/13.  Before you can use @namethisprogram you must
  683.      reconfigure AutoCAD. To reconfigure, start AutoCAD with "ACAD -r"
  684.      and change the current display device. Choose @namethisprogram
  685.      from the list of available display drivers and then follow the
  686.      on-screen instructions. Refer to your @namethisprogram
  687.      Installation Guide for detailed configuration instructions.
  688.  
  689.      If you have chosen to install @namethisprogram into a sub-directory
  690.      other than ACAD\DRV, you must append the following path to your
  691.      "SET ACADDRV=...." environment variable.  
  692.          
  693.                  @AcadDrive:@AcadDir
  694.  
  695.      Thank you again for using @namethisprogram.  We appreciate your
  696.      support and welcome any comments you may have concerning our
  697.      products. To register this software and be eligible for discounts
  698.      on upgrades and other Panacea products, you may contact us by phone
  699.      at 508-937-1760, or by Fax at 508-970-0199. For Technical Support,
  700.      please refer to your Users Manual or READ.ME file.
  701.  
  702.   @move(21,0)
  703.      @pause
  704.  
  705.   @EndFinish
  706. @EndIf
  707.  
  708. // end-of-file
  709.  
  710.