 /*
 *   FILE:
 *      CADKEY 386 version 6.0
 *
 */

@DefineProject
   @Name       = "CADKEY" 
   @Version    = "6"
   @Subdir     = "\\CADKEY6\\"
   @OutDrive   = C
   @Requires     @HardDisk
   @InDiskBell = 1
@EndProject

@Display
   @Cls

   @If (@CPU < 386)

            @Name requires an 80386 or 80486 CPU.
            Your computer is running on a 80@CPU CPU.

   @Pause

   @Exit

   @EndIf

@EndDisplay      

@If (@RAMAvail > 529000)
   @If (@System ("@StartupDrive:\\gifview @StartupDrive:\\intro.gif"))
   @EndIf
@EndIf

@Display
   @Cls

    This program installs @Name @Version on your computer system 
    and verifies the integrity of the distribution files. It asks 
    you several questions about your computer hardware and then 
    gives you the option of installing only selected parts of 
    @Name @Version (such as the CADKEY Program). 

    For more information on installation, see the "GETTING STARTED GUIDE".

    To install CADKEY 6 Analysis use the included Analysis disks, and 
    refer to the Installation chapter in the CADKEY 6 Analysis Manual.

    To install Vibrant Graphics Drivers use the included Vibrant Drivers
    disk and refer to the Installation chapter in the CADKEY ProRes pamphlet.

   @Pause
@EndDisplay

@DefineVars
   @Dir        @Subdir2    = "\\CDL\\"    
   @Dir        @Subdir3    = "\\MAC\\"
   @Dir        @Subdir4    = "\\PLT\\"    
   @Dir        @Subdir5    = "\\PTN\\"
   @Dir        @Subdir6    = "\\DB\\"    
   @Dir        @Subdir7    = "\\PRT\\"
   @Dir        @Subdir8    = "\\SF\\"  
   @Dir        @Subdir9    = "\\NOT\\"
   @Dir        @Subdir10   = "\\HLP\\"
   @Dir        @Subdir11   = "\\CAI\\"
   @Dir        @Subdir12   = "\\CDE\\"
   @Dir        @Subdir13   = "\\STL\\"
   @Dir        @Subdir14   = "\\DOC\\"
   @Dir        @Subdir15   = "\\DXF\\"
   @Dir        @Subdir16   = "\\DWG\\"
   @Dir        @Subdir17   = "\\IGES\\"
   @Dir        @Subdir20   = "\\CDL\\"
   @Dir        @Subdir30   = "\\MAC\\"
   @Dir        @Subdir50   = "\\PTN\\"
   @Dir        @Subdir70   = "\\PRT\\"
   @Dir        @Subdir120  = "\\CDE\\"
   @Drive      @OutDrive2  = C
   @Drive      @OutDrive3  = C
   @Drive      @OutDrive5  = C
   @Drive      @OutDrive7  = C
   @Drive      @OutDrive12 = C     
   @Drive      @OutDrive17 = C     
@EndVars


@SetGroup(A)

regroup:

@GetGroups
   @Checkbox
   @Cls

   Now you need to select the parts of @Name you want to install.












   Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move the
   bar to the group(s) you wish to install and then press the [Space] key
   to toggle the option from "No" to "Yes".  Press [Enter] when you
   have selected the option(s) you want to install.
   @SET A = "Install All files - 13M Bytes"
   @SET C = "Install CADKEY Program - 7.13M Bytes"
   @SET I = "Install Iges - 1.1M Bytes"
   @SET H = "Install Help files - 435K Bytes"
   @SET T = "Install CADKEY Tutor - 889K Bytes"
   @SET D = "Install Driver(s) - 1.1M Bytes"
   @SET S = "Install Sample Files and Utilites - 1.74M Bytes"
   @SET O = "Install On-line Documentation - 618K Bytes"

@EndGroups

