// Installation program for HURL. Only for DOS.


@DefineProject
   @Name     = "H.U.R.L."
   @Version  = "1.0"
   @Subdir   = "\\hurl\\"
   @OutDrive = C
   @Group    = "A"
   @Terse
   @Immediate = 1
@EndProject

@DefineVars
        @Integer @NEEDK = 1000000

        @Integer @Red      = @RGB(255,0,0)  // red
        @Integer @Green    = @RGB(0,255,0)  // green
        @Integer @Blue     = @RGB(0,0,255)  // blue
        @Integer @Black    = @RGB(0,0,0)    // black

        @Qstring @Item1    = "@Outdrive:\\@Subdir\\hurl.bat"

@EndVars


@BackgroundMode(3,@Blue,@Black)
@Display
   @Cls
   Welcome to @Name! This INSTALL program will copy some files
   to your hard disk.  These files don't take up much room and
   will get you started playing the game.
   @Pause
@EndDisplay

@BackgroundMode(3,@Blue,@Black)
@GetOutDrive
        Select the drive where you would like to install @Name.
        @Suppress(0,17) // Suppress floppies & CD-ROM
@EndOutDrive


@BackgroundMode(3,@Blue,@Black)
@GetSubdir

        Enter the directory where you would like to install @Name.

        @Prompt = "Press Enter to select @Subdir"
@EndSubdir

@Display
           @If(@DiskFree(@OutDrive) < @NEEDK)
                The drive you have selected only has
                @DiskFree(@OutDrive) bytes. This
                option requires 1MB of disk space.
                Please clear some space from the disk
                and run INSTALL again.

                @Pause
                @Abort
           @EndIf

@EndDisplay



@BackgroundMode(3,@Blue,@Black)
@DefineDisk
        @Label = "Disk Number 1"
        @File readme.txt
        @File setsound.exe
        @File setm.exe
        @File setm.xmi
        @File setd.exe
        @File setd.snd
        @File adlibg.com
        @File cmidpak.com
        @File digauto.com
        @File digvesa.com
        @File gf166.com
        @File mpu.com
        @File opl2.com
        @File pas16.com
        @File paswave.com
        @File paudio.com
        @File pmidpak.com
        @File sb16.com
        @File sbclone.com
        @File sblaster.com
        @File sbpro.com
        @File sbwave.com
        @File smidpak.com
        @File sswave.com
        @File tmidpak.com
        @File vector.com
        @File adlib.add
        @File adlib.adv
        @File adlibg.add
        @File adlibg.adv
        @File ariaxmid.add
        @File ariaxmid.adv
        @File genmid.add
        @File genmid.adv
        @File gf1midi.add
        @File gf1midi.adv
        @File mt32mpu.add
        @File mt32mpu.adv
        @File multisnd.add
        @File multisnd.adv
        @File nosound.com
        @File pasfm.add
        @File pasfm.adv
        @File pasopl.add
        @File pasopl.adv
        @File sbawe32.add
        @File sbawe32.adv
        @File sbfm.add
        @File sbfm.adv
        @File sbp1fm.add
        @File sbp1fm.adv
        @File sbp2fm.add
        @File sbp2fm.adv
        @File sc32mpu.add
        @File sc32mpu.adv
        @File sensat.add
        @File sensat.adv
        @File vesamid.add
        @File vesamid.adv
        @File wss.add
        @File wss.adv
        @File fat.opl
@EndDisk


@Display

   @Cls
   @Name has been installed on your hard disk.  You will now
   set up your sound card.

   There are two parts to sound setup:  digital sound and MIDI music.
   The INSTALL program can automatically detect a Sound Blaster
   compatible card on your system.  However, if you have something
   other than a Sound Blaster compatible card you need to tell it
   the type of card you are using.

   To set up your sound card, you will scroll through a list of
   sound cards.  If INSTALL detects your sound card, it will
   list it in red at the bottom of the list.

   @Pause

@EndDisplay

@Finish
   @ChDrive @OutDrive
   @ChDir("\\")
   @ChDir("@Subdir")


   // MOVE OVER TO THE CD
   @Write("HURL.BAT","wt","@CDRomFirst:\n")
   @Write("HURL.BAT","at","cd \\\n")

   // START THE BATCH FILE
   @Write("HURL.BAT","at","h -d @Outdrive:\\@Subdir\\ %1 %2 %3 %4 %5 %6 %7 \n")

   // AT END OF GAME RETURN TO HARD DRIVE
   @Write("HURL.BAT","at","@Outdrive:\n")

   @Write("hurl4meg.BAT","wt","@CDRomFirst:\n")
   @Write("hurl4meg.BAT","at","cd \\\n")
   @Write("hurl4meg.BAT","at","set DOS4GVM=@@new4g.vmc\n")
   @Write("hurl4meg.BAT","at","h -d @Outdrive:\\@Subdir\\ %1 %2 %3 %4 %5 %6 %7 \n")
   @Write("hurl4meg.BAT","at","set DOS4GVM=\n")
   @Write("hurl4meg.BAT","at","@Outdrive:\n")

   @Execute("setsound.EXE")

@EndFinish



/* end-of-file */



