home *** CD-ROM | disk | FTP | other *** search
/ Time Treks / TimeTreksCD.iso / INSTALL.DAT < prev    next >
Text File  |  1995-02-13  |  7KB  |  311 lines

  1. @DefineProject
  2.     @Name = "Time Treks(R)"
  3.     @Version = "1.2"
  4.  @SubDir = "\\TIMETREK"
  5.  @OutDrive = C
  6.     @Group        = "A"
  7.     @InDiskBell = 1
  8.     @Terse
  9. @EndProject
  10.  
  11. @DefineVars
  12.         @Integer @DiskMemReqd = 5258791
  13. @EndVars
  14.  
  15. @Display
  16.     @Cls
  17.                  Magic Quest, Inc.
  18.              A Sanctuary Woods Company
  19.              Technical Support: (415) 286-6110
  20.  
  21.  
  22.  
  23.  
  24.     This program will install @Name Version @Version onto your
  25.     computer system and verify the integrity of the distribution files.
  26.     You may press the [Esc] key at any time to abort the installation.
  27.  
  28.     Each question this program asks you has a default answer.  If the
  29.     default answer is correct, press the ENTER key in response to the
  30.     question. Otherwise, type the answer and then press the ENTER key.
  31.  
  32.     If you make a mistake while typing, press the BACKSPACE key and
  33.     then retype the answer.
  34.  
  35.    @Pause
  36. @EndDisplay
  37.  
  38. /* Check Compatibility */
  39. @If (@VideoCard != 'V')
  40.   @Display
  41.      You need a VGA Adaptor and Monitor to run @Name!
  42.      Your system does not have this...
  43.    @Pause
  44.    @Abort
  45.    @EndDisplay
  46. @Endif
  47. @If    (((@OSMajor * 100) + @OSMinor) < 330)
  48.   @Display
  49.    We are sorry, but your computer is running DOS version @OSMajor.@OSMinor
  50.    @Name requires DOS version 3.30 or higher.
  51.    @Pause
  52.    @Abort
  53.    @EndDisplay
  54. @Endif
  55.  
  56. @GetOption
  57.     @LocalWindow(4,35)
  58.     @Option 100 = "Standard Installation"
  59.     @Option 101 = "Custom Installation"
  60. @Cls
  61.        Select the type of Installation you wish to perform
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  A "Standard" installation will install the @Name distribution
  69.  in the directory @SubDir on Drive @OutDrive: (@OutDrive:@SubDir)
  70.  
  71.  A "Custom" installation will allow you to select which drive and directory
  72.  to install to.
  73.  
  74.  
  75.  
  76.  Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move the
  77.  flashing highlight bar to the type of installation you prefer.
  78.  Press [Enter] to select that type of distribution.
  79.  
  80. @EndOption
  81. /*
  82.  Your @cpu-based computer has the following system components:
  83.  @Eval(@RamAvail/1024)K Avail RAM / @eval(@ExtAvail/1024)K Avail EXT RAM / @eval(@EmmAvail/1024)K Avail EMM RAM
  84. */
  85.  
  86. @If(100 [= @Option)
  87.     @OutDrive = C
  88.     @GoTo Check_Free_Space
  89. @EndIf
  90.  
  91. LIST_DRIVES: // This label is an "@GOTO" destination
  92. @ClearOption(1)
  93.  
  94. @GetOutDrive
  95.     @Suppress A
  96.     @Suppress B
  97.     @LocalWindow(12,40)
  98.  
  99.  Please select the drive where you wish @Name to be installed on your
  100.  machine.  Any available drive (except the floppies A: and B:) can be
  101.  selected assuming you have access rights to the drive you select, and
  102.  there is enough space available for installation.
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the bar
  115.  to your selection and then press the [Enter] key.
  116.  
  117. @EndOutDrive
  118.  
  119. @if (@Removable)
  120.     @Display
  121.        You cannot install @Name onto a floppy drive!
  122.  
  123.        @Abort
  124.     @EndDisplay
  125. @EndIf
  126.  
  127. @If (99 [= @Option)
  128.     @GoTo Check_Free_Space
  129. @EndIf
  130.  
  131. @GetSubdir
  132.     @LocalWindow(11,40)
  133.     @Cls
  134.  Please select the PATH that you wish @Name to be installed under.
  135.  
  136.  
  137.  
  138.  
  139. @EndSubdir
  140.  
  141. Check_Free_Space:
  142.  
  143. @If (@DiskFree @OutDrive < @Eval(@DiskMemReqd))
  144.  
  145.   @GetOption
  146.     @LocalWindow(7,40)
  147.     @Name needs at least @Eval(@DiskMemReqd/1024)K of free disk space to
  148.     install.  You only have @Eval(@DiskFree  @OutDrive/1024)K bytes available on drive @outdrive.
  149.     What would you like to do at this time?
  150.  
  151.  
  152.     @Option 1 = "Choose another drive"
  153.     @Option 2 = "Abort the installation"
  154.   @EndOption
  155. @If (1 [= @Option)
  156. //
  157. //    If INSTALL falls into this block then the end-user has chosen to pick
  158. //    another drive to install onto because the currect drive they have chosen
  159. //    does not have the adequate free space.
  160. //
  161.     @SetOption(99)
  162.     @Goto LIST_DRIVES
  163. @Elseif (2 [= @Option)
  164. //
  165. //    If INSTALL gets here then the end-user has chosen to abort the installation.
  166. //    The end-user at this time will probably abort the installation, free up
  167. //    adequate space on their hard disk, and execute INSTALL again.
  168. //
  169.     @Exit
  170.   @EndIf
  171. @EndIf
  172.  
  173. @DefineDisk
  174.     @Label = "Disk #1"
  175.     @BeginLib TIMETREK.001
  176.         @F 0 @S 2637421 @O TIMETREK.GRP
  177.     @EndLib
  178. @EndDisk
  179.  
  180.  
  181. @DefineDisk
  182.     @Label = "Disk #1"
  183.     @BeginLib TIMETREK.002
  184.         @F 0 @A TIMETREK.GRP
  185.         @F 1 @S 1050528 @O TIMETREK.STK
  186.     @EndLib
  187. @EndDisk
  188.  
  189.  
  190. @DefineDisk
  191.     @Label = "Disk #1"
  192.     @BeginLib TIMETREK.003
  193.         @F 0 @A TIMETREK.STK
  194.         @F 1 @S 371515 @O TIMETREK.EXE
  195.         @F 2 @S 137579 @O SYSFONT.FNT
  196.         @F 3 @S 527871 @O SBMP
  197.         @F 4 @S 72268 @O ICONLIB.ICN
  198.         @F 5 @S 26041 @O SETUP.EXE
  199.         @F 6 @S 19173 @O 20.SND
  200.     @EndLib
  201. @EndDisk
  202.  
  203.  
  204. @DefineDisk
  205.     @Label = "Disk #1"
  206.     @BeginLib TIMETREK.004
  207.         @F 0 @A 20.SND
  208.         @F 1 @S 19014 @O 45.SND
  209.         @F 2 @S 18850 @O 43.SND
  210.         @F 3 @S 18065 @O HGAME.DAT
  211.         @F 4 @S 18018 @O 44.SND
  212.         @F 5 @S 17506 @O 42.SND
  213.         @F 6 @S 16133 @O 19.SND
  214.         @F 7 @S 14213 @O 36.SND
  215.         @F 8 @S 13957 @O 32.SND
  216.         @F 9 @S 9272 @O README.DOC
  217.         @F A @S 11109 @O 21.SND
  218.         @F B @S 11083 @O 18.SND
  219.         @F C @S 10091 @O 6.SND
  220.         @F D @S 9498 @O 34.SND
  221.         @F E @S 9061 @O 35.SND
  222.         @F F @S 9029 @O 23.SND
  223.         @F G @S 8943 @O 25.SND
  224.         @F H @S 8011 @O 37.SND
  225.         @F I @S 8005 @O 29.SND
  226.         @F J @S 7872 @O TIMETREK.NME
  227.         @F K @S 7800 @O BNK.DB
  228.         @F L @S 7755 @O 5.SND
  229.         @F M @S 7627 @O 33.SND
  230.         @F N @S 7554 @O TIMETREK.CDX
  231.         @F O @S 7533 @O 28.SND
  232.         @F P @S 7365 @O 17.SND
  233.         @F Q @S 7023 @O 27.SND
  234.         @F R @S 6747 @O 4.SND
  235.         @F S @S 6587 @O 0.SND
  236.         @F T @S 6187 @O 3.SND
  237.         @F U @S 6022 @O 31.SND
  238.         @F V @S 5173 @O 22.SND
  239.         @F W @S 5061 @O 39.SND
  240.         @F X @S 4987 @O 11.SND
  241.         @F Y @S 4965 @O 41.SND
  242.         @F Z @S 4862 @O 30.SND
  243.         @F 00 @S 4395 @O 16.SND
  244.         @F 10 @S 4229 @O 1.SND
  245.         @F 20 @S 4132 @O FGAME2.DAT
  246.         @F 30 @S 3883 @O 24.SND
  247.         @F 40 @S 3637 @O 13.SND
  248.         @F 50 @S 3599 @O 26.SND
  249.         @F 60 @S 3131 @O 12.SND
  250.         @F 70 @S 3109 @O BGAME.DAT
  251.         @F 80 @S 3087 @O EGAME.DAT
  252.         @F 90 @S 3075 @O VOCA.HAS
  253.         @F A0 @S 2885 @O 7.SND
  254.         @F B0 @S 2875 @O 15.SND
  255.         @F C0 @S 2795 @O GGAME.DAT
  256.         @F D0 @S 2576 @O KGAME.DAT
  257.         @F E0 @S 2507 @O LGAME.DAT
  258.         @F F0 @S 2485 @O 40.SND
  259.         @F G0 @S 2154 @O CGAME.DAT
  260.         @F H0 @S 2081 @O DGAME.DAT
  261.         @F I0 @S 1888 @O TIMETREK.CGX
  262.         @F J0 @S 1653 @O 8.SND
  263.         @F K0 @S 1173 @O 9.SND
  264.         @F L0 @S 1099 @O 2.SND
  265.         @F M0 @S 1035 @O 10.SND
  266.         @F N0 @S 754 @O TIMETREK.BDX
  267.         @F O0 @S 724 @O SGAME.DAT
  268.         @F P0 @S 603 @O 14.SND
  269.         @F Q0 @S 600 @O SND.IDX
  270.         @F R0 @S 261 @O 38.SND
  271.         @F S0 @S 260 @O IGAME.DAT
  272.         @F T0 @S 298 @O SBMP.IDX
  273.         @F U0 @S 188 @O TIMETREK.BGX
  274.         @F V0 @S 119 @O FGAME.DAT
  275.         @F W0 @S 99 @O TIMETREK.SWI
  276.         @F X0 @S 96 @O TTGAME.DAT
  277.         @F Y0 @S 40 @O TIMETREK.CFG
  278.         @F Z0 @S 30 @O CONFIG.SYS
  279.         @F 01 @S 27 @O STACKTAB
  280.         @F 11 @S 25 @O README.BAT
  281.         @F 21 @S 4 @O START
  282.         @F 31 @S 3 @O TIMETREK.FUN
  283.         @F 41 @S 57 @O TT.BAT
  284.     @EndLib
  285. @EndDisk
  286.  
  287. @SetConfig
  288.         @AskOverWrite
  289.   @Buffers = 20
  290.   @Files = 25
  291. @EndConfig
  292.  
  293. @Finish
  294.  
  295.     @ChDrive @OutDrive
  296.     @ChDir "@SubDir"
  297.  
  298.   @Write("@OutDrive:@SubDir\\TT.bat", "wt", "@@echo off\n@OutDrive:\ncd @OutDrive:@SubDir\ntimetrek")
  299.   @Write("@OutDrive:\\TT.bat", "wt", "@@echo off\n@OutDrive:\ncd @OutDrive:@SubDir\ntimetrek")
  300.     @Spawn("Setup")
  301.     @Cls
  302.  
  303.     The installation of @Name is now finished.
  304.  Enter TT at the DOS prompt to start
  305.  
  306.     @Pause
  307.  
  308. @EndFinish
  309.  
  310. // end-of-file
  311.