@DefineProject
    @Name = "Advantage Series for AutoCAD"
@Version = "12.0AU-C"
@OutDrive = C
@Subdir = "\\EDSC"
@Immediate = 1
@EndProject
@DefineVars
@Qstring @AcadDir = "C:\\ACAD"
@Integer @BitField = 0
@EndVars
@Display
    This program will install Eagle Point's Advantage Series for AutoCAD
    version @Version onto your computer.  It will ask you to supply the
    drive and directory for AutoCAD, and the drive and directory for the
    Advantage Series.

    You can press the Esc key at any time to abort installation.

@Pause
@EndDisplay
GetAcadDir:
@Getstring @AcadDir
    Enter the drive and directory where AutoCAD is installed.
@Prompt = "Í"
@EndString
@If (@Exists ("@AcadDir\\ACAD.EXE"))
@Else
@ClearOption(1)
@ClearOption(2)
@GetOption
    Cannot find AutoCAD in the directory @AcadDir.

    If you continue installing the Advantage Series, you will need to 
    install AutoCAD in @AcadDir before you can run the Advantage Series.

    Do you want to re-enter the name of the AutoCAD directory, or
    continue with the installation?

@LocalWindow(12,40)
@Option 1 = "Re-enter directory"
@Option 2 = "Continue"
@EndOption
@If (1 [= @Option)
@Goto GetAcadDir
@Endif
@EndIf
@GetOutDrive
@Suppress A
@Suppress B
@Cls
    Select the drive on which to install the Advantage Series.
@EndOutDrive
@GetSubdir
    Enter the directory in which to install the Advantage Series.
@Prompt = "Í"
@EndSubdir
@MkDir("@OutDrive:@SubDir\\PROGRAM")
@MkDir("@OutDrive:@SubDir\\SUPPORT")
@MkDir("@OutDrive:@SubDir\\DWG")
@MkDir("@OutDrive:@SubDir\\TUTORIAL")
@Spawn("@InDrive:\\INSTALL2.EXE 0 @OutDrive:@SubDir\\ @AcadDir\\")
DoLck:
@If (@Spawn("@InDrive:\\INSTALL2.EXE 1 @InDrive")==3)
@ElseIf (@Spawn()==0)
@If(@Spawn("@InDrive:\\INSTALL2.EXE 2 @InDrive")==3)
@ElseIf(@Spawn()==2)
@ClearOption(1)
@ClearOption(2)
@ClearOption(3)
@GetOption
        Cannot access hardware lock.

        The INSTALL program is trying to re-program your Eagle Point 
        hardware lock to conform to the new Advantage Series configuration.
        Either the lock is not attached to the computer, or it is incor-
        rectly attached.  You can continue with the installation program,
        but the lock will not be re-programmed, so all the installed
        modules may not be accessible.

        Do you want the installation program to try once again to access
        the lock, to continue without accessing the lock, or to abort?

@LocalWindow(16,40)
@Option 1 = "Re-access lock"
@Option 2 = "Continue installation"
@Option 3 = "Abort installation"
@EndOption
@If (1 [= @Option)
@Goto DoLck
@ElseIf (3 [= @Option)
@Abort
@Endif
@ElseIf(@Spawn()==1)
@ClearOption(1)
@ClearOption(2)
@ClearOption(3)
@GetOption
        Wrong hardware lock number.

        The INSTALL program is trying to re-program your Eagle Point
        hardware lock to conform to the new Advantage Series configuration.
        It is detecting an Eagle Point lock, but the lock number does not
        match the lock number assigned to this install program (check the
        disk label for the lock number).  You can continue with the
        installation program, but the currently-attached lock will not be
        re-programmed, so all the installed modules may not be accessible.

        Do you want to replace the lock and have the installation program
        try again, to continue without programming the lock, or to abort?

@LocalWindow(17,40)
@Option 1 = "Try again"
@Option 2 = "Continue installation"
@Option 3 = "Abort installation"
@EndOption
@If (1 [= @Option)
@Goto DoLck
@ElseIf (3 [= @Option)
@Abort
@Endif
@EndIf
@EndIf
@GetGroups
    You may install the following modules.  If you do not wish to install
    all of them on this computer, use the up and down arrow keys to move
    to the modules you don't want and press the spacebar to turn them off.

    Press Enter then you are finished marking modules.


@CheckBox
@LocalWindow(10,40)
@SetGroup(C)
@Set C="Surface Modeling"
@SetGroup(E)
@Set E="COGO"
@SetGroup(G)
@Set G="Drafting"
@SetGroup(I)
@Set I="Data Collection"
@EndGroups
@BitField = (0)
@If(C [= @Group) @BitField = (@BitField + 2) @Endif
@If(E [= @Group) @BitField = (@BitField + 8) @Endif
@If(G [= @Group) @BitField = (@BitField + 32) @Endif
@If(I [= @Group) @BitField = (@BitField + 128) @Endif
@Spawn("@InDrive:\\INSTALL2.EXE 3 @OutDrive:@SubDir\\ @BitField")

@DefineDisk
@Label = "Disk 1 of 4"
@File IN.VER @Out SUPPORT\*.*
@File SM.VER @Out SUPPORT\*.* @Group AC
@File CG.VER @Out SUPPORT\*.* @Group AE
@File DR.VER @Out SUPPORT\*.* @Group AG
@File DC.VER @Out SUPPORT\*.* @Group AI
@BeginLib INP1.LIB
@File *.* @Out PROGRAM\*.*
@Endlib
@BeginLib DRP2.LIB
@File *.* @Out PROGRAM\*.* @Group G
@Endlib
@BeginLib CGP3.LIB
@File *.* @Out PROGRAM\*.* @Group E
@Endlib
@BeginLib INP2.LIB
@File *.* @Out PROGRAM\*.*
@Endlib
@BeginLib DRS1.LIB
@File *.* @Out SUPPORT\*.* @Group G
@Endlib
@BeginLib SM1.LIB
@File *.* @Out *.* @Group C
@Endlib
@EndDisk
@Chain("Disk 2 of 4")
