/*
 * This is the INSTALL script for The Oregon Trail 3.0
 *
 */


@DefineProject
    @Name = "The Oregon Trail"
    @Version = "3.0.1"
    @OutDrive = C
    @Subdir = "\\MECC\\OREGON"
@EndProject

@DefineVars
        @Qstring @ICLAS = ""
@EndVars

@Display







    This program will install @Name @Version onto
    your hard drive.  You will be asked for the destination drive
    and directory.  Please read the file README after installation.







    @Pause
@EndDisplay

@If (@Exists("CONFIG.CLS"))

     @GetString @ICLAS
          @Prompt = "Are you installing to an ICLAS Network (Y/N)?"
     @EndString


     @If ("@StrHead(@ICLAS,1)" == "Y")
          @Subdir   = "\\COURSES\\OREGON\\"
     @EndIF

@EndIf

@GetOutDrive
    Which drive would you like to install @Name onto?
    @Suppress A
    @Suppress B
@EndOutDrive

@Display
    @If (@DiskFree @OutDrive < 4500000)




        The selected disk drive only has
        @DiskFree @OutDrive bytes. @Name @Version
        requires 4,500,000 bytes free.



        


        @Pause
        @Abort
    @Endif
@EndDisplay

@GetSubdir






    Which directory would you like to install @Name to?
    @Prompt = "Which directory ([Enter] = @Subdir)?"









@EndSubdir

@DefineDisk
    @Label = "Oregon Disk 1"
    @BeginLib OREGON.RED
        @File OREGON.EXE
        @File ADLIB.ADV
        @File PCSPKR.ADV
        @File SBFM.ADV
        @File MIDPAK.AD
        @File SBLASTER.COM
        @File IBMSND.COM
        @File MIDPAK.COM
        @File ADLIB.COM
        @File SETUP.BAT
    @EndLib
    @File PRODUCT.PF @Out PRODUCT.PF
    @File README @Out README
    @BeginLib OREGON.001
        @File OREGON.GXL @Out OREGON.GXL
    @EndLib
@EndDisk

@DefineDisk
    @Label = "Oregon Disk 1"
    @BeginLib OREGON.002
        @File OREGON.GXL @Out OREGON.GXL
    @EndLib
@EndDisk


@Finish
    @chdrive @OutDrive
    @chdir "@SubDir"
    @Execute "OREGON","-CONFIGURE -16"
@EndFinish