@If (('C'[= @Group) || ('S'[=@Group) || ('O'[=@Group) || ('H' [= @Group) || 
   ('T' [= @Group) || ('D'[=@Group) || ('I' [= @Group))
   @ClearGroup (A)
@EndIf

@GetOption
   @If (('A'[=@Group) || ('C'[= @Group) || ('S'[=@Group) || ('O'[=@Group) || 
        ('H' [= @Group) || ('T' [= @Group) || ('D'[=@Group) || ('I' [= @Group))
        You will be installing             Using disk(s) 
       @If ( 'A' [= @Group )
        All files                          1, 2, 3, and 4     @EndIf  @If ( 'C' [= @Group )
        CADKEY files                        1, 2, and 3        @EndIf  @If ( 'I' [= @Group )
        Iges files                               3             @EndIf  @If ( 'H' [= @Group )
        Help files                               4             @EndIf  @If ( 'T' [= @Group )
        Tutor files                              3             @EndIf  @If ( 'S' [= @Group )
        Sample files and Utilities               3        @EndIf  @If ( 'O' [= @Group )
        On-Line Documentation                    4             @EndIf  @If ( 'D' [= @Group )
        Drivers                                  4                 @EndIf  
       @SetOption (4000)
   @Else   
       No files were selected to be installed.  
   @EndIf
   @Checkbox
   @Option 4000 = "Is this correct ? "
   @LocalWindow (21, 35)
       Use the space bar to toggle between "Yes" and "No".
@EndOption

@If (!(4000 [= @Option ))

   @FlushGroups
   @Goto regroup

@EndIf

@If(!('A'[=@Group || 'C'[= @Group || 'S'[=@Group || 'O'[=@Group || 
      'H'[=@Group || 'T'[=@Group || 'D'[=@Group || 'I' [= @Group))
   @Display

       @MoveCStr(5,7,79,"                                                               ")
       @MoveCStr(6,7,79,"  You must use the space bar to select files to be installed.  ")
       @MoveCStr(7,7,79,"  The files you have selected will have a \"Yes\" next to them.  ")
       @MoveCStr(8,7,79,"  Then press the <Enter> key to begin installation.            ")
       @MoveCStr(9,7,79,"                                                               ")
       @MoveCStr(10,7,79,"  You may press the <Esc> key to abort installation.           ")
       @MoveCStr(11,7,79,"                                                               ")





       @Pause

   @EndDisplay

   @Goto regroup

@EndIf

@IF ( 'A' [= @Group )
   @SetGroup( C)
   @SetGroup( D)
   @SetGroup( S)
   @SetGroup( H)
   @SetGroup( T)
   @SetGroup( O)
   @SetGroup( I)
@EndIf

retry:

@ClearOption (200)

@If ('C' [= @Group )

   @GetOutDrive

       @Suppress A    /* don't display A:  */
       @Suppress B    /* or B:             */

       @Cls

          Choose the drive on which you want to install @Name.















   Use the <Up Arrow>, <Down Arrow>, <PgUp>, & <PgDn> to move the light-
   bar to the disk drive on which you want to install and then press the
   <Enter> key.
   
   @EndOutDrive

   @GetSubdir
       @Cls

   Enter the name you want for your @Name subdirectory. This
   subdirectory is the location on your disk where CADKEY will reside.

      @Prompt = " Which subdirectory ([Enter] = @Subdir)? "
   @EndSubdir

   @If (@Exists ("@OutDrive:@Subdir\\CADKEY.EXE"))
      @GetOption

   @Name already exists in @OutDrive:@Subdir.  Do NOT install
   over an older version.  Either, install @Name @Version in a 
   new directory or delete the older version.
           @LocalWindow(10,35)
           @Option 200 = "Install in different directory"
           @Option 300 = "Exit install"
           @Option 100 = "Continue installing in @OutDrive:@Subdir"

       @EndOption

       @If (200 [= @Option)

           @Goto retry
       
       @ElseIf (300 [= @Option)

           @Exit

       @EndIf
   
   @EndIf
@EndIf

@If ((!('C' [= @Group)) && (( 'S' [= @Group) || ('H' [= @Group) || ('D' [= @Group) || ('O' [= @Group)|| ('T' [= @Group)))

   @GetOutDrive

       @Suppress A    /* don't display A:  */
       @Suppress B    /* or B:             */

       @Cls

          Choose the drive on which @Name @version has been installed.  
   @Name @version needs to be installed to install the selected files.















   Use the <Up Arrow>, <Down Arrow>, <PgUp>, & <PgDn> to move the light-
   bar to the disk drive on which you want to install and then press the
   <Enter> key.

   @EndOutDrive

   @GetSubdir
       @Cls

   Enter the name of your @Name subdirectory. This subdirectory is 
   the location on your disk where CADKEY resides.

      @Prompt = " Which subdirectory ([Enter] = @Subdir)? "
   @EndSubdir

@EndIf

@If ('I' [= @Group )

   @GetOutDrive @OutDrive17


       @Suppress A    /* don't display A:  */
       @Suppress B    /* or B:             */

       @Cls

       Choose the drive on which you want to install IGES.















   Use the <Up Arrow>, <Down Arrow>, <PgUp>, & <PgDn> to move the light-
   bar to the disk drive on which you want to install and then press the
   <Enter> key.
   
   @EndOutDrive


   @GetSubdir @Subdir17
       @Cls

   Enter the name you want for your IGES subdirectory.

      @Prompt = " Which subdirectory ([Enter] = @Subdir17)? "

   @EndSubdir

@EndIf

@IF ('C' [= @Group)

   @If (@Exists "@Outdrive:\\@Subdir\\config.dat")
   
       @copy ("@OutDrive:\\@subdir\\config.dat", "@OutDrive:\\@Subdir\\config.bak")
   
   @Endif
   
   @If (@Exists "Outdrive:\\@Subdir\\@Subdir4\\plconfig.dat")
   
       @Copy ("@OutDrive:\\@Subdir\\@Subdir4\\plconfig.dat","@OutDrive:\\@Subdir\\@Subdir4\\plconfig.bak")
   
   @Endif
   
   @If (@Exists "Outdrive:\\@Subdir\\386cfg.dat")
   
       @Copy ("@OutDrive:\\@Subdir\\386cfg.dat","@OutDrive:\\@Subdir\\386cfg.bak")

   @Endif
              
@EndIf

@If ( 'C' [= @Group || 'S'[=@Group) 

   @GetGroups
       @Cls


     Do you want to use the standard configuration for downloading
     @Name @version CADL files, PATTERN files, PART files, MACRO files 
     and CDE files?




       @LocalWindow (6,35)
       @SET Y = "YES - Use the standard configuration"
       @SET N = "NO - Download files onto other paths"
       @Move (10,10)
           EXAMPLE 1                                EXAMPLE 2
     STANDARD CONFIGURATION                  OPTIONAL CONFIGURATION
         
     C:\CADKEY6\_______CDL                      C:\CADKEY6
                  |____PRT                      D:\_________CDL
                  |____PTN                             |____PRT
                  |____MAC                             |____PTN
                  |____CDE                             |____MAC
                                                       |____CDE

     Use the [Up Arrow] and [Down Arrow] to move the lightbar. Press
     [Enter] when you have selected your response.
     
   @EndGroups
           
@EndIf

@If ( 'N' [= @Group ) 

   @GetOutDrive @OutDrive2

       @Suppress A    /* don't display A:  */
       @Suppress B    /* or B:             */

       @Cls

       Choose the drive on which you want to install @Name 
   CADL files.















   Use the <Up Arrow>, <Down Arrow>, <PgUp>, & <PgDn> to move the light-
   bar to the disk drive on which you want to install and then press the
   <Enter> key.

   @EndOutDrive


   @GetSubdir @Subdir20
   
       @Cls

   Now you need to specify the path for the CADL files.

       @Prompt = " Which subdirectory ([Enter] = @Subdir20)? "

   @EndSubdir

@EndIf

@If ('N' [= @Group )

   @GetOutDrive @OutDrive3

       @Suppress A    /* don't display A:  */
       @Suppress B    /* or B:             */

       @Cls

       Choose the drive on which you want to install @Name 
   MACRO files.















   Use the <Up Arrow>, <Down Arrow>, <PgUp>, & <PgDn> to move the light-
   bar to the disk drive on which you want to install and then press the
   <Enter> key.
   
   @EndOutDrive

   @GetSubdir @Subdir30
       @Cls

   Now you need to specify the path for the MACRO files.

       @Prompt = " Which subdirectory ([Enter] = @Subdir30)? "

   @EndSubdir

@EndIf

@If ('N' [= @Group )

   @GetOutDrive @OutDrive5

       @Suppress A    /* don't display A:  */

       @Suppress B    /* or B:             */

       @Cls

      Choose the drive on which you want to install @Name 
   PATTERN files.















   Use the <Up Arrow>, <Down Arrow>, <PgUp>, & <PgDn> to move the light-
   bar to the disk drive on which you want to install and then press the
   <Enter> key.
   
   @EndOutDrive

   @GetSubdir @Subdir50

       @Cls

   Now you need to specify the path for the PATTERN files.

       @Prompt = " Which subdirectory ([Enter] = @Subdir50)? "

   @EndSubdir

@EndIf

@If ( 'N' [= @Group ) 

   @GetOutDrive @OutDrive7

       @Suppress A    /* don't display A:  */
       @Suppress B    /* or B:             */

       @Cls

       Choose the drive on which you want to install @Name 
   PART files.














   Use the <Up Arrow>, <Down Arrow>, <PgUp>, & <PgDn> to move the light-
   bar to the disk drive on which you want to install and then press the
   <Enter> key.

   @EndOutDrive

   @GetSubdir @Subdir70
       
       @Cls

   Now you need to specify the path for the PART files.
             
       @Prompt = " Which subdirectory ([Enter] = @Subdir70)? "

   @EndSubdir

@EndIf

@If (( 'N' [= @Group ) || (('T' [= @Group) && (!('C' [= @Group))))

   @GetOutDrive @OutDrive12

       @Suppress A    /* don't display A:  */
       @Suppress B    /* or B:             */

       @Cls

       Choose the drive on which you want to install @Name  
   CDE files.















   Use the <Up Arrow>, <Down Arrow>, <PgUp>, & <PgDn> to move the light-
   bar to the disk drive on which you want to install and then press the
   <Enter> key.

   @EndOutDrive

   @GetSubdir @Subdir120
   
   @Cls

   Now you need to specify the path for the CDE files.

       @Prompt = " Which subdirectory ([Enter] = @Subdir120)? "

   @EndSubdir

@EndIf

@If ( 'D' [= @Group )

driver:
   @ClearOption(1000)

   @GetOption
       @CheckBox
       @Cls

              Please select one or more of the graphic drivers.
              Use the space bar to toggle between "Yes" and "No".
      Press Y to select all drivers.  Press N to deselect all drivers.
















             Use the <Up Arrow> and <Down Arrow> keys to move the  
             lightbar to the graphics driver you want to select.
                     <Enter> downloads selected drivers.
      @option 1  = "Ahead Systems Wizard"
      @option 59 = "ATC Graphics 8514/A driver"
      @option 2  = "ATI EGA Wonder"
      @option 3  = "ATI VGA Wonder"
      @option 4  = "ATI VIP VGA"
      @option 5  = "AT&T Display Enhancement Board"
      @option 6  = "AT&T Indigenous Graphics Board"
      @option 7  = "Compaq Portable Plasma Display"
      @option 8  = "Compaq Advanced Graphics 1024"
      @option 9  = "Conographic 40"
      @option 10 = "Control Systems Artist XJ/10"
      @option 11 = "Datapath Q-PC"
      @option 54 = "DGIS compatibles"
      @option 12 = "Everex ViewPoint"
      @option 13 = "Genoa SuperEGA HiRes"
      @option 14 = "Genoa SuperVGA 5400"
      @option 58 = "Genoa SuperVGA 6400"
      @option 16 = "Hercules Monochrome" 
      @option 55 = "Hewlett Packard IGC 10"
      @option 64 = "IBM Standard VGA"
      @option 17 = "IBM Color Graphics Adapter"
      @option 18 = "IBM Enhanced Graphics Adapter"
      @option 19 = "IBM Professional Graphics Card"
      @option 37 = "IBM Personal Systems/2 - MCGA"
      @option 20 = "IBM Personal Systems/2 - VGA"
      @option 22 = "IMAgraph AGC/Image Plus"
      @option 23 = "IMAgraph TI-1210"
      @option 24 = "Matrox PG Series"
      @option 60 = "Metheus 1008"
      @option 25 = "Metheus UGA series"
      @option 61 = "Metheus Premier VGA 16 color"
      @option 63 = "Microfield Graphics T8"
      @option 15 = "Mylex AGA"
      @option 56 = "NEC MVA 1024"
      @option 57 = "Number Nine Pepper Pro"
      @option 27 = "Orchid ProDesigner VGA"
      @option 29 = "Paradise AutoSwitch EGA 480"
      @option 30 = "Paradise VGA Professional"
      @option 21 = "Paradise 8514/A Plus"
      @option 32 = "PCG Photon MEGA"
      @option 33 = "Pixelworks Clipper Graphics"
      @option 34 = "Sigma Color 400"
      @option 35 = "Sigma EGA 480"
      @option 36 = "STB VGA EM"
      @option 38 = "Tecmar VGA/AD"
      @option 40 = "Tecmar EGA Master 480/800"
      @option 28 = "Tecmar Graphics Master"
      @option 41 = "TIGA compatibles"
      @option 42 = "Toshiba T3100"
      @option 43 = "Tseng EVA/480"
      @option 44 = "Univision UDC2600"
      @option 45 = "Vectrix Pepe"
      @option 46 = "Vectrix PRESTO"
      @option 47 = "Vermont Microsystems"
      @option 48 = "Verticom M/H Series"
      @option 49 = "Verticom CAD-480"
      @option 62 = "VESA compatible"
      @option 50 = "Video 7 Deluxe"
      @option 39 = "Video 7 VEGA VGA"
      @option 51 = "Video 7 VRAM VGA"
      @option 31 = "Wyse 700"
      @option 52 = "Zenith 248 Enhanced Graphics Card"
      @option 53 = "Zenith 449 Enhanced Graphics Card"
      
   @EndOption

   @If (!((1 [=@Option)||(59 [=@Option)||(2 [=@Option)||(3 [=@Option)||(4 [=@Option)||(5 [=@Option)||(6 [=@Option)||(7 [=@Option)||
       (8 [=@Option)||(9 [=@Option)||(10 [=@Option)||(11 [=@Option)||(54 [=@Option)||(12 [=@Option)||(13 [=@Option)||(14 [=@Option)||
       (58 [=@Option)||(16 [=@Option)||(55 [=@Option)||(64 [=@Option)||(17 [=@Option)||(18 [=@Option)||(19 [=@Option)||(37 [=@Option)||
       (20 [=@Option)||(22 [=@Option)||(23 [=@Option)||(24 [=@Option)||(60 [=@Option)||(25 [=@Option)||(61 [=@Option)||(63 [=@Option)||
       (15 [=@Option)||(56 [=@Option)||(57 [=@Option)||(27 [=@Option)||(29 [=@Option)||(30 [=@Option)||(21 [=@Option)||(32 [=@Option)||
       (33 [=@Option)||(34 [=@Option)||(35 [=@Option)||(36 [=@Option)||(38 [=@Option)||(40 [=@Option)||(28 [=@Option)||(41 [=@Option)||
       (42 [=@Option)||(43 [=@Option)||(44 [=@Option)||(45 [=@Option)||(46 [=@Option)||(47 [=@Option)||(48 [=@Option)||(49 [=@Option)||
       (62 [=@Option)||(50 [=@Option)||(39 [=@Option)||(51 [=@Option)||(31 [=@Option)||(52 [=@Option)||(53 [=@Option)))

       @GetOption
          @Move(5,5)
          @MoveCStr(5,5,79,"                                                                     ")
          @MoveCStr(6,5,79,"  You must use the space bar to select driver(s) to be installed.    ")
          @MoveCStr(7,5,79,"  The driver(s) you have selected will have a \"Yes\" next to them.    ")
          @MoveCStr(8,5,79,"  Then press the <Enter> key to begin installation.                  ")
          @MoveCStr(9,5,79,"                                                                     ")
          @MoveCStr(10,5,79,"  You may press the <Esc> key to abort installation.                 ")
          @MoveCStr(11,5,79,"                                                                     ")
           @LocalWindow (15,35)
           @option 1000 = "Select a Driver"
           @Option 2000 = "Install no Drivers"
       @EndOption

       @If (1000 [= @Option)

           @Goto driver

       @Else
      
           @ClearGroup (D)

       @EndIf

   @EndIf

@EndIf

@If (!('N' [= @Group))

   @GetOption
       @SetOption (5000)  @If(('A'[=@Group || 'C'[= @Group || 'S'[=@Group || 'O'[=@Group || 
      'H'[=@Group || 'T'[=@Group || 'D'[=@Group ))

        In @OutDrive:@Subdir you will be installing :   @If ('C' [= @Group)           
                  CADKEY                        @EndIf  @If ('H' [= @Group)
                  Help                          @EndIf  @If ('T' [= @Group)
                  Tutor                         @EndIf  @If ('D' [= @Group)
                  Driver(s)                     @EndIf  @If ('S' [= @Group)
                  Sample Files and Utilites     @EndIf  @If ('O' [= @Group)
                  On-Line Documentation         @EndIf   @EndIf   @If ('I' [= @Group)

        You will be installing IGES in @OutDrive17:@subdir17.
       @EndIf
       @Checkbox
       @LocalWindow (16,35)
       @Option 5000 = "Is this Correct?"
       @Move (17,10)
        Use the space bar to toggle between "Yes" and "No".

   @EndOption

@Else

   @GetOption
       @SetOption (5000)
        In @OutDrive:@Subdir you will be installing :   @If ('C' [= @Group)           
                  CADKEY                        @EndIf  @If ('H' [= @Group)
                  Help                          @EndIf  @If ('T' [= @Group)
                  Tutor                         @EndIf  @If ('D' [= @Group)
                  Driver(s)                     @EndIf  @If ('S' [= @Group)
                  Sample Files and Utilites     @EndIf  @If ('O' [= @Group)
                  On-Line Documentation         @EndIf  
              @If ('I' [= @Group)
        @OutDrive17:@subdir17 will be used for your IGES files.   @EndIf
        @OutDrive2:@Subdir20 will be used for your CDL files.
        @OutDrive3:@Subdir30 will be used for your Macro files.
        @OutDrive5:@Subdir50 will be used for your Pattern files.
        @OutDrive7:@Subdir70 will be used for your Part files.
        @OutDrive12:@Subdir120 will be used for your CDE files.
       @Checkbox
       @LocalWindow (19,35)
       @Option 5000 = "Is this Correct?"
       @Move (18,10)
       
        Use the space bar to toggle between "Yes" and "No".

   @EndOption

       
   
@EndIf

@If (!(5000 [= @Option))

       @FlushOptions()
       @FlushGroups()
       @Goto regroup

@EndIf

@If (@RAMAvail > 529000)
   @If (@System ("@StartupDrive:\\gifview @StartupDrive:\\regcard.gif"))
   @EndIf
@EndIf

@DefineDisk

   @Label = "DISK 1 OF 4"

   @If ( 'C' [= @Group )

      @File  readme.now       @Out     \@Subdir\*.*
      @File  readme.ck6       @Out     \@Subdir\*.*
      @File  readme.vib       @Out     \@Subdir\*.*

      @File    INTRO.DAT         @Out    \@Subdir\*.*
      @If ( 'T' [= @Group )
         @File config.tut        @Out  \@Subdir\*.*
      @Else
         @File    config.dat        @Out  \@Subdir\*.*
      @EndIf
      @BeginLib CADKEY.001
         @File    CADKEY.EXE     @out  \@Subdir\cadkey.exe
      @EndLib 
   @EndIf

@EndDisk      

@DefineDisk

   @Label = "DISK 2 OF 4"   

   @If ( 'C' [= @Group )

      @BeginLib CADKEY.002
         @File    CADKEY.EXE     @out  \@Subdir\cadkey.exe
      @EndLib 
   @BeginLib CADEXE.RED

      @File     *.*   @Out   \@Subdir\*.*

   @EndLib

   @BeginLib CADMISC.RED

      @File    plconfig.dat   @Out   \@Subdir\@Subdir4\*.*
      @File    plotfast.exe   @Out   \@Subdir\@Subdir4\*.*
      @File    plprompt.txt   @Out   \@Subdir\@Subdir4\*.*
      @File    pfnt1.fnt      @Out   \@Subdir\@Subdir4\*.*
      @File    pfnt2.fnt      @Out   \@Subdir\@Subdir4\*.*
      @File    plotcap        @Out   \@Subdir\@Subdir4\*.*
      @File    pfnt1.fnt      @Out   \@Subdir\*.*
      @File    pfnt2.fnt      @Out   \@Subdir\*.*
      @File    plotcap        @Out   \@Subdir\*.*
      
      @If ('N' [= @Group )
         @File    lock.exe       @Out  @OutDrive7:\@Subdir70\*.*
         @File    lock.exe       @Out  \@Subdir\*.*
         @File    lstat.exe      @Out  @OutDrive7:\@Subdir70\*.*
         @File    lstat.exe      @Out  \@Subdir\*.*
         @File    unlock.exe     @Out  @OutDrive7:\@Subdir70\*.*
         @File    unlock.exe     @Out  \@Subdir\*.*
         @File    encrypt.exe    @Out  @OutDrive2:\@Subdir20\*.*
         @File    picture.cde    @Out  @outdrive12:\@Subdir120\*.*
         @File    gr.cde         @Out  @outdrive12:\@Subdir120\*.*
         @File    dwgxl.cde      @Out  @outdrive12:\@Subdir120\*.*
         @File    dxfxl.cde      @Out  @outdrive12:\@Subdir120\*.*

      @Else
         @File    lock.exe       @Out  \@Subdir\@subdir7\*.*
         @File    lock.exe       @Out  \@Subdir\*.*         
         @File    lstat.exe      @Out  \@Subdir\@subdir7\*.*
         @File    lstat.exe      @Out  \@Subdir\*.*         
         @File    unlock.exe     @Out  \@Subdir\@subdir7\*.*
         @File    unlock.exe     @Out  \@Subdir\*.*         
         @File    encrypt.exe    @Out  \@subdir\@subdir2\*.*
         @File    picture.cde    @Out  \@Subdir\@Subdir12\*.*
         @File    gr.cde         @Out  \@Subdir\@Subdir12\*.*
         @File    dwgxl.cde      @Out  \@Subdir\@Subdir12\*.*
         @File    dxfxl.cde      @Out  \@Subdir\@Subdir12\*.*
      @EndIf
   
   @EndLib

   @EndIf

@EndDisk   

@DefineDisk

   @Label = "DISK 3 OF 4"

   @If ('I' [= @Group )

      @BeginLib IGES.red

          @File    *.*   @Out @OutDrive17:\@Subdir17\*.*

      @EndLib

   @EndIf
   
   @If ('C' [= @Group)
            
   @BeginLib CADSUP.RED

      @File     *.*   @Out   \@Subdir\*.*

   @EndLib

      @BeginLib FONT.red

           @File      *.*   @Out \@Subdir\*.*

       @EndLib 

   @EndIf

   @If ( 'S' [= @Group )

   @BeginLib CDL.red

      @If ( 'N' [= @Group )

         @File       *.*   @Out @OutDrive2:\@Subdir20\*.*

      @Else 

         @File       *.*   @Out \@Subdir\@Subdir2\*.*

      @EndIf
   
   @EndLib

       @BeginLib CDE.red

           @If ('N' [= @Group )

               @File    *.*   @Out @OutDrive12:\@Subdir120\*.*
      
           @Else
             
               @File      *.*   @Out \@Subdir\@Subdir120\*.*

           @EndIf

       @EndLib
         
       @BeginLib MAC.red

           @If ( 'N' [= @Group )

               @File       *.*   @Out @OutDrive3:\@Subdir30\*.*

           @Else 

               @File       *.*   @Out \@Subdir\@Subdir3\*.*

           @EndIf
   
       @EndLib
       
       @BeginLib STL.red
      
           @File       *.*   @Out \@Subdir\@Subdir13\*.*

       @EndLib

       @BeginLib PTN.red

           @If ( 'N' [= @Group )

               @File       *.*   @Out @OutDrive5:\@Subdir50\*.*

           @Else 

               @File       *.*   @Out \@Subdir\@Subdir5\*.*

           @EndIf

       @EndLib

   @EndIf

   @If ('S' [= @Group )

       @BeginLib PRT.red
      
           @If ( 'N' [= @Group )

               @File       *.*   @Out @OutDrive7:\@Subdir70\*.*

           @Else 

               @File       *.*   @Out \@Subdir\@Subdir7\*.*

           @EndIf

       @EndLib

   @EndIf

   @If ( 'T' [= @Group )

       @BeginLib TUTCAI.red

           @File          *.*   @Out \@Subdir\@Subdir11\*.*

       @EndLib

       @BeginLib TUTCDE.red

           @File          cktutor.cdi   @Out \@Subdir\*.*

           @If ('N' [= @Group)
       
               @File          cktutor.cde   @Out @OutDrive12:\@Subdir120\*.*

           @ElseIf ('C' [= @Group)

               @File          cktutor.cde   @Out \@Subdir\@Subdir12\*.*

           @Else

               @File          cktutor.cde   @Out @OutDrive12:\@Subdir120\*.*

           @EndIf
           
       @EndLib

       @BeginLib TUTA.red

           @File          *.*   @Out \@Subdir\@Subdir11\TXT\A\*.*

       @EndLib

       @BeginLib TUTB.red

           @File          *.*   @Out \@Subdir\@Subdir11\TXT\B\*.*

       @EndLib

       @BeginLib TUTC.red

           @File          *.*   @Out \@Subdir\@Subdir11\TXT\C\*.*

       @EndLib

       @BeginLib TUTD.red

           @File          *.*   @Out \@Subdir\@Subdir11\TXT\D\*.*

       @EndLib

       @BeginLib TUTE.red

           @File          *.*   @Out \@Subdir\@Subdir11\TXT\E\*.*

       @EndLib

   @EndIf

@EndDisk

@DefineDisk

   @Label = "DISK 4 OF 4"

   @If ( 'H' [= @Group )

       @BeginLib HELP.red

           @File          *.*   @Out HLP\*.*

       @EndLib

   @EndIf

       @If ('D' [= @Group )

       @BeginLib DRIVER1.red

           @File       1008.EXE @option 60
           @File       A480.EXE @option 29 
           @File    ATC8514.EXE @option 59 
           @If ( 2 [= @option || 3 [= @option )
               @File     ATIEGA.EXE 
           @EndIf
           @File    ATIV256.EXE @option 3 
           @File     ATIVIP.EXE @option 4 
           @File     ATTDEB.EXE @option 5  
           @File       AWIZ.EXE @option 1  
           @If ( 8  [= @option || 54 [= @option || 55 [= @option ||
            56 [= @option )
               @File     CKDGIS.EXE 
           @EndIf       
           @If ( 57 [= @option || 41 [= @option )
               @File     CKTIGA.RLM 
               @File     CKTIGA.EXE 
           @EndIf
           @File       CONO.EXE @option 9  
           @File       CPAQ.EXE @option 7  
           @File     CSIART.EXE @option 10 
           @File    DATAPTH.EXE @option 11 
           @File       EVAA.EXE @option 43 
           @File     EVRX16.EXE @option 12 
           @File    EVRX256.EXE @option 12 
           @File     F16X20.DAT @option 44
           @File      F9X16.DAT @option 44
           @File       GEGA.EXE @option 13 
           @File      GEN16.EXE @option 14 
           @File     GEN256.EXE @option 14 
           @File     GVGA16.EXE @option 58
           @File    GVGA256.EXE @option 58
           @File       HERC.EXE @option 16
           @File    IBMV256.EXE @option 64
           @File     IBMCGA.EXE @option 17 
           @File     IBMEGA.EXE @option 18 
           @File    IBMMCGA.EXE @option 37 
           @File     IBMPGA.EXE @option 19 
           @File     IBMVGA.EXE @option 20 
           @File    IMA1210.EXE @option 23 
           @File    IMA1210.RLM @option 23 
           @File    IMAGCIP.EXE @option 22 
           @File       INDA.EXE @option 6 
           @File     ZEN248.EXE @option 52
           @File     ZEN449.EXE @option 53 
       @EndLib

           @BeginLib DRIVER2.red

               @File       MAGA.EXE @option 15 
               @File    MAGACOM.COM @option 15 
               @File     MATROX.EXE @option 24 
               @File    METHEUS.EXE @option 25 
               @File     MG8X16.DAT @option 63 
               @File      MG8X8.DAT @option 63
               @File    MICROT8.EXE @option 63
               @File     ORCH16.EXE @option 27 
               @File    ORCH256.EXE @option 27 
               @File   ORCHVESA.COM @option 62
               @File      PAR16.EXE @option 30 
               @File     PAR256.EXE @option 30 
               @File    PARVESA.EXE @option 62
               @File     PHMEGA.EXE @option 32 
               @File    PREMIER.EXE @option 61
               @File   PXLWORKS.EXE @option 33 
               @If ( 25 [= @option || 48 [= @option )
                  @File     REMOVE.EXE 
               @Endif
               @File       SEGA.EXE @option 35 
               @File       SIGM.EXE @option 34 
               @File      STB16.EXE @option 36 
               @File     STB256.EXE @option 36 
               @File      TEC16.EXE @option 38 
               @File     TEC256.EXE @option 38 
               @File     TECGFX.EXE @option 28
               @File       TMAS.EXE @option 40 
               @File       TOSH.EXE @option 42 
               @File    UDC2600.EXE @option 44 
               @File     V7VESA.COM @option 62
               @If ( 51 [= @option || 39 [= @option )
                  @File     V7VR16.EXE 
               @EndIf
               @File    V7VR256.EXE @option 51 
               @File       VCAD.EXE @option 49 
               @File       VDLX.EXE @option 50 
               @File   VERTICOM.EXE @option 48 
               @File     VESA16.EXE @option 62
               @File    VESA256.EXE @option 62   
               @File    VESACHK.EXE @option 62
               @File        VMI.EXE @option 47 
               @File      VVESA.COM @option 62
               @File   VXPRESTO.EXE @option 46 
               @File    VX_PEPE.EXE @option 45 
               @File    WDI8514.EXE @option 21 
               @File    WYSE700.EXE @option 31 
       @EndLib
   @EndIf
   
   @If ( 'O' [= @Group )

   @BeginLib DOC.red

      @File    ckdoc.bat   @Out\@subdir\*.*
      @File      ck6docs.exe   @Out \@Subdir\@Subdir14\*.*
      @File      ck6docs.com   @Out \@Subdir\@Subdir14\*.*
      @File      ck6docs.nfo @Out \@Subdir\@Subdir14\*.*
   
   @EndLib

   @EndIf

@EndDisk   

@Finish

   @Cls

   @ChDrive@OutDrive
        @ChDir "@Subdir"

  @If ( 'C' [= @Group )

       @If ( 'T' [= @Group )

           @Copy ("@Outdrive:\\@Subdir\\config.tut", "@OutDrive:\\@Subdir\\config.dat")

       @EndIF

      @MkDir ("OutDrive:\\@SubDir\\@SubDir9")
      @MkDir ("OutDrive:\\@SubDir\\@SubDir6")
      @MkDir ("OutDrive:\\@SubDir\\@SubDir8")
      @MkDir ("OutDrive:\\@SubDir\\@SubDir15")
      @MkDir ("OutDrive:\\@SubDir\\@SubDir16")

      @If ('N' [= @Group)
         @MkDir ("OutDrive5:\\@SubDir50")
         @MkDir ("OutDrive3:\\@SubDir30")

      @Else
         @MkDir ("OutDrive:\\@SubDir\\@SubDir5")
         @MkDir ("OutDrive:\\@SubDir\\@SubDir3")
                                             
      @EndIf       

@Write ("@Outdrive:\\@Subdir\\config.dat","at","supportpath @outdrive:\\@Subdir\n") 
   @Endif

@If (@RAMAvail > 529000)
   @If (@System ("@StartupDrive:\\gifview @StartupDrive:\\proset.gif"))
   @EndIf
@EndIf
@If ('C' [= @Group)
   @If (@System ("more < readme.now"))

   @EndIf
   @Pause
@EndIf
@EndFinish

/* end-of-file */

