@DefineProject
    @Name = "Conqueror"
    @Version = "1.0"
    @Subdir = "\\SIERRA\\CONQUER"
    @OutDrive = C
    @Requires @HardDisk
    @AssumeHardDisk = @TRUE
    @InDiskBell = @TRUE
    @Immediate = @TRUE
@EndProject

@DefineVars
    @Integer @Red          = @RGB(255,0,0) //DEFINE COLOR RED
    @Integer @Green        = @RGB(0,255,0) //DEFINE COLOR GREEN
    @Integer @Blue         = @RGB(0,0,255) //DEFINE COLOR BLUE
    @Integer @Black        = @RGB(0,0,0)   //DEFINE COLOR BLACK
    @Qstring @MidiPort     = "???"
    @Qstring @WarMode      = "640"
    @Qstring @DigiPort     = "???"
    @Qstring @DigiDma      = "???"
    @Qstring @DigiIrq      = "???"
    @Qstring @Mode         = "?????"
    @Integer @Return
@EndVars

@BackgroundMode(3,@Blue,@Black)


MENU:

//Must change to startup directory because this stupid program
//sets to the location of the install.exe
@ChDrive(@StartupDrive)

    // This is if not running from CD then WAR setup and sound setup
    // are avail!!
    @clearoption( 20 )
    @setoption( 30 )
//    // Only able to set war setup if you have 6 meg of ram available!
//    @if( @ExtAvail > 6M || @EMMAvail > 6M)
//        @setoption( 40 )
//    @else
//        @clearoption( 40 )
//    @endif
    @setoption( 40 )
    //This can be set now as we require a 8 Meg machine!
@GetOption

                          Welcome to @Name v.@Version

