home *** CD-ROM | disk | FTP | other *** search
/ Program Metropolis - Software Boutique 95 / SOFTWARECD.iso / ms / disk1 / install.dat < prev    next >
Encoding:
INSTALL Professional project  |  1993-11-14  |  26.4 KB  |  895 lines

  1. /*-----------------------------------------------------*/
  2. /*  Installation script for MetaStock RT version 4.0   */
  3. /*        (C) EQUIS International, 1989-1993           */
  4. /*-----------------------------------------------------*/
  5.  
  6. /*-----------------------------------------------------*/
  7. /* Group A   -  "New installation"                     */
  8. /* Group B   -  "Upgrade from 2.0"                     */
  9. /* Group C   -  "Upgrade from 2.5"                     */
  10. /* Group D   -  "Upgrade from 3.0 (RT or EOD)"         */
  11. /* Group E   -  "Upgrade from 3.5 (RT or EOD)"         */
  12. /* Group F   -  "Upgrade from 4.0 non-RT"              */
  13. /* Group G   -  "Update       4.0 RT"                  */
  14. /* Group X   -  "Yes, Install sample files"            */
  15. /* Group Y   -  "No,  Do not install sample files"     */
  16. /* Option 1  - Okay to overwrite existing path.        */
  17. /* Option 2  - User wants to respecify path.           */
  18. /* Option 3  - User wants to abort getsubdir.          */
  19. /*-----------------------------------------------------*/
  20.  
  21. /*-----------------------------------------------------*/
  22. /* Remove/add "RT" to the @Name to control version.    */
  23. /*-----------------------------------------------------*/
  24.  
  25. @DefineProject
  26.    @Name = "MetaStock"
  27.    @Version      = "4.0"
  28.    @Subdir       = "\\MS"       
  29.    @OutDrive     = C            
  30.    @Requires     3100000        /* Requires xxx to run (with temp files). */
  31.                                 /* Varies with size of sample data!       */
  32.    @Requires     @HARDDISK      
  33.    @Group        = "A"          /* Default to a new installation */
  34. @EndProject
  35.  
  36. /*-------------------------------------------------------------------------*/
  37. /* Set @IsRealTime.                                                        */
  38. /*-------------------------------------------------------------------------*/
  39.  
  40. @DefineVars
  41.    /* Change @IsRealTime to @TRUE or @FALSE as required. */
  42.    /* If you change this, you must also add/delete "RT" from the @NAME, above*/
  43.  
  44.    @Integer @IsRealTime = @FALSE
  45.  
  46.    /* Set @OurDiskSize to [3]60, [7]20, [1].2, or 1.[4] as required. */
  47.  
  48.    @Integer @OurDiskSize = 7
  49.  
  50.    /* Do not change the following expressions except on major releases. */
  51.  
  52.    @Integer @OurMinAvailBytes = @Eval( 512 * 1024 )
  53.    @Integer @OurMinTotalBytes = @Eval( 635 * 1024 )
  54. @EndVars
  55.  
  56. /*-------------------------------------------------------------------------*/
  57. /* Display title/welcome screen.                                           */
  58. /*-------------------------------------------------------------------------*/
  59.  
  60. @DISPLAY
  61.    @CLS
  62.  
  63.      ╒════════════════════════════════════════════════════════════════╕
  64.      │                 (C) 1993 EQUIS International                   │
  65.      ╘════════════════════════════════════════════════════════════════╛
  66.  
  67.      This program will install @Name on your hard disk.
  68.  
  69.      This program will NOT modify your AUTOEXEC.BAT or CONFIG.SYS files.
  70.  
  71.      You may perform a new installation or upgrade an existing version 
  72.      of MetaStock.  If you have existing MetaStock data files, they will 
  73.      not be overwritten.  
  74.  
  75.      You may press the [Esc] key at any time to abort the installation
  76.      process.
  77.  
  78.     @PAUSE
  79. @ENDDISPLAY
  80.  
  81. /*-------------------------------------------------------------------------*/
  82. /* Check system configuration.                                             */
  83. /*-------------------------------------------------------------------------*/
  84.  
  85. @IF(@OSMAJOR < 3)
  86.     @DISPLAY
  87.     @CLS
  88.  
  89.     @Name requires DOS version 3.0 or greater.  You are using version
  90.     @OSMAJOR.@OSMINOR.
  91.  
  92.     @ABORT
  93.     @ENDDISPLAY
  94. @ENDIF
  95.  
  96. @IF( @RAMTOTAL < @OurMinTotalBytes )
  97.     @DISPLAY
  98.     @CLS
  99.  
  100.     @Name requires that you have at least @Eval(@OurMinTotalBytes / 1024)K of conventional
  101.     memory installed.  Your computer only has @Eval(@RAMTOTAL / 1024)K.
  102.  
  103.     The installation process will continue, but you may not be able to run 
  104.     @Name.
  105.  
  106.     Refer to "System Requirements" in the MetaStock User's Manual for
  107.     additional information on memory requirements.
  108.  
  109.     @PAUSE
  110.     @ENDDISPLAY
  111. @ENDIF
  112.  
  113. @IF( @RAMAVAIL < @OurMinAvailBytes )
  114.     @DISPLAY
  115.     @CLS
  116.  
  117.     @Name requires at least @Eval(@OurMinAvailBytes / 1024)K of available conventional memory. 
  118.     Your computer only has @Eval( @RAMAVAIL / 1024 )K.
  119.  
  120.     The installation process will continue, but you may not be able to run
  121.     @Name.
  122.  
  123.     Refer to "System Requirements" in the MetaStock User's Manual for
  124.     additional information on memory requirements.  You may need to install
  125.     memory management software.  Call EQUIS International's Customer Support 
  126.     for assistance.
  127.  
  128.     @PAUSE
  129.     @ENDDISPLAY
  130. @ENDIF
  131.  
  132. @IF(@CPU < 286 )
  133.     @DISPLAY
  134.     @CLS
  135.  
  136.     @Name requires a computer that has an 80286 or faster CPU.  Your 
  137.     computer has an 80@CPU CPU.
  138.  
  139.     This installation process will continue, but running MetaStock on this
  140.     computer will probably cause MetaStock to RUN UNBEARABLY SLOW.
  141.     @IF( @IsRealTime )
  142.     
  143.     If you try to collect real-time data on this computer, you will probably 
  144.     lose significant amounts of real-time data.
  145.     @ENDIF
  146.  
  147.     Refer to "System Requirements" in the @Name User's Manual for 
  148.     additional information on computer requirements.
  149.  
  150.     @PAUSE
  151.     @ENDDISPLAY
  152. @ENDIF 
  153.  
  154. @IF(@NDP == 0 )
  155.     @DISPLAY
  156.     @CLS
  157.  
  158.     Your computer does not have a math coprocessor.  Installing one will
  159.     improve the performance of @Name considerably.
  160.     @IF( @IsRealTime )
  161.     
  162.     If you try to collect real-time data on this computer, your computer
  163.     may not be able to recalculate and redisplay the charts as quickly as
  164.     data is received.
  165.     @ENDIF
  166.  
  167.     Refer to "System Requirements" in the @Name User's Manual for 
  168.     additional information on coprocessors.
  169.  
  170.     @PAUSE
  171.     @ENDDISPLAY
  172. @ENDIF
  173.  
  174. @IF( @EMMMAJOR == 0)
  175.     @DISPLAY
  176.     @CLS
  177.  
  178.     @IF( @IsRealTime )
  179.  
  180.     @Name requires expanded memory to collect real-time data.  
  181.  
  182.     This installation process will continue, but running @Name on 
  183.     this computer may cause MetaStock to RUN UNBEARABLY SLOW.
  184.     
  185.     If you try to collect real-time data on this computer, you may lose 
  186.     significant amounts of real-time data.
  187.     @ELSE
  188.  
  189.     Your computer does not have any expanded memory available.  Adding 
  190.     or enabling expanded memory will improve @Name's performance.
  191.     @ENDIF
  192.  
  193.     Refer to "System Requirements" and "Memory Usage" sections in the
  194.     @Name User's Manual for additional information on expanded memory.
  195.  
  196.     @PAUSE
  197.     @ENDDISPLAY
  198. @ENDIF
  199.  
  200. @IF( (@VIDEOCARD == 'M') || (@VIDEOCARD == 'C'))
  201.     @DISPLAY
  202.     @CLS
  203.  
  204.     MetaStock requires EGA or VGA video hardware.
  205.     
  206.     @IF( (@VIDEOCARD == 'M') )
  207.     Your computer reports that it is equipped with a monochrome adapter.
  208.     @ENDIF
  209.  
  210.     @IF( (@VIDEOCARD == 'C') )
  211.     Your computer reports that it is equipped with a CGA adapter.
  212.     @ENDIF
  213.  
  214.     This installation process will continue, but you may not be able to run
  215.     MetaStock.
  216.  
  217.     Refer to "System Requirements" in the MetaStock User's Manual for
  218.     additional information on video hardware requirements.
  219.  
  220.     @PAUSE
  221.     @ENDDISPLAY
  222. @ELSE
  223.     @DISPLAY
  224.     @if(@VIDEORAM < 256)
  225.       @CLS
  226.  
  227.       MetaStock requires that your EGA or VGA video hardware contains a 
  228.       minimum of 256k of graphic memory.  Your computer reports that it 
  229.       contains an EGA or VGA adapters which has less than 256k.
  230.  
  231.       This installation process will continue, but you may not be able to
  232.       run MetaStock.
  233.  
  234.       Refer to "System Requirements" in the MetaStock User's Manual for
  235.       additional information on video hardware requirements.
  236.  
  237.       @PAUSE
  238.     @ENDIF
  239.     @ENDDISPLAY
  240. @ENDIF
  241.  
  242. @GetGroups
  243.     @CLS
  244.     @FLUSHGROUPS()
  245.     Select the files to install and press [Enter].
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.     If you are upgrading from an older (i.e., non-Professional) version,
  256.     select "New Installation."
  257.  
  258.     Regardless of your selection, your security data files will not be 
  259.     overwritten.
  260.  
  261.     @SET A = "New Installation"
  262.     @SET B = "Upgrade from MetaStock 2.0"
  263.     @SET C = "Upgrade from MetaStock 2.5"
  264.     @SET D = "Upgrade from MetaStock 3.0"
  265.     @SET E = "Upgrade from MetaStock 3.5"
  266.     @IF( @IsRealTime )
  267.     @SET F = "Upgrade from MetaStock 4.0 (non-RT)"
  268.     @SET G = "Update MetaStock 4.0 RT"
  269.     @ELSE
  270.     @SET G = "Update MetaStock 4.0"
  271.     @ENDIF
  272.  
  273. @EndGroups
  274.  
  275. @IF( 'a' [= @GROUP ) /* New Installation */
  276.    @DISPLAY
  277.    @CLS
  278.    Please make sure you return the enclosed registration card to be 
  279.    eligible for:
  280.  
  281.     EQUIS International's free customer support by phone, fax, mail,
  282.      and CompuServe.
  283.  
  284.     Newsletters filled with tips and ideas about EQUIS products.
  285.  
  286.     Early notice of new versions and low upgrade prices.
  287.    @IF( @IsRealTime )
  288.     Intraday data collection from DBC Signal.
  289.    @ENDIF
  290.  
  291.    @PAUSE
  292.    @ENDDISPLAY
  293. @ENDIF
  294.  
  295. @GetOutDrive
  296.   @CLS
  297.  
  298.     Select the disk drive you want to install @Name on.
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.     Use the [Up]/[Down] keys to select the disk drive and press [Enter].
  313.  
  314. @EndOutDrive
  315.  
  316. GETSUBDIR:
  317.  
  318. @GetSubdir
  319.   @CLS
  320.  
  321.      Now you need to specify the subdirectory where @Name should 
  322.      be installed.
  323.    @IF( 'b' [= @GROUP ) /* Upgrading from 2.0 */
  324.      Since you are upgrading from MetaStock version 2.0, be sure to specify
  325.      the subdirectory where your version 2.0 program files are located.
  326.    @ELSEIF( 'c' [= @GROUP ) /* Upgrading from 2.5 */
  327.      Since you are upgrading from MetaStock version 2.5, be sure to specify
  328.      the subdirectory where your version 2.5 program files are located.
  329.    @ELSEIF( 'd' [= @GROUP ) /* Upgrading 3.0 */
  330.      Since you are upgrading from MetaStock version 3.0, be sure to specify
  331.      the subdirectory where your version 3.0 program files are located.
  332.    @ELSEIF( 'e' [= @GROUP ) /* Upgrading 3.5 */
  333.      Since you are upgrading from MetaStock 3.5, be sure to specify 
  334.      the subdirectory where your existing program files are located.
  335.    @ELSEIF( 'f' [= @GROUP ) /* Upgrading 4.0 non-RT */
  336.      Since you are upgrading from MetaStock 4.0 EOD, be sure to specify 
  337.      the subdirectory where your existing program files are located.
  338.    @ELSEIF( 'g' [= @GROUP ) /* Updating 4.0 */
  339.      Since you are updating an existing copy of MetaStock 4.0, be sure 
  340.      to specify the subdirectory where your existing program files are
  341.      located.
  342.    @ELSE
  343.      We suggest that you simply press [Enter] to install the program in the
  344.      default subdirectory named below.
  345.    @ENDIF
  346.  
  347.  
  348.   @PROMPT = "Install in which subdirectory?"
  349.  
  350. @EndSubdir
  351.  
  352.  
  353. @IF( 'a' [= @GROUP ) /* New Installation. */
  354.  
  355.   @FLUSHOPTIONS()
  356.  
  357.   @IF( @DirExists( "@OutDrive:\\@Subdir" ) == 1)
  358.  
  359.     @GETOPTION
  360.     @CLS
  361.     
  362.     A subdirectory named @OutDrive:@Subdir already exists.
  363.     
  364.  
  365.     @Option 1 = "Overwrite"
  366.     @Option 2 = "Respecify subdirectory"
  367.     @Option 3 = "Cancel installation"
  368.  
  369.     @ENDOPTION
  370.  
  371.   @ENDIF
  372.  
  373.   @IF( 2 [= @OPTION )
  374.     @GOTO GETSUBDIR
  375.   @ENDIF
  376.  
  377.   @IF( 3 [= @OPTION )
  378.     @EXIT
  379.   @ENDIF
  380.  
  381. @ENDIF
  382.  
  383.  
  384.  
  385. @IF( 'b' [= @GROUP ) /* Upgrading from 2.0 */
  386.    @IF( (@Exists "@OutDrive:\\@Subdir\\MS20CNFG.DTA" == 0) ||
  387.         (@Exists "@OutDrive:\\@Subdir\\MS20COLR.DTA" == 0) ||
  388.         (@Exists "@OutDrive:\\@Subdir\\MS20PRFT.DTA" == 0) ||
  389.         (@Exists "@OutDrive:\\@Subdir\\MS20PRNT.DTA" == 0) )
  390.    @DISPLAY
  391.    @CLS
  392.    Some of MetaStock version 2.0's program files (i.e., MS20*.DTA) were
  393.    not found on @OutDrive:@Subdir.  
  394.       
  395.    You need to specify the correct subdirectory (or you may press [Esc] 
  396.    now to abort this installation process).
  397.  
  398.    @PAUSE
  399.    @GOTO GETSUBDIR
  400.  
  401.    @ENDDISPLAY
  402.    @ENDIF
  403. @ENDIF
  404.  
  405. @IF( 'c' [= @GROUP ) /* Upgrading from 2.5 */
  406.    @IF( (@Exists "@OutDrive:\\@Subdir\\MS25CNFG.DTA" == 0) ||
  407.         (@Exists "@OutDrive:\\@Subdir\\MS25COLR.DTA" == 0) ||
  408.         (@Exists "@OutDrive:\\@Subdir\\MSFORMUL.DTA" == 0) ||
  409.         (@Exists "@OutDrive:\\@Subdir\\MS25PRNT.DTA" == 0) )
  410.    @DISPLAY
  411.    @CLS
  412.    Some of MetaStock version 2.5's program files (i.e., MS25*.DTA) were
  413.    not found on @OutDrive:@Subdir.  
  414.  
  415.    You need to specify the correct subdirectory (or you may press [Esc] 
  416.    now to abort this installation process).
  417.  
  418.    @PAUSE
  419.    @GOTO GETSUBDIR
  420.    
  421.    @ENDDISPLAY
  422.    @ENDIF
  423. @ENDIF
  424.  
  425.  
  426. @IF( 'd' [= @GROUP ) /* Upgrading 3.0 */
  427.    @IF( (@Exists "@OutDrive:\\@Subdir\\MS30CNFG.DTA" == 0) ||
  428.         (@Exists "@OutDrive:\\@Subdir\\MS30COLR.DTA" == 0) ||
  429.         (@Exists "@OutDrive:\\@Subdir\\MS30FORM.DTA" == 0) ||
  430.         (@Exists "@OutDrive:\\@Subdir\\MS30PRFT.DTA" == 0) ||
  431.         (@Exists "@OutDrive:\\@Subdir\\MS30PRNT.DTA" == 0) )
  432.    @DISPLAY
  433.    @CLS
  434.    Some of MetaStock version 3.0's program files (i.e., MS30*.DTA) were 
  435.    not found on @OutDrive:@Subdir.
  436.  
  437.    You need to specify the correct subdirectory (or you may press [Esc] 
  438.    now to abort this installation process).
  439.  
  440.    @PAUSE
  441.    @GOTO GETSUBDIR
  442.  
  443.    @ENDDISPLAY
  444.    @ENDIF
  445. @ENDIF
  446.  
  447.  
  448. @IF( 'e' [= @GROUP ) /* Upgrading 3.5 */
  449.    @IF( (@Exists "@OutDrive:\\@Subdir\\MS35CNFG.DTA" == 0) ||
  450.         (@Exists "@OutDrive:\\@Subdir\\MS35COLR.DTA" == 0) ||
  451.         (@Exists "@OutDrive:\\@Subdir\\MS35FORM.DTA" == 0) ||
  452.         (@Exists "@OutDrive:\\@Subdir\\MS35PRFT.DTA" == 0) ||
  453.         (@Exists "@OutDrive:\\@Subdir\\MS35PRNT.DTA" == 0) )
  454.    @DISPLAY
  455.    @CLS
  456.    Some of MetaStock version 3.5's program files (i.e., MS35*.DTA) were
  457.    not found on @OutDrive:@Subdir.
  458.  
  459.    You need to specify the correct subdirectory (or you may press [Esc] 
  460.    now to abort this installation process).
  461.  
  462.    @PAUSE
  463.    @GOTO GETSUBDIR
  464.  
  465.    @ENDDISPLAY
  466.    @ENDIF
  467. @ENDIF
  468.  
  469.  
  470. @IF( ('f' [= @GROUP) || ('g' [= @GROUP)) /* Updating 4.0, or Upgrading 4.0 EOD */
  471.    @IF( (@Exists "@OutDrive:\\@Subdir\\MS40CNFG.DTA" == 0) ||
  472.         (@Exists "@OutDrive:\\@Subdir\\MS40COLR.DTA" == 0) ||
  473.         (@Exists "@OutDrive:\\@Subdir\\MS40FORM.DTA" == 0) ||
  474.         (@Exists "@OutDrive:\\@Subdir\\MS40PRFT.DTA" == 0) ||
  475.         (@Exists "@OutDrive:\\@Subdir\\MS40EXPL.DTA" == 0) ||
  476.         (@Exists "@OutDrive:\\@Subdir\\MS40PRNT.DTA" == 0)) 
  477.    @DISPLAY
  478.    @CLS
  479.    Some of MetaStock version 4.0's program files (i.e., MS40*.DTA) were 
  480.    not found on @OutDrive:@Subdir.
  481.  
  482.    You need to specify the correct subdirectory (or you may press [Esc] 
  483.    now to abort this installation process).
  484.  
  485.    @PAUSE
  486.    @GOTO GETSUBDIR
  487.  
  488.    @ENDDISPLAY
  489.    @ENDIF
  490. @ENDIF
  491.  
  492.  
  493. @IF( ('b' [= @GROUP) || ('c' [= @GROUP) ) /* Upgrade from 2.0 or 2.5 */
  494.    @DISPLAY
  495.    @CLS
  496.    This installation program retains your version 2.x color, configuration, 
  497.    and custom formula selections.  Your existing security data files will
  498.    not be modified.  
  499.   
  500.    However, your existing Smart Chart files are not compatible with 
  501.    version @Version.
  502.  
  503.    The old MetaStock version 2.x program will be overwritten.  If you want
  504.    to keep version 2.x, you should press [Esc] now to abort the installation
  505.    process.  You should then rerun this installation program, select New
  506.    Installation, and install the program in a new subdirectory 
  507.    (e.g., C:\MS40).
  508.  
  509.    @PAUSE
  510.    @ENDDISPLAY
  511. @ENDIF
  512.  
  513. @IF( ('d' [= @GROUP) || ('e' [= @GROUP)) /* Upgrade from 3.x */
  514.    @DISPLAY
  515.    @CLS
  516.    This installation program retains your version 3.x color, configuration, 
  517.    custom formula, layouts, and profit systems.  Your existing security data 
  518.    files will not be modified.  
  519.  
  520.    @PAUSE
  521.    @ENDDISPLAY
  522. @ENDIF
  523.  
  524. @IF( ('f' [= @GROUP) || ('g' [= @GROUP ) ) /* Upgrade/update from 4.0 */
  525.    @DISPLAY
  526.    @CLS
  527.    This installation program retains your version 4.0 color, configuration, 
  528.    custom formulas, explorations, layouts, macros, system tests, and 
  529.    templates.  Your existing security data files will not be modified.  
  530.  
  531.    @PAUSE
  532.    @ENDDISPLAY
  533. @ENDIF
  534.  
  535. @IF( 'a' [= @GROUP ) /* New Installation */
  536.  
  537.   /* Only ask if they want to install the security data files if there is
  538.    * not a MASTER file in the subdir.  It is almost impossible to have 
  539.    * data there, but we MUST protect their data!
  540.    */
  541.  
  542.   @IF( !@Exists "@OutDrive:\\@Subdir\\DATA\\MASTER" )
  543.     @GetGroups
  544.       @CLS
  545.  
  546.       Do you want to install the Sample Data files?
  547.  
  548.  
  549.  
  550.  
  551.       If you select "Yes," the Sample Data files will be copied into a
  552.       subdirectory named @OutDrive:@Subdir\DATA.
  553.  
  554.       @SET x = "Yes, Install sample files"
  555.       @SET y = "No,  Do not install sample files"
  556.  
  557.     @EndGroups
  558.  
  559.   @ENDIF
  560.  
  561. @ELSE
  562.   @DISPLAY
  563.   @CLS
  564.   A special Getting Started With Your Upgrade manual has been provided to
  565.   help you learn the new features in version 4.0 as quickly as possible.  
  566.   Please take a few moments to read it.
  567.  
  568.   For a guided tour of the new features, type NEW while in the MetaStock 
  569.   subdirectory.
  570.  
  571.   @PAUSE
  572.   @ENDDISPLAY
  573. @ENDIF
  574.  
  575. @DefineDisk
  576.  
  577.    /*----------------------------------------------------------------------*/
  578.    /* This next block selects the appropriate disk label based on the      */
  579.    /* version (i.e., Rt or Eod) and the disk size (i.e., 3, 7, 1, 4).      */
  580.    /* This block is duplicated (with minor modifications) at the beginning */
  581.    /* of each @DefineDisk block.                                           */
  582.    /*----------------------------------------------------------------------*/
  583.  
  584.    @If( @IsRealTime )
  585.        @If( @OurDiskSize == 3 )
  586.            @LABEL = "MetaStock RT, Disk 1 of 4"
  587.        @Else
  588.            @If( @OurDiskSize == 7 )
  589.                @LABEL = "MetaStock RT, Disk 1 of 2"
  590.            @Else
  591.                @If( @OurDiskSize == 1 )
  592.                    @LABEL = "MetaStock RT, Disk 1 of 2"
  593.                @Else 
  594.                    @If( @OurDiskSize == 4 )
  595.                        @LABEL = "MetaStock RT, Disk 1 of 1"
  596.                    @Else
  597.                        @Cls
  598.                        Invalid \@OurDiskSize.
  599.                        @Abort
  600.                    @Endif
  601.                 @Endif
  602.            @Endif 
  603.        @Endif
  604.    @Else
  605.        @If( @OurDiskSize == 3 )
  606.            @LABEL = "MetaStock, Disk 1 of 4"
  607.        @Else
  608.            @If( @OurDiskSize == 7 )
  609.                @LABEL = "MetaStock, Disk 1 of 2"
  610.            @Else
  611.                @If( @OurDiskSize == 1 )
  612.                    @LABEL = "MetaStock, Disk 1 of 2"
  613.                @Else
  614.                    @If( @OurDiskSize == 4 )
  615.                        @LABEL = "MetaStock, Disk 1 of 1"
  616.                    @Else
  617.                        @Cls
  618.                        Invalid \@OurDiskSize.
  619.                        @Abort
  620.                    @Endif
  621.                @Endif 
  622.            @Endif 
  623.        @Endif 
  624.    @Endif
  625.  
  626.    @File README.TXT
  627.    @File README.BAT
  628.    @File   SHOW.EXE
  629.  
  630.    @BeginLib MS.001         
  631.        @File MS.EXE
  632.    @EndLib
  633.  
  634. @EndDisk
  635.  
  636. @DefineDisk
  637.  
  638.    /*----------------------------------------------------------------------*/
  639.    /* This next block selects the appropriate disk label based on the      */
  640.    /* version (i.e., Rt or Eod) and the disk size (i.e., 3, 7, 1, 4).      */
  641.    /* This block is duplicated (with minor modifications) at the beginning */
  642.    /* of each @DefineDisk block.                                           */
  643.    /*----------------------------------------------------------------------*/
  644.  
  645.    @If( @IsRealTime )
  646.        @If( @OurDiskSize == 3 )
  647.            @LABEL = "MetaStock RT, Disk 2 of 4"
  648.        @Else
  649.            @If( @OurDiskSize == 7 )
  650.                @LABEL = "MetaStock RT, Disk 1 of 2"
  651.            @Else
  652.                @If( @OurDiskSize == 1 )
  653.                    @LABEL = "MetaStock RT, Disk 1 of 2"
  654.                @Else 
  655.                    @If( @OurDiskSize == 4 )
  656.                        @LABEL = "MetaStock RT, Disk 1 of 1"
  657.                    @Else
  658.                        @Cls
  659.                        Invalid \@OurDiskSize.
  660.                        @Abort
  661.                    @Endif
  662.                @Endif
  663.            @Endif 
  664.        @Endif
  665.    @Else
  666.        @If( @OurDiskSize == 3 )
  667.            @LABEL = "MetaStock, Disk 2 of 4"
  668.        @Else
  669.            @If( @OurDiskSize == 7 )
  670.                @LABEL = "MetaStock, Disk 1 of 2"
  671.            @Else
  672.                @If( @OurDiskSize == 1 )
  673.                    @LABEL = "MetaStock, Disk 1 of 2"
  674.                @Else
  675.                    @If( @OurDiskSize == 4 )
  676.                        @LABEL = "MetaStock, Disk 1 of 1"
  677.                    @Else
  678.                        @Cls
  679.                        Invalid \@OurDiskSize.
  680.                        @Abort
  681.                    @Endif
  682.                @Endif 
  683.            @Endif 
  684.        @Endif 
  685.    @Endif
  686.  
  687.    @BeginLib MS.002
  688.        @File MS.EXE
  689.    @EndLib
  690.  
  691.    @BeginLib MS40Pre3.red  
  692.        @File *.*           @Group abc
  693.    @EndLib
  694.  
  695.    @BeginLib MS40Pre4.red  
  696.        @File *.*           @Group abcde
  697.    @EndLib
  698.  
  699.    @BeginLib MS40Strg.red
  700.        @File *.*           
  701.    @EndLib
  702.  
  703.    @BeginLib MS40Tmpl.red
  704.        @File *.*           @Out TEMPLATE\*.* @Group abcde /* All but 4.0 */
  705.    @EndLib
  706.  
  707. @EndDisk
  708.  
  709. @DefineDisk
  710.  
  711.    /*----------------------------------------------------------------------*/
  712.    /* This next block selects the appropriate disk label based on the      */
  713.    /* version (i.e., Rt or Eod) and the disk size (i.e., 3, 7, 1, 4).      */
  714.    /* This block is duplicated (with minor modifications) at the beginning */
  715.    /* of each @DefineDisk block.                                           */
  716.    /*----------------------------------------------------------------------*/
  717.  
  718.    @If( @IsRealTime )
  719.        @If( @OurDiskSize == 3 )
  720.            @LABEL = "MetaStock RT, Disk 3 of 4"
  721.        @Else
  722.            @If( @OurDiskSize == 7 )
  723.                @LABEL = "MetaStock RT, Disk 2 of 2"
  724.            @Else
  725.                @If( @OurDiskSize == 1 )
  726.                    @LABEL = "MetaStock RT, Disk 1 of 2"
  727.                @Else 
  728.                    @If( @OurDiskSize == 4 )
  729.                        @LABEL = "MetaStock RT, Disk 1 of 1"
  730.                    @Else
  731.                        @Cls
  732.                        Invalid \@OurDiskSize.
  733.                        @Abort
  734.                    @Endif
  735.                @Endif
  736.            @Endif 
  737.        @Endif
  738.    @Else
  739.        @If( @OurDiskSize == 3 )
  740.            @LABEL = "MetaStock, Disk 3 of 4"
  741.        @Else
  742.            @If( @OurDiskSize == 7 )
  743.                @LABEL = "MetaStock, Disk 2 of 2"
  744.            @Else
  745.                @If( @OurDiskSize == 1 )
  746.                    @LABEL = "MetaStock, Disk 1 of 2"
  747.                @Else
  748.                    @If( @OurDiskSize == 4 )
  749.                        @LABEL = "MetaStock, Disk 1 of 1"
  750.                    @Else
  751.                        @Cls
  752.                        Invalid \@OurDiskSize.
  753.                        @Abort
  754.                    @Endif
  755.                @Endif 
  756.            @Endif 
  757.        @Endif 
  758.    @Endif
  759.  
  760.    @BeginLib MS40Bgi2.red
  761.        @File *.*           @Out BGI\*.*
  762.    @EndLib
  763.  
  764.    @BeginLib MS40Any1.red
  765.        @File *.*
  766.    @EndLib
  767.  
  768.    @BeginLib MS40Misc.red
  769.        @File MSTo40.com
  770.        @File *.LOD
  771.        @File MS40Cnfg.dta  @Group abcde
  772.        @File *.pif         @NoOverwrite
  773.        @If( @IsRealTime )
  774.        @File Master.$$$    @Out RTData\*.*
  775.        @Endif
  776.    @EndLib
  777.  
  778. @EndDisk
  779.  
  780. @DefineDisk
  781.  
  782.    /*----------------------------------------------------------------------*/
  783.    /* This next block selects the appropriate disk label based on the      */
  784.    /* version (i.e., Rt or Eod) and the disk size (i.e., 3, 7, 1, 4).      */
  785.    /* This block is duplicated (with minor modifications) at the beginning */
  786.    /* of each @DefineDisk block.                                           */
  787.    /*----------------------------------------------------------------------*/
  788.  
  789.    @If( @IsRealTime )
  790.        @If( @OurDiskSize == 3 )
  791.            @LABEL = "MetaStock RT, Disk 4 of 4"
  792.        @Else
  793.            @If( @OurDiskSize == 7 )
  794.                @LABEL = "MetaStock RT, Disk 2 of 2"
  795.            @Else
  796.                @If( @OurDiskSize == 1 )
  797.                    @LABEL = "MetaStock RT, Disk 2 of 2"
  798.                @Else 
  799.                    @If( @OurDiskSize == 4 )
  800.                        @LABEL = "MetaStock RT, Disk 1 of 1"
  801.                    @Else
  802.                        @Cls
  803.                        Invalid \@OurDiskSize.
  804.                        @Abort
  805.                    @Endif
  806.                @Endif
  807.            @Endif 
  808.        @Endif
  809.    @Else
  810.        @If( @OurDiskSize == 3 )
  811.            @LABEL = "MetaStock, Disk 4 of 4"
  812.        @Else
  813.            @If( @OurDiskSize == 7 )
  814.                @LABEL = "MetaStock, Disk 2 of 2"
  815.            @Else
  816.                @If( @OurDiskSize == 1 )
  817.                    @LABEL = "MetaStock, Disk 2 of 2"
  818.                @Else
  819.                    @If( @OurDiskSize == 4 )
  820.                        @LABEL = "MetaStock, Disk 1 of 1"
  821.                    @Else
  822.                        @Cls
  823.                        Invalid \@OurDiskSize.
  824.                        @Abort
  825.                    @Endif
  826.                @Endif 
  827.            @Endif 
  828.        @Endif 
  829.    @Endif
  830.  
  831.    @BeginLib MS40Bgi1.red
  832.        @File *.*           @Out BGI\*.*
  833.        @File EGAVGA.BGI
  834.    @EndLib
  835.  
  836.    @BeginLib MS40DATA.red
  837.        @File *.*           @Out DATA\*.* @Group x
  838.    @EndLib
  839.  
  840. @EndDisk
  841.  
  842. @Finish 
  843.    @ChDrive @OutDrive
  844.    @ChDir "@Subdir"
  845.    @Cls
  846.  
  847.    @IF( ('b' [= @GROUP ) || ('c' [= @GROUP ) || ('d' [= @GROUP ) || ('e' [= @GROUP )) /* Pre 4.0 upgrade */
  848.        @Spawn( "MSTo40 install" )
  849.        @CLS
  850.    @ENDIF
  851.  
  852.    @CLS
  853.  
  854.    @Delete( "@OutDrive:@Subdir\\msto40.com" )
  855.  
  856.    @If( @IsRealTime )
  857.        @chdir "RTDATA"                     /* Okay if fails. */
  858.        @Rename( "MASTER.$$$", "MASTER." )  /* Okay if fails. */
  859.        @Delete( "@OutDrive:@Subdir\\master.$$$" )
  860.        @chdir "@Subdir"
  861.    @Else
  862.        @Delete( "@OutDrive:@Subdir\\*.lod" )       /* Signal ROS files */
  863.        @Delete( "@OutDrive:@Subdir\\MS40SHlp.dta" )/* Signal symbol help file */
  864.    @Endif
  865.  
  866.    @Cls
  867.  
  868.    The "README" file is about to be displayed on your screen.
  869.   
  870.    When you are done viewing the file, press [Esc] to return to this 
  871.    installation program.
  872.  
  873.    @PAUSE
  874.  
  875.    @CLS
  876.  
  877.    @SYSTEM "SHOW README.TXT"
  878.  
  879.    @CLS
  880.  
  881.    You may now run @Name by typing MS as explained in the User's Manual.
  882.    @IF( 'a' [= @GROUP ) /* New Installation */
  883.    If you are new to @NAME, we suggest you first run it in the self-
  884.    running "demo" mode.  You can do this by typing AUTORUN at the upcoming
  885.    DOS prompt.
  886.  
  887.    If you are new to technical analysis, we suggest you read the "Investing
  888.    with Technical Analysis" section near the back of the "Demo & Tutorial"
  889.    booklet.
  890.    @ENDIF
  891.  
  892.    @PAUSE
  893.  
  894. @EndFinish
  895.