home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Video / TSeng / ET4000PC.ZIP / PANASTN.ZIP / INSTALL.DAT < prev    next >
Text File  |  1995-03-15  |  11KB  |  345 lines

  1. /*
  2.  INSTALL.DAT
  3.  
  4.  Project: panaStation Classic
  5.  Version: 1.0
  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 = "panaStation Classic"
  18.     @Version = "1.00"
  19.     @Subdir = "\\USTATION\\DRIVERS"
  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. @DefineVars
  30.     @Integer @DDrive = 99
  31.     @Integer @StrLens = 0
  32.     @Integer @bannercol = 0
  33.     @Integer @Version5Flag = 1
  34.     @Integer @OurCol = 0
  35.     @Integer @XX = 0
  36.     @Dir @USTATIONDir  = "\\USTATION"
  37.     @Drive @USTATIONDrive  = C
  38.     @qstring @redprogram = "PANASTN.RED"
  39.     @qstring @thisprogram = "PANASTN.EXP"
  40.     @qstring @namethisprogram = "panaStation Classic"
  41.     @qstring @helpcontact = " "
  42.     @qstring @ourhomeexp = ""
  43.     @qstring @ourhomered = ""
  44.     @qstring @tempstring = ""
  45.     @qstring @bannername = " p a n a S t a t i o n   C l a s s i c   I n s t a l l "
  46. @EndVars
  47.  
  48. // setup some of the local var defs
  49.  
  50. // Used to display the banner on all screens
  51.  
  52. @xx = @strlen("@bannername")
  53. @bannercol = (38 - @xx/2)
  54.  
  55. // get the correct string for the EXP and the RED files
  56.  
  57. @ourhomeexp = @wherearewe(@thisprogram)
  58.  
  59. @ourhomered = @wherearewe(@redprogram)
  60.  
  61. @tempstring = " utility for @namethisprogram ! "
  62. @xx = @strlen(@tempstring)
  63. @ourcol = (40 - @xx/2)
  64.  
  65. @movecstr(0,0,63,"╔════════════════════════════════════════════════════════════════════════════╗")
  66. @movecstr(1,0,63,"║                                                                            ║")
  67. @movecstr(2,0,63,"║                                                                            ║")
  68. @movecstr(3,0,63,"║                                                                            ║")
  69. @movecstr(3,25,48," Welcome to the installation ")
  70. @movecstr(4,0,63,"║                                                                            ║")
  71. @movecstr(4,@ourcol,48,@tempstring)
  72. @movecstr(5,0,63,"║                                                                            ║")
  73. @movecstr(6,0,63,"║                                                                            ║")
  74. @movecstr(7,0,63,"║                                                                            ║")
  75. @movecstr(8,0,63,"║                                                                            ║")
  76. @movecstr(8,32,63,"Developed by:")
  77. @movecstr(9,0,63,"║                                                                            ║")
  78. @movecstr(10,0,63,"║                                                                            ║")
  79. @movecstr(10,33,49,"Panacea Inc.")
  80. @movecstr(11,0,63,"║                                                                            ║")
  81. @movecstr(11,28,49,"24 Orchard View Drive")
  82. @movecstr(12,0,63,"║                                                                            ║")
  83. @movecstr(12,28,49,"Londonderry, NH 03053")
  84. @movecstr(13,0,63,"║                                                                            ║")
  85. @movecstr(13,37,49,"USA")
  86. @movecstr(14,0,63,"║                                                                            ║")
  87. @movecstr(15,0,63,"║                                                                            ║")
  88. @movecstr(16,0,63,"║                                                                            ║")
  89. @movecstr(17,0,63,"║                                                                            ║")
  90. @movecstr(18,0,63,"║                                                                            ║")
  91. @movecstr(19,0,63,"║                                                                            ║")
  92. @movecstr(20,0,63,"║                                                                            ║")
  93. @movecstr(21,0,63,"║                                                                            ║")
  94. @movecstr(22,0,63,"║                                                                            ║")
  95. @movecstr(23,0,63,"║                                                                            ║")
  96. @movecstr(24,0,63,"║                                                                            ║")
  97. @movecstr(25,0,63,"╚════════════════════════════════════════════════════════════════════════════╝")
  98.  
  99.  
  100. @OurPause
  101.  
  102. @Display
  103.    @cls
  104. @EndDisplay
  105.  
  106. // clear the options first
  107. @clearoption(1000)
  108. @clearoption(2000)
  109.  
  110. @GetOption @cls
  111. @LocalWindow(14,40)
  112.  
  113. @movecstr(1,8,62,"╔═══════════════════════════════════════════════════════════╗")
  114. @movecstr(2,8,62,"║                                                           ║")
  115. @movecstr(3,8,62,"╚═══════════════════════════════════════════════════════════╝")
  116. @Movecstr(2, @bannercol, 48, @bannername)
  117.  
  118. @move(8,0)
  119.        Please enter the Version of MircoStation you are running:
  120.  
  121.     @Option 1000 = "    Version 5     "
  122.     @Option 2000 = "    Version 4     "
  123.  
  124. @EndOption
  125.  
  126. @If(2000 [= @Option)
  127.    @Version5Flag = 0
  128. @Else
  129.    @Version5Flag = 1
  130. @EndIf
  131.  
  132.  
  133.  
  134. Get_USTATION:
  135.  
  136. @GetOutDrive @USTATIONDrive
  137.  
  138.     Install needs to know which drive you would like to copy 
  139.     @namethisprogram files to. Please select an available 
  140.     drive from the list below.
  141.  
  142.     @LocalWindow(16,56)   
  143.   
  144.     Use the [Up Arrow], [Down Arrow], 
  145.     [Pg Up], & [Pg Dn] keys to highlight 
  146.     your selection and then press the 
  147.     [Enter] key to continue.
  148.   
  149. @EndOutDrive
  150.  
  151. @GetSubDir @USTATIONDir
  152.  
  153.     @Cls
  154.     @LocalWindow(14,40)
  155.  
  156.     @movecstr(1,8,62,"╔═══════════════════════════════════════════════════════════╗")
  157.     @movecstr(2,8,62,"║                                                           ║")
  158.     @movecstr(3,8,62,"╚═══════════════════════════════════════════════════════════╝")
  159.     @Movecstr(2, @bannercol, 48, @bannername)
  160.  
  161.     @movecstr(7,5,31,"      Enter The MicroStation directory located on @USTATIONDrive:")
  162.  
  163. @EndSubDir
  164.  
  165. // Clear the options out
  166. @clearoption(10)
  167. @clearoption(20)
  168.  
  169. @If (@DirExists("@USTATIONDrive:\\@USTATIONDir"))
  170.   @GoTo Report
  171. @Else
  172.   @GoTo NoDirExist
  173. @Endif
  174.  
  175. // Now we display path not found message and ask the user to try again.
  176.  
  177. NoDirExist:
  178.     @LocalWindow(14,40)
  179.     @movecstr(1,8,62,"╔═══════════════════════════════════════════════════════════╗")
  180.     @movecstr(2,8,62,"║                                                           ║")
  181.     @movecstr(3,8,62,"╚═══════════════════════════════════════════════════════════╝")
  182.     @Movecstr(2, @bannercol, 48, @bannername)
  183.  
  184.  
  185.     @movecstr(7,5,31,"     @USTATIONDrive:@USTATIONDir does not exist. ")
  186.     @movecstr(9,5,31,"     Please re-enter the information. ")
  187.  
  188.     @clearoption(10)
  189.     @clearoption(20)
  190.  
  191. @Display
  192.     @move(18,20)
  193.     @pause
  194.     @cls
  195. @EndDisplay
  196.  
  197. @GoTo Get_USTATION
  198.  
  199.  
  200.  
  201. // Now we know where to install panaStation Classic, tell the user whats going on
  202.  
  203. Report:
  204.  
  205. @clearoption(10)
  206. @clearoption(20)
  207.  
  208. @tempstring = " @USTATIONDrive:@USTATIONDir exists, do you wish to use it? "
  209. @xx = @strlen(@tempstring)
  210. @ourcol = (38 - @xx/2)
  211.  
  212. @Getoption
  213. @localwindow(14,40)
  214.  
  215. @movecstr(1,8,62,"╔═══════════════════════════════════════════════════════════╗")
  216. @movecstr(2,8,62,"║                                                           ║")
  217. @movecstr(3,8,62,"╚═══════════════════════════════════════════════════════════╝")
  218. @Movecstr(2, @bannercol, 48, @bannername)
  219.  
  220. @movecstr(9,@ourcol,48,@tempstring)
  221.      @Option 10 = "Yes, Continue"
  222.      @Option 20 = "No; re-enter the information"
  223. @Endoption
  224.  
  225. @If(20 [= @Option)
  226.    @Goto Get_USTATION
  227. @Endif
  228.  
  229. // we get here from building the dir\sub-dir and not asking if they want to use it.
  230.  
  231. WeBuiltPath:
  232.  
  233. // Test the amount of free room left on the dest drive
  234.  
  235. @Display @Cls
  236.  
  237.    @if (@diskfree(@USTATIONDrive) < 600000)
  238.  
  239.       @move(7,0)
  240.       The selected output disk drive only has @diskfree(@USTATIONDrive) bytes.
  241.  
  242.       @namethisprogram requires a minumum of 0.6mb.
  243.  
  244.       The Install program will now exit, please correct this problem
  245.  
  246.       and re-run the Install program.
  247.       @move(21,0)
  248.      @pause
  249.       @exit
  250.    @endif
  251. @enddisplay
  252.  
  253. @tempstring = " @USTATIONDrive:@USTATIONDir "
  254. @xx = @strlen(@tempstring)
  255. @ourcol = (40 - @xx/2)
  256.  
  257. @movecstr(12,@ourcol,63,@tempstring)
  258.  
  259. @tempstring = " @Name will be installed in: "
  260. @xx = @strlen(@tempstring)
  261. @ourcol = (40 - @xx/2)
  262.  
  263. // Clear the options out
  264. @clearoption(10)
  265. @clearoption(20)
  266.  
  267. @GetOption
  268.  
  269. @LocalWindow(17,40)
  270.  
  271. @movecstr(1,8,62,"╔═══════════════════════════════════════════════════════════╗")
  272. @movecstr(2,8,62,"║                                                           ║")
  273. @movecstr(3,8,62,"╚═══════════════════════════════════════════════════════════╝")
  274. @Movecstr(2, @bannercol, 48, @bannername)
  275.  
  276. @movecstr(8,@ourcol,63,@tempstring)
  277.      @Option 10 = "Yes, this is the correct path"
  278.      @Option 20 = "No; re-enter the information"
  279. @endoption
  280.  
  281. @If(10 [= @Option)
  282.    @Goto Start_Copy
  283. @Else
  284.    @Goto Get_USTATION
  285. @Endif
  286.  
  287. Start_Copy:
  288.  
  289. @If (@DirExists("@USTATIONDrive:\\@USTATIONDir\\DRIVERS"))
  290.   @GoTo Got_Allsubs
  291. @Else
  292.    @MkDir("@USTATIONDrive:@USTATIONDir\\DRIVERS")
  293. @Endif
  294.  
  295. Got_Allsubs:
  296.  
  297. @If (@Version5Flag == 1)
  298. // Here if Version 5 of MicroStaiton
  299. @DefineDisk
  300.    @Label = "Disk #1"
  301.    @BeginLib @ourhomered
  302.      @File PANASTN.EXP  @OUT @USTATIONDrive:\\@USTATIONDir\\DRIVERS\\panastnp.*
  303.      @File PANASTN.MA   @OUT @USTATIONDrive:\\@USTATIONDir\\DRIVERS\\panastnp.*
  304.      @File PANASTNp.MGL  @OUT @USTATIONDrive:\\@USTATIONDir\\DRIVERS\\*.*
  305.      @File PANASTN.EXP  @OUT @USTATIONDrive:\\@USTATIONDir\\DRIVERS\\panastns.*
  306.      @File PANASTN.MA   @OUT @USTATIONDrive:\\@USTATIONDir\\DRIVERS\\panastns.*
  307.      @File PANASTNs.MGL  @OUT @USTATIONDrive:\\@USTATIONDir\\DRIVERS\\*.*
  308.      @File PSCONFIG.EXE @OUT @USTATIONDrive:\\@USTATIONDir\\DRIVERS\\*.*
  309.      @File READ.ME      @OUT @USTATIONDrive:\\@USTATIONDir\\DRIVERS\\*.*
  310.      @File PSTATION.HLP @OUT @USTATIONDrive:\\@USTATIONDir\\*.*
  311.    @EndLib
  312. @EndDisk
  313.  
  314. @Else
  315. // Here if Version 4 of MicroStaiton
  316. @DefineDisk
  317.    @Label = "Disk #1"
  318.    @BeginLib @ourhomered
  319.      @File PANASTN.EXP  @OUT @USTATIONDrive:\\@USTATIONDir\\DRIVERS\\panastn.*
  320.      @File PANASTN.MA   @OUT @USTATIONDrive:\\@USTATIONDir\\DRIVERS\\panastn.*
  321.      @File PANASTN.MGL  @OUT @USTATIONDrive:\\@USTATIONDir\\DRIVERS\\*.*
  322.      @File PSCONFIG.EXE @OUT @USTATIONDrive:\\@USTATIONDir\\DRIVERS\\*.*
  323.      @File READ.ME      @OUT @USTATIONDrive:\\@USTATIONDir\\DRIVERS\\*.*
  324.      @File PSTATION.HLP @OUT @USTATIONDrive:\\@USTATIONDir\\*.*
  325.    @EndLib
  326. @EndDisk
  327. @Endif
  328.  
  329. @Finish @cls
  330.  
  331.    @move(2,0)
  332.      You have successfully installed @namethisprogram.
  333.  
  334.  
  335.      Thank you again for using @namethisprogram. 
  336.  
  337.  @move(21,0)
  338.      @pause
  339.  
  340. @EndFinish
  341.  
  342. // end-of-file
  343.  
  344. 
  345.