@if( 20 [= @Option ) @Option 2 = "Install Game" @endif
@if( 30 [= @Option ) @Option 3 = "Sound Setup"  @endif
@if( 40 [= @Option ) @Option 4 = "Field War Setup" @endif
@Option 5 = "Exit Install/Setup"
@EndOption


@If(3 [= @Option) @GOTO Soundsetup @EndIf
@If(4 [= @Option) @GOTO WarSetup @EndIf
@If(5 [= @Option)
    @clearOption( 2 )
    @GOTO End
@EndIf


NEWDRIVE:  // re-select drive if needed

@GetOutDrive @OutDrive
@Prompt = "Enter target drive"
@LocalWindow(13,62)
@Suppress(0,17)





      Please select the drive where you wish
      @Name@!'s files 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.
@EndOutDrive

@GetSubdir @Subdir @Prompt = "Enter target subdirectory"
@LocalWindow(8,45)
  Please select the main subdirectory PATH where you wish
  @Name to be installed.

  Additional subdirectories under this path will be created
  depending upon which options you choose to install.
@EndSubdir

@ClearOption(1)   /* accept No for Full Install */
@GetOption
    @LocalWindow(8,45)
    @CheckBox
    @Cls
    @Option 1 = "Hard Drive Installation (37 Meg)"

    This will speedup game play on slower machines!
    -- Only Recommended for 486DX25 and below  --
    -- or machines with single speed CD drives --
@EndOption

@if( @Diskfree(@OutDrive) < 37M  && 1 [= @Option)
    @BackgroundMode(3,@Red,@Red)
    @Display
        The Hard Drive installation requires 37 Meg
        this drive currenly only has @diskFree(@OutDrive)
        bytes free.
        @pause
    @EndDisplay
    @goto NEWDRIVE
@endif

@if( @Diskfree(@OutDrive) < 3M  && 1 [! @Option)
    @Display
        The installation of @Name requires 3 Meg
        this drive currenly only has @diskFree(@OutDrive)
        bytes free.
        @pause
    @EndDisplay
    @goto NEWDRIVE
@endif

@MkDir("@OutDrive:\\@Subdir\\SAVEGAME")

@DefineDisk
    @Label = "Conquer 1086ad"
//    @File CONQUER.EXE
    @File CONQUER.INI
//    @File HMIDET.386 @Out @OutDrive:\\@Subdir\\AUD_DRV\\*.*
//    @File HMIMDRV.386 @Out @OutDrive:\\@Subdir\\AUD_DRV\\*.*
//    @File HMIDRV.386 @Out @OutDrive:\\@Subdir\\AUD_DRV\\*.*
    @File C1086.GOB @Out @OutDrive:\\@Subdir\\*.* @Option 1
@EndDisk
@Goto End

WARSETUP:
    @WarMode = "@GetINI("WAR_MODE","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")"
WARSETUP1:
@GetOption
    @MoveCStr(10,25,31,"Your Current Mode is @WarMode")
    @MoveCStr(11,20,71,"Warning Setting Resolution to anything    ")
    @MoveCStr(12,20,71,"other then 640 can cause some monitors to ")
    @MoveCStr(13,20,71,"display garbage.  If this occurs exit game")
    @MoveCStr(14,20,71,"and set mode to 640x480!                  ")

    @Option 100 = "Run war in 640x480 resolution"
    @Option 110 = "Run war in 800x600 resolution"
    @Option 120 = "Run war in 1024x768 resolution"
    @Option 130 = "Test current war setting"
    @Option 140 = "Exit war mode setup"

@EndOption
    @If(100 [= @Option)
        @WarMode = "640"
        @clearoption(100)
        @Goto WARSETUP1
    @ElseIf(110 [= @Option)
        @WarMode = "800"
        @clearoption(110)
        @Goto WARSETUP1
    @ElseIf(120 [= @Option)
        @WarMode = "1024"
        @clearoption(120)
        @Goto WARSETUP1
    @ElseIf(130 [= @Option)
        @Display
            @MoveCStr(10,20,71,"WARNING: This can cause some machines to  ")
            @MoveCStr(11,20,71,"lock up or display garbage.  Please press ")
            @MoveCStr(12,20,71,"NO if you cannot read or see anything on  ")
            @MoveCStr(13,20,71,"your screen                               ")
            @PAUSE
        @EndDisplay
        @if( @spawn("@GetINI("CD_PATH","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")\\CONCFG.EXE /w@WarMode /i:@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI") == 0 )
            @SetIni("WAR_MODE","@WarMode","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @else
            @WarMode = "640"
        @endif
        @clearoption(130)
        @Goto WARSETUP1
    @ElseIf(140 [= @Option)
        @SetIni("WAR_MODE","@WarMode","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @clearoption(140)
    @EndIf
    //Now Clear the option!
    @clearoption(4)
@Goto Menu

SOUNDSETUP:

@GetOption

    @localwindow(9,40)
    @Option 1000 = "Auto configure sound"
    @Option 1001 = "Manually pick sound card"
    @Option 1002 = "Manually pick Midi card"
    @if( "@GetINI("SOUND_NAME","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")" != "?????" )
        @if( "@GetINI("SOUND_EFFECTS","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")" == "ON" )
            @Option 1003 = "Disable sound effects"
        @else
            @Option 1006 = "Enable sound effects"
        @endif
        @if( "@GetINI("SOUND_EFFECTS","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")" == "ON" )
            @if( "@GetINI("DIG_SPEECH","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")" == "ON" )
                @Option 1012 = "Disable Digitized Speech"
            @else
                @Option 1013 = "Enable Digitized Speech"
            @endif
        @endif
    @endif
    @if( "@GetINI("MIDI_NAME","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")" != "?????" )
        @if( "@GetINI("MIDIMUSIC","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")" == "ON" )
            @Option 1004 = "Disable Midi music"
        @else
            @Option 1007 = "Enable Midi music"
        @endif
    @endif
    @if( "@GetINI("CDMUSIC","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")" == "ON" )
        @Option 1005 = "Disable CD music"
    @else
        @Option 1008 = "Enable CD music"
    @endif

    @if( "@GetINI("SOUND_NAME","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")" != "?????" )
        @Option 1009 = "Test sound effects"
    @endif

    @if( "@GetINI("MIDI_NAME","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")" != "?????" )
        @Option 1010 = "Test midi music"
    @endif

    @Option 1011 = "Exit Sound Install"
    @cls
    @MoveCStr(15,25,31,"Sound Effects are @GetINI("SOUND_EFFECTS","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")")
    @MoveCStr(16,25,31,"Digitized Speech is @GetINI("DIG_SPEECH","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")")
    @MoveCStr(17,25,31,"Midi Music is @GetINI("MIDIMUSIC","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")")
    @MoveCStr(18,25,31,"Sound Device is @GetINI("SOUND_NAME","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")")
    @MoveCStr(19,30,31,"Port @GetINI("SOUND_PORT","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")")
    @MoveCStr(19,45,31,"DMA  @GetINI("SOUND_DMA","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")")
    @MoveCStr(19,60,31,"IRQ  @GetINI("SOUND_IRQ","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")")
    @MoveCStr(20,25,31,"Midi Device is @GetINI("MIDI_NAME","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")")
    @MoveCStr(21,30,31,"Port @GetINI("MIDI_PORT","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")")
    @MoveCStr(22,25,31,"CD Audio is @GetINI("CDMUSIC","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")")
@EndOption
    @If(1000 [= @Option)
        @Display
            @MoveCStr(10,20,71,"WARNING: This can cause some machines to  ")
            @MoveCStr(11,20,71,"lock up. Please reboot and choose manual  ")
            @MoveCStr(12,20,71,"sound card installation if this occurs.   ")
            @PAUSE
        @EndDisplay
        @Return = @spawn("@GetINI("CD_PATH","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")\\CONCFG.EXE /F /i:@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @if( @Return == 2)
            @SetIni("SOUND_EFFECTS","ON","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("DIG_SPEECH","ON","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDIMUSIC","ON","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")

            @Mode = "@GetINI("SOUND_DEVICE","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")"

            //MICROSOFT SOUND CARD
            @if( "@Mode" == "1113")
                @Display
                    @MoveCStr(10,20,71,"NOTE: Midi music for this sound card is   ")
                    @MoveCStr(11,20,71,"      not supported by Conqueror at this  ")
                    @MoveCStr(12,20,71,"      time.                               ")
                    @PAUSE
                @EndDisplay
                @SetIni("MIDIMUSIC","OFF","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @endif
        @elseif( @Return == 3)
            @SetIni("SOUND_EFFECTS","ON","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("DIG_SPEECH","ON","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")

            @Mode = "@GetINI("SOUND_DEVICE","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")"

            //GUS and GUS Max
            @if( "@Mode" == "1136" || "@Mode" == "1140" || "@Mode" == "1126")
                @Display
                    @MoveCStr(10,20,71,"NOTE: Midi music for this sound card is   ")
                    @MoveCStr(11,20,71,"      not supported by Conqueror at this  ")
                    @MoveCStr(12,20,71,"      time.                               ")
                    @PAUSE
                @EndDisplay
                @SetIni("MIDIMUSIC","OFF","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @endif
        @endif
        @clearoption(1000)
    @ElseIf( 1001 [= @Option )
        @GetOption
            @Option 1199 = "No Sound Card"
            @Option 1100 = "Sound Blaster"
//SOUND_BLASTER_8_MONO"
//            @Option 1101 = "SOUND_BLASTER_8_ST"
//            @Option 1102 = "SBPRO_8_ST"
            @Option 1103 = "Sound Blaster Pro"
//SBPRO_8_MONO"
            @Option 1104 = "Sound Master II"
//SOUND_MASTER_II_8_MONO"
            @Option 1105 = "Pro Audio Spectrum"
//MV_PAS_8_MONO"
//            @Option 1106 = "MV_PAS_16_MONO"
//            @Option 1107 = "MV_PAS_8_ST"
//            @Option 1108 = "MV_PAS_16_ST"
//            @Option 1109 = "ADLIB_GOLD_8_ST"
//            @Option 1110 = "ADLIB_GOLD_16_ST"
            @Option 1111 = "Adlib Gold"
//ADLIB_GOLD_8_MONO"
//            @Option 1112 = "ADLIB_GOLD_16_MONO"
            @Option 1113 = "Microsoft"
//MICROSOFT_8_MONO"
//            @Option 1114 = "MICROSOFT_8_ST"
//            @Option 1115 = "MICROSOFT_16_MONO"
//            @Option 1116 = "MICROSOFT_16_ST"
            @Option 1117 = "Sound Source PC"
//SOUND_SOURCE_8_MONO_PC"
            @Option 1118 = "Sound Source Tandy"
//SOUND_SOURCE_8_MONO_TANDY"
            @Option 1119 = "General Port"
//GENERAL_PORT_8_MONO"
//            @Option 1120 = "GENERAL_PORT_8_MONO_R"
            @Option 1121 = "Sierra"
//SIERRA_8_MONO"
            @Option 1122 = "Sound Blaster 16"
//SB16_8_MONO"
//            @Option 1123 = "SB16_8_ST"
//            @Option 1124 = "SB16_16_MONO"
//            @Option 1125 = "SB16_16_ST"
            @Option 1126 = "Ess Audiodrive"
//ESS_AUDIODRIVE_8_MONO"
//            @Option 1127 = "ESS_AUDIODRIVE_8_ST"
//            @Option 1128 = "ESS_AUDIODRIVE_16_MONO"
//            @Option 1129 = "ESS_AUDIODRIVE_16_ST"
            @Option 1130 = "Soundscape"
//SOUNDSCAPE_8_MONO"
//            @Option 1131 = "SOUNDSCAPE_8_ST"
//            @Option 1132 = "SOUNDSCAPE_16_MONO"
//            @Option 1133 = "SOUNDSCAPE_16_ST"
            @Option 1134 = "Rap10"
//RAP10_8_MONO"
//            @Option 1135 = "RAP10_16_MONO"
            @Option 1136 = "GUS"
//GUS_8_MONO"
//            @Option 1137 = "GUS_8_ST"
//            @Option 1138 = "GUS_16_MONO"
//            @Option 1139 = "GUS_16_ST"
            @Option 1140 = "GUS Max"
//GUS_MAX_8_MONO"
//            @Option 1141 = "GUS_MAX_8_ST"
//            @Option 1142 = "GUS_MAX_16_MONO"
//            @Option 1143 = "GUS_MAX_16_ST"
            @Option 1144 = "Wavejammer"
//WAVEJAMMER_8_MONO"
//            @Option 1145 = "WAVEJAMMER_8_ST"
//            @Option 1146 = "WAVEJAMMER_16_MONO"
//            @Option 1147 = "WAVEJAMMER_16_ST"
            @Option 1148 = "Tempocs"
//TEMPOCS_8_MONO"
//            @Option 1149 = "TEMPOCS_8_ST"
//            @Option 1150 = "TEMPOCS_16_MONO"
//            @Option 1151 = "TEMPOCS_16_ST"
//            @Option 1152 = "SOUND_BLASTER_8_MONO_R"
//            @Option 1153 = "MICROSOFT_8_MONO_R"
//            @Option 1154 = "SOUND_MASTER_II_8_MONO_R"
//            @Option 1155 = "ADLIB_GOLD_8_MONO_R"
//            @Option 1156 = "MV_PAS_8_MONO_R"
//            @Option 1157 = "RAP10_8_MONO_R"
//            @Option 1158 = "RAP10_16_MONO_R"
//            @Option 1159 = "SB16_8_MONO_R"
//            @Option 1160 = "SB16_8_ST_R"
//            @Option 1161 = "SB16_16_MONO_R"
//            @Option 1162 = "SB16_16_ST_R"
//            @Option 1163 = "MV_PAS_16_MONO_R"
//            @Option 1164 = "SOUNDSCAPE_8_MONO_R"
//            @Option 1165 = "SOUNDSCAPE_8_ST_R"
//            @Option 1166 = "SOUNDSCAPE_16_MONO_R"
//            @Option 1167 = "SOUNDSCAPE_16_ST_R"
//            @Option 1168 = "ESS_AUDIODRIVE_8_MONO_R"
//            @Option 1169 = "ESS_AUDIODRIVE_8_ST_R"
//            @Option 1170 = "ESS_AUDIODRIVE_16_MONO_R"
//            @Option 1171 = "ESS_AUDIODRIVE_16_ST_R"
            @Option 1172 = "Speech Thing"
//SPEECH_THING_8_MONO"
            @Option 1173 = "Yamaha"
//YAMAHA_8_MONO"
//            @Option 1174 = "Internal Speaker"
//INT_SPEAKER_8_MONO"
        @EndOption
            @If( 1199 [= @Option )
                @SetIni("SOUND_NAME","?????","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","?????","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_PORT","???","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DMA","?","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_IRQ","?","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_EFFECTS","OFF","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @ElseIf( 1100 [= @Option )
                @SetIni("SOUND_NAME","Sound Blaster","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe000","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1100)
//            @ElseIf( 1101 [= @Option )
//                @SetIni("SOUND_NAME","SOUND_BLASTER_8_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe001","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1101)
//            @ElseIf( 1102 [= @Option )
//                @SetIni("SOUND_NAME","SBPRO_8_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe001","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1102)
            @ElseIf( 1103 [= @Option )
                @SetIni("SOUND_NAME","Sound Blaster Pro","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe00f","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1103)
            @ElseIf( 1104 [= @Option )
                @SetIni("SOUND_NAME","Sound Master II","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe002","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1104)
            @ElseIf( 1105 [= @Option )
                @SetIni("SOUND_NAME","Pro Audio Spectrum","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe003","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1105)
//            @ElseIf( 1106 [= @Option )
//                @SetIni("SOUND_NAME","MV_PAS_16_MONO","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe004","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1106)
//            @ElseIf( 1107 [= @Option )
//                @SetIni("SOUND_NAME","MV_PAS_8_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe005","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1107)
//            @ElseIf( 1108 [= @Option )
//                @SetIni("SOUND_NAME","MV_PAS_16_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe006","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1108)
//            @ElseIf( 1109 [= @Option )
//                @SetIni("SOUND_NAME","ADLIB_GOLD_8_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe007","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1109)
//            @ElseIf( 1110 [= @Option )
//                @SetIni("SOUND_NAME","ADLIB_GOLD_16_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe008","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1110)
            @ElseIf( 1111 [= @Option )
                @SetIni("SOUND_NAME","Adlib Gold","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe009","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1111)
//            @ElseIf( 1112 [= @Option )
//                @SetIni("SOUND_NAME","ADLIB_GOLD_16_MONO","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe00a","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1112)
            @ElseIf( 1113 [= @Option )
                @SetIni("SOUND_NAME","Microsoft","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe00b","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1113)
//            @ElseIf( 1114 [= @Option )
//                @SetIni("SOUND_NAME","MICROSOFT_8_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe00c","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1114)
//            @ElseIf( 1115 [= @Option )
//                @SetIni("SOUND_NAME","MICROSOFT_16_MONO","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe00d","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1115)
//            @ElseIf( 1116 [= @Option )
//                @SetIni("SOUND_NAME","MICROSOFT_16_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe00e","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1116)
            @ElseIf( 1117 [= @Option )
                @SetIni("SOUND_NAME","Sound Source PC","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe010","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1117)
            @ElseIf( 1118 [= @Option )
                @SetIni("SOUND_NAME","Sound Source Tandy","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe011","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1118)
            @ElseIf( 1119 [= @Option )
                @SetIni("SOUND_NAME","General Port","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe012","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1119)
//            @ElseIf( 1120 [= @Option )
//                @SetIni("SOUND_NAME","GENERAL_PORT_8_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe013","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1120)
            @ElseIf( 1121 [= @Option )
                @SetIni("SOUND_NAME","Sierra","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe014","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1121)
            @ElseIf( 1122 [= @Option )
                @SetIni("SOUND_NAME","Sound Blaster 16","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe015","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1122)
//            @ElseIf( 1123 [= @Option )
//                @SetIni("SOUND_NAME","SB16_8_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe016","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1123)
//            @ElseIf( 1124 [= @Option )
//                @SetIni("SOUND_NAME","SB16_16_MONO","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe017","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1124)
//            @ElseIf( 1125 [= @Option )
//                @SetIni("SOUND_NAME","SB16_16_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe018","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1125)
            @ElseIf( 1126 [= @Option )
                @SetIni("SOUND_NAME","Ess Audiodrive","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe019","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1126)
//            @ElseIf( 1127 [= @Option )
//                @SetIni("SOUND_NAME","ESS_AUDIODRIVE_8_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe01a","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1127)
//            @ElseIf( 1128 [= @Option )
//                @SetIni("SOUND_NAME","ESS_AUDIODRIVE_16_MONO","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe01b","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1128)
//            @ElseIf( 1129 [= @Option )
//                @SetIni("SOUND_NAME","ESS_AUDIODRIVE_16_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe01c","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1129)
            @ElseIf( 1130 [= @Option )
                @SetIni("SOUND_NAME","Soundscape","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe01d","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1130)
//            @ElseIf( 1131 [= @Option )
//                @SetIni("SOUND_NAME","SOUNDSCAPE_8_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe01e","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1131)
//            @ElseIf( 1132 [= @Option )
//                @SetIni("SOUND_NAME","SOUNDSCAPE_16_MONO","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe01f","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1132)
//            @ElseIf( 1133 [= @Option )
//                @SetIni("SOUND_NAME","SOUNDSCAPE_16_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe020","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1133)
            @ElseIf( 1134 [= @Option )
                @SetIni("SOUND_NAME","Rap10","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe021","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1134)
//            @ElseIf( 1135 [= @Option )
//                @SetIni("SOUND_NAME","RAP10_16_MONO","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe022","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1135)
            @ElseIf( 1136 [= @Option )
                @SetIni("SOUND_NAME","GUS","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe023","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1136)
//            @ElseIf( 1137 [= @Option )
//                @SetIni("SOUND_NAME","GUS_8_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe024","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1137)
//            @ElseIf( 1138 [= @Option )
//                @SetIni("SOUND_NAME","GUS_16_MONO","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe025","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1138)
//            @ElseIf( 1139 [= @Option )
//                @SetIni("SOUND_NAME","GUS_16_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe026","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1139)
            @ElseIf( 1140 [= @Option )
                @SetIni("SOUND_NAME","GUS Max","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe027","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1140)
//            @ElseIf( 1141 [= @Option )
//                @SetIni("SOUND_NAME","GUS_MAX_8_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe028","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1141)
//            @ElseIf( 1142 [= @Option )
//                @SetIni("SOUND_NAME","GUS_MAX_16_MONO","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe029","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1142)
//            @ElseIf( 1143 [= @Option )
//                @SetIni("SOUND_NAME","GUS_MAX_16_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe02a","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1143)
            @ElseIf( 1144 [= @Option )
                @SetIni("SOUND_NAME","Wavejammer","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe02b","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1144)
//            @ElseIf( 1145 [= @Option )
//                @SetIni("SOUND_NAME","WAVEJAMMER_8_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe02c","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1145)
//            @ElseIf( 1146 [= @Option )
//                @SetIni("SOUND_NAME","WAVEJAMMER_16_MONO","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe02d","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1146)
//            @ElseIf( 1147 [= @Option )
//                @SetIni("SOUND_NAME","WAVEJAMMER_16_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe02e","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1147)
            @ElseIf( 1148 [= @Option )
                @SetIni("SOUND_NAME","Tempocs","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe02f","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1148)
//            @ElseIf( 1149 [= @Option )
//                @SetIni("SOUND_NAME","TEMPOCS_8_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe030","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1149)
//            @ElseIf( 1150 [= @Option )
//                @SetIni("SOUND_NAME","TEMPOCS_16_MONO","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe031","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1150)
//            @ElseIf( 1151 [= @Option )
//                @SetIni("SOUND_NAME","TEMPOCS_16_ST","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe032","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1151)
//            @ElseIf( 1152 [= @Option )
//                @SetIni("SOUND_NAME","SOUND_BLASTER_8_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe050","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1152)
//            @ElseIf( 1153 [= @Option )
//                @SetIni("SOUND_NAME","MICROSOFT_8_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe051","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1153)
//            @ElseIf( 1154 [= @Option )
//                @SetIni("SOUND_NAME","SOUND_MASTER_II_8_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe052","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1154)
//            @ElseIf( 1155 [= @Option )
//                @SetIni("SOUND_NAME","ADLIB_GOLD_8_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe053","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1155)
//            @ElseIf( 1156 [= @Option )
//                @SetIni("SOUND_NAME","MV_PAS_8_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe054","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1156)
//            @ElseIf( 1157 [= @Option )
//                @SetIni("SOUND_NAME","RAP10_8_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe058","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1157)
//            @ElseIf( 1158 [= @Option )
//                @SetIni("SOUND_NAME","RAP10_16_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe059","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1158)
//            @ElseIf( 1159 [= @Option )
//                @SetIni("SOUND_NAME","SB16_8_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe05a","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1159)
//            @ElseIf( 1160 [= @Option )
//                @SetIni("SOUND_NAME","SB16_8_ST_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe05b","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1160)
//            @ElseIf( 1161 [= @Option )
//                @SetIni("SOUND_NAME","SB16_16_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe05c","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1161)
//            @ElseIf( 1162 [= @Option )
//                @SetIni("SOUND_NAME","SB16_16_ST_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe05d","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1162)
//            @ElseIf( 1163 [= @Option )
//                @SetIni("SOUND_NAME","MV_PAS_16_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe060","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1163)
//            @ElseIf( 1164 [= @Option )
//                @SetIni("SOUND_NAME","SOUNDSCAPE_8_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe061","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1164)
//            @ElseIf( 1165 [= @Option )
//                @SetIni("SOUND_NAME","SOUNDSCAPE_8_ST_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe062","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1165)
//            @ElseIf( 1166 [= @Option )
//                @SetIni("SOUND_NAME","SOUNDSCAPE_16_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe063","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1166)
//            @ElseIf( 1167 [= @Option )
//                @SetIni("SOUND_NAME","SOUNDSCAPE_16_ST_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe064","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1167)
//            @ElseIf( 1168 [= @Option )
//                @SetIni("SOUND_NAME","ESS_AUDIODRIVE_8_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe065","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1168)
//            @ElseIf( 1169 [= @Option )
//                @SetIni("SOUND_NAME","ESS_AUDIODRIVE_8_ST_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe066","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1169)
//            @ElseIf( 1170 [= @Option )
//                @SetIni("SOUND_NAME","ESS_AUDIODRIVE_16_MONO_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe067","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1170)
//            @ElseIf( 1171 [= @Option )
//                @SetIni("SOUND_NAME","ESS_AUDIODRIVE_16_ST_R","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe068","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1171)
            @ElseIf( 1172 [= @Option )
                @SetIni("SOUND_NAME","Speech Thing","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe090","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1172)
            @ElseIf( 1173 [= @Option )
                @SetIni("SOUND_NAME","Yamaha","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @SetIni("SOUND_DEVICE","0xe106","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
                @clearoption(1173)
//            @ElseIf( 1174 [= @Option )
//                @SetIni("SOUND_NAME","Internal Speaker","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @SetIni("SOUND_DEVICE","0xe107","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
//                @clearoption(1174)
            @EndIf
        @If( 1199 [! @Option )
            @GetString @DigiPort
                @Prompt="Please Enter your Digi Port number:"
            @endstring
            @GetString @DigiDma
                @Prompt="Please Enter your Digi DMA number:"
            @endstring
            @GetString @DigiIrq
                @Prompt="Please Enter your Digi IRQ number:"
            @endstring
            @SetIni("SOUND_PORT","@DigiPort","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("SOUND_DMA","@DigiDma","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("SOUND_IRQ","@DigiIrq","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @EndIf
        @clearoption(1199)
        @clearoption(1001)
    @ElseIf( 1002 [= @Option )//MIDI PICK
        @getoption
            @Option 1299 = "NO MIDI_CARD"
            @Option 1200 = "MIDI_SOUND_MASTER_II"
//            @Option 1201 = "MIDI_MPU_401"
            @Option 1202 = "MIDI_FM"
//            @Option 1203 = "MIDI_CALLBACK"
//            @Option 1204 = "MIDI_MT_32"
//            @Option 1205 = "MIDI_DIGI"
//            @Option 1206 = "MIDI_INTERNAL_SPEAKER"
//            @Option 1207 = "MIDI_WAVE_TABLE_SYNTH"
//            @Option 1208 = "MIDI_AWE32"
            @Option 1209 = "MIDI_OPL3"
//            @Option 1210 = "MIDI_GUS"
        @endoption

        @If( 1299 [! @Option )
            @GetString @MidiPort
                @Prompt="Please Enter your Midi Port number:"
            @endstring
        @EndIf

        @If( 1299 [= @Option )
            @SetIni("MIDI_NAME","?????","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_DEVICE","?????","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_PORT","???","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDIMUSIC","OFF","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @clearoption(1299)
        @ElseIf( 1200 [= @Option )
            @SetIni("MIDI_NAME","MIDI_SOUND_MASTER_II","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_DEVICE","0xa000","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_PORT","@MidiPort","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @clearoption(1200)
        @ElseIf( 1201 [= @Option )
            @SetIni("MIDI_NAME","MIDI_MPU_401","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_DEVICE","0xa001","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_PORT","@MidiPort","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @clearoption(1201)
        @ElseIf( 1202 [= @Option )
            @SetIni("MIDI_NAME","MIDI_FM","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_DEVICE","0xa002","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_PORT","@MidiPort","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @clearoption(1202)
        @ElseIf( 1203 [= @Option )
            @SetIni("MIDI_NAME","MIDI_CALLBACK","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_DEVICE","0xa003","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_PORT","@MidiPort","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @clearoption(1203)
        @ElseIf( 1204 [= @Option )
            @SetIni("MIDI_NAME","MIDI_MT_32","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_DEVICE","0xa004","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_PORT","@MidiPort","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @clearoption(1204)
        @ElseIf( 1205 [= @Option )
            @SetIni("MIDI_NAME","MIDI_DIGI","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_DEVICE","0xa005","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_PORT","@MidiPort","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @clearoption(1205)
        @ElseIf( 1206 [= @Option )
            @SetIni("MIDI_NAME","MIDI_INTERNAL_SPEAKER","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_DEVICE","0xa006","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_PORT","@MidiPort","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @clearoption(1206)
        @ElseIf( 1207 [= @Option )
            @SetIni("MIDI_NAME","MIDI_WAVE_TABLE_SYNTH","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_DEVICE","0xa007","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_PORT","@MidiPort","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @clearoption(1207)
        @ElseIf( 1208 [= @Option )
            @SetIni("MIDI_NAME","MIDI_AWE32","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_DEVICE","0xa008","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_PORT","@MidiPort","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @clearoption(1208)
        @ElseIf( 1209 [= @Option )
            @SetIni("MIDI_NAME","MIDI_OPL3","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_DEVICE","0xa009","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_PORT","@MidiPort","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @clearoption(1209)
        @ElseIf( 1210 [= @Option )
            @SetIni("MIDI_NAME","MIDI_GUS","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_DEVICE","0xa00a","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @SetIni("MIDI_PORT","@MidiPort","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
            @clearoption(1210)
        @endif
        @clearoption(1002)
    @ElseIf( 1003 [= @Option )
        @SetIni("SOUND_EFFECTS","OFF","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @SetIni("DIG_SPEECH","OFF","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @clearoption(1003)
    @ElseIf( 1004 [= @Option )
        @SetIni("MIDIMUSIC","OFF","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @clearoption(1004)
    @ElseIf( 1005 [= @Option )
        @SetIni("CDMUSIC","OFF","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @clearoption(1005)
    @ElseIf( 1006 [= @Option )
        @SetIni("SOUND_EFFECTS","ON","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @clearoption(1006)
    @ElseIf( 1007 [= @Option )
        @SetIni("MIDIMUSIC","ON","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @clearoption(1007)
    @ElseIf( 1008 [= @Option )
        @SetIni("CDMUSIC","ON","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @clearoption(1008)
    @ElseIf( 1009 [= @Option )
        @Display
            @MoveCStr(10,20,71,"WARNING: This can cause some machines to     ")
            @MoveCStr(11,20,71,"lock up if the incorrect sound card is picked")
            @MoveCStr(12,20,71,"Please reboot and choose manual sound card   ")
            @MoveCStr(13,20,71,"card installation if this occurs.            ")
            @PAUSE
        @EndDisplay
        @spawn("@GetINI("CD_PATH","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")\\CONCFG.EXE /D /i:@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @clearoption(1009)
    @ElseIf( 1010 [= @Option )
        @Display
            @MoveCStr(10,20,71,"WARNING: This can cause some machines to    ")
            @MoveCStr(11,20,71,"lock up if the incorrect midi card is picked")
            @MoveCStr(12,20,71,"Please reboot and choose manual midi card   ")
            @MoveCStr(13,20,71,"card installation if this occurs.           ")
            @PAUSE
        @EndDisplay
        @spawn("@GetINI("CD_PATH","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")\\CONCFG.EXE /M /i:@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @clearoption(1010)
    @ElseIf( 1012 [= @Option )
        @SetIni("DIG_SPEECH","OFF","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @clearoption(1012)
    @ElseIf( 1013 [= @Option )
        @SetIni("DIG_SPEECH","ON","@StartupDrive:\\@GetCWD(@StartupDrive)\\CONQUER.INI")
        @clearoption(1013)
    @EndIf

    @If( 1011 [= @Option )
        //Now Clear the option!
        @clearoption(1011)
        @clearoption(3)
        @Goto Menu
    @else
        @goto Soundsetup
    @endif

END:

@Finish
/* Now going to modify the ini file!!!! */
// Only on install!!!!
@if( 2 [= @Option )
//    @Write("@OutDrive:\\@Subdir\\CONQUER.INI","at","AUD_DRV=@OutDrive:\\@Subdir\\AUD_DRV\\\n")
    @Write("@OutDrive:\\@Subdir\\CONQUER.INI","at","AUD_DRV=@StartupDrive:\\@StartupDir\\\n")
    @Write("@OutDrive:\\@Subdir\\CONQUER.INI","at","CD_PATH=@StartupDrive:\\@StartupDir\\CONQUER\\\n")
    @if (1 [= @Option)
        @Write("@OutDrive:\\@Subdir\\CONQUER.INI","at","GOB=@OutDrive:\\@Subdir\\\n")
    @Else
        @Write("@OutDrive:\\@Subdir\\CONQUER.INI","at","GOB=@StartupDrive:\\@StartupDir\\\n")
    @EndIf
    @if( @ExtAvail > 6M || @EMMAvail > 6M)
        @Write("@OutDrive:\\@Subdir\\CONQUER.INI","at","FULL_MOVIE=Y\n")
    @EndIf
    @ChDrive(@OutDrive)
    @ChDir("@SubDir")
    @Write("@OutDrive:\\@Subdir\\config.bat","wt","@@ECHO OFF\n")
    @Write("@OutDrive:\\@Subdir\\config.bat","at","@StartupDrive:\\@StartupDir\\config.exe\n")
    @Write("@OutDrive:\\@Subdir\\conquer.bat","wt","@@ECHO OFF\n")
    @Write("@OutDrive:\\@Subdir\\conquer.bat","at","@StartupDrive:\\@StartupDir\\CONQUER.EXE %1\n")
    @execute("@StartupDrive:\\@StartupDir\\CONFIG.EXE")
@endif

    @if( 2 [! @Option )
        @ChDrive(@StartupDrive)
        @ChDir("@GetCWD(@StartupDrive)")
    @endif
@EndFinish