/*
 * INSTALL.DAT
 *
 * Project: GORG CD-ROM
 * Version: 1.0
 *
 */

@DefineProject
        @Name     = "G.O.R.G."
        @Version  = "1.0"
        @Subdir   = "\\MICRO4M"
        @OutDrive = C
        @Group    = "A"
@EndProject

@DefineVars
        @Integer @Setup = 900000
@EndVars

@ClearOption(5)

@Display
  @Cls


  This program will install:

  @Name version @Version on your computer system.  You may press 
  the [Esc] key at any time to abort the installation.



   @Pause
@EndDisplay

@GetOption
        @LocalWindow(10,55)
        @Option 100 = "Standard Installation"
        @Option 101 = "Custom Installation"
@Cls
 Select the type of Installation you wish to perform

 A "Standard" installation will install the necessary @Name files
 to your hard disk.  This takes approximately 810 Kb of disk space
 and will be installed in the following tree structure:

 C:\MICRO4M\GORG
            ÀÄÄ\SETUP




 A "Custom" installation will allow you to select which drive and directory
 to install to.



 Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move the
 highlight bar to the type of installation you prefer.  Press [Enter] to
 select that type of distribution.

@EndOption

@If ( 100 [= @Option )
    @OutDrive = C
    @SetGroup(A)
    @SetOption(5)
@EndIf

LISTDRIVES: // This label is an "@GOTO" destination
@If ( 5 [! @Option )

@GetOutDrive
    @LocalWindow(12,40)

 Please select the drive where you wish @Name to be installed on your
 machine.  Any drive available can be used assuming you have access rights
 to the drive you select, and there is enough space available for
 installation.











 Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move the bar
 to your selection and then press the [Enter] key.

@EndOutDrive
@Endif

@If ( 5 [! @Option )
@GetSubdir
  @Cls
  Now you need to specify the disk destination subdirectory.  The
  subdirectory is the location on your disk where the @Name
  system will be installed.  If you don't know what a "subdirectory"
  is, you probably need not worry about it, and should enter the back-
  slash character at the next prompt.

  If you are using a subdirectory system, and the DOS PATH command,
  and you install @Name in the @Subdir subdirectory, you
  will probably want to modify the PATH so that it includes the
  subdirectory @Subdir in addition to the current subdirectories.


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

@If ( 5 [! @Option )
@ClearGroup(A)
@SetGroup(B)
@SetGroup(C)
@GetGroups
        @LocalWindow(7,40)
        @Checkbox
        @SET B = "Install @Name"
        @SET C = "Run SETUP"
        @Cls

 Select the options you wish installed or run.







 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 group from "No" to "Yes".  Press [Enter] when you have selected all
 the group(s) you want to install.

@EndGroups
@Endif

@ClearOption(91)
@ClearOption(92)
@If (@DiskFree @OutDrive < @Eval(@Setup))
  @GetOption
    @LocalWindow(7,40)
    @Name needs at least @Eval(@Setup) of free disk space to
    install.  You only have @DiskFree bytes available on drive
    @outdrive.  What would you like to do at this time?


    @Option 91 = "Choose another drive"
    @Option 92 = "Abort the installation"
  @EndOption
@If (91 [= @Option)
    @SetOption(5)
    @Goto LISTDRIVES
  @Elseif (92 [= @Option)
    @Exit
  @EndIf
@EndIf

@DefineDisk
    @Label = "GORG CD-ROM"
    @F MIDPAK.AD           @O GORG\\MIDPAK.AD
    @F MIDPAK.ADV          @O GORG\\MIDPAK.ADV
    @F GG.BAT              @O GORG\\GG.BAT
    @F GGHELP.BAT          @O GORG\\GGHELP.BAT
    @F SETUP.BAT           @O GORG\\SETUP.BAT
    @F MIDPAK.COM          @O GORG\\MIDPAK.COM
    @F SOUNDRV.COM         @O GORG\\SOUNDRV.COM
    @F GORG.EXE            @O GORG\\GORG.EXE
    @F SETUP\\ADLIB.ADD    @O GORG\\SETUP\\*.*
    @F SETUP\\ADLIB.ADD    @O GORG\\SETUP\\*.*
    @F SETUP\\ADLIBG.ADD   @O GORG\\SETUP\\*.*
    @F SETUP\\ARIAXMID.ADD @O GORG\\SETUP\\*.*
    @F SETUP\\GENMID.ADD   @O GORG\\SETUP\\*.*
    @F SETUP\\GF1MIDI.ADD  @O GORG\\SETUP\\*.*
    @F SETUP\\MMSYNTH.ADD  @O GORG\\SETUP\\*.*
    @F SETUP\\MT32MPU.ADD  @O GORG\\SETUP\\*.*
    @F SETUP\\MULTISND.ADD @O GORG\\SETUP\\*.*
    @F SETUP\\PASFM.ADD    @O GORG\\SETUP\\*.*
    @F SETUP\\PASOPL.ADD   @O GORG\\SETUP\\*.*
    @F SETUP\\PCSPKR.ADD   @O GORG\\SETUP\\*.*
    @F SETUP\\SBFM.ADD     @O GORG\\SETUP\\*.*
    @F SETUP\\SBP1FM.ADD   @O GORG\\SETUP\\*.*
    @F SETUP\\SBP2FM.ADD   @O GORG\\SETUP\\*.*
    @F SETUP\\SC32MPU.ADD  @O GORG\\SETUP\\*.*
    @F SETUP\\SENSAT.ADD   @O GORG\\SETUP\\*.*
    @F SETUP\\TANDY.ADD    @O GORG\\SETUP\\*.*
    @F SETUP\\WSS.ADD      @O GORG\\SETUP\\*.*
    @F SETUP\\ADLIB.ADV    @O GORG\\SETUP\\*.*
    @F SETUP\\ADLIBG.ADV   @O GORG\\SETUP\\*.*
    @F SETUP\\ARIAXMID.ADV @O GORG\\SETUP\\*.*
    @F SETUP\\GENMID.ADV   @O GORG\\SETUP\\*.*
    @F SETUP\\GF1MIDI.ADV  @O GORG\\SETUP\\*.*
    @F SETUP\\GF1DIGI.ADV  @O GORG\\SETUP\\*.*
    @F SETUP\\MIDPAK.ADV   @O GORG\\SETUP\\*.*
    @F SETUP\\MMSYNTH.ADV  @O GORG\\SETUP\\*.*
    @F SETUP\\MT32MPU.ADV  @O GORG\\SETUP\\*.*
    @F SETUP\\MULTISND.ADV @O GORG\\SETUP\\*.*
    @F SETUP\\PASFM.ADV    @O GORG\\SETUP\\*.*
    @F SETUP\\PASOPL.ADV   @O GORG\\SETUP\\*.*
    @F SETUP\\PCSPKR.ADV   @O GORG\\SETUP\\*.*
    @F SETUP\\SBFM.ADV     @O GORG\\SETUP\\*.*
    @F SETUP\\SBP1FM.ADV   @O GORG\\SETUP\\*.*
    @F SETUP\\SBP2FM.ADV   @O GORG\\SETUP\\*.*
    @F SETUP\\SC32MPU.ADV  @O GORG\\SETUP\\*.*
    @F SETUP\\SENSAT.ADV   @O GORG\\SETUP\\*.*
    @F SETUP\\TANDY.ADV    @O GORG\\SETUP\\*.*
    @F SETUP\\WSS.ADV      @O GORG\\SETUP\\*.*
    @F SETUP\\ADLIB.COM    @O GORG\\SETUP\\*.*
    @F SETUP\\ADLIBG.COM   @O GORG\\SETUP\\*.*
    @F SETUP\\ARIA.COM     @O GORG\\SETUP\\*.*
    @F SETUP\\ASK.COM      @O GORG\\SETUP\\*.*
    @F SETUP\\BIGMOUTH.COM @O GORG\\SETUP\\*.*
    @F SETUP\\CMIDPAK.COM  @O GORG\\SETUP\\*.*
    @F SETUP\\CVXSND.COM   @O GORG\\SETUP\\*.*
    @F SETUP\\DIGISP.COM   @O GORG\\SETUP\\*.*
    @F SETUP\\ECHOII.COM   @O GORG\\SETUP\\*.*
    @F SETUP\\GF166.COM    @O GORG\\SETUP\\*.*
    @F SETUP\\IBM1BIT.COM  @O GORG\\SETUP\\*.*
    @F SETUP\\IBMBAK.COM   @O GORG\\SETUP\\*.*
    @F SETUP\\IBMSND.COM   @O GORG\\SETUP\\*.*
    @F SETUP\\LANTSND.COM  @O GORG\\SETUP\\*.*
    @F SETUP\\LSIZE.COM    @O GORG\\SETUP\\*.*
    @F SETUP\\MIDPAK.COM   @O GORG\\SETUP\\*.*
    @F SETUP\\MULTISND.COM @O GORG\\SETUP\\*.*
    @F SETUP\\NOSOUND.COM  @O GORG\\SETUP\\*.*
    @F SETUP\\PAS16.COM    @O GORG\\SETUP\\*.*
    @F SETUP\\PAUDIO.COM   @O GORG\\SETUP\\*.*
    @F SETUP\\PMIDPAK.COM  @O GORG\\SETUP\\*.*
    @F SETUP\\RMIDPAK.COM  @O GORG\\SETUP\\*.*
    @F SETUP\\SBCLONE.COM  @O GORG\\SETUP\\*.*
    @F SETUP\\SBDETECT.COM @O GORG\\SETUP\\*.*
    @F SETUP\\SBLASTER.COM @O GORG\\SETUP\\*.*
    @F SETUP\\SBPRO.COM    @O GORG\\SETUP\\*.*
    @F SETUP\\SMIDPAK.COM  @O GORG\\SETUP\\*.*
    @F SETUP\\SMSND.COM    @O GORG\\SETUP\\*.*
    @F SETUP\\SNDSYS.COM   @O GORG\\SETUP\\*.*
    @F SETUP\\SOUNDRV.COM  @O GORG\\SETUP\\*.*
    @F SETUP\\SOURCE.COM   @O GORG\\SETUP\\*.*
    @F SETUP\\STFX.COM     @O GORG\\SETUP\\*.*
    @F SETUP\\TANEXTX.COM  @O GORG\\SETUP\\*.*
    @F SETUP\\TANSLTL.COM  @O GORG\\SETUP\\*.*
    @F SETUP\\TMIDPAK.COM  @O GORG\\SETUP\\*.*
    @F SETUP\\VMSND.COM    @O GORG\\SETUP\\*.*
    @F SETUP\\WAITS.COM    @O GORG\\SETUP\\*.*
    @F SETUP\\SETUP.EXE    @O GORG\\SETUP\\*.*
    @F SETUP\\DIGVESA.COM  @O GORG\\SETUP\\*.*
    @F SETUP\\SB16.COM     @O GORG\\SETUP\\*.*
    @F SETUP\\SBAWE32.ADD  @O GORG\\SETUP\\*.*
    @F SETUP\\SBAWE32.ADV  @O GORG\\SETUP\\*.*

@EndDisk

@Finish

    @Write("@OutDrive:@SubDir\\GORG\\GORG.CFG","wt","SRC=@InDrive:\\GORG\\\n")
    @Write("@OutDrive:@SubDir\\GORG\\GORG.CFG","at","DST=@OutDrive:@SubDir\\GORG\\\n")

    @ChDrive @OutDrive
    @ChDir "@SubDir"
    @ChDir "GORG"

    @If ( ( 'A' [= @Group) || ('C' [= @Group ) )
        @ChDir "SETUP"
        @spawn( "SETUP.EXE" )
        @Copy( "@OutDrive:\\@SubDir\\GORG\\SETUP\\MIDPAK.*", "@OutDrive:\\@SubDir\\GORG\\*.*" )
        @Copy( "@OutDrive:\\@SubDir\\GORG\\SETUP\\SOUNDRV.COM", "@OutDrive:\\@SubDir\\GORG\\*.*" )
        @ChDir ".."
    @EndIf

    @Cls



    Installation of @Name is now finished.

    @Pause
    @Cls
@EndFinish

/* end-of-file */
