@DefineProject
    @Name = "LGOP2"
	@Version = "1.0"
    @OutDrive = C
	@SubDir = "\\LGOP2\\"
	@Requires @Harddisk
@EndProject

@Display
                      Leather Goddesses of Phobos 2:

        Gas Pump Girls Meet the Pulsating Inconvenience from Planet X

                    Install and Configuration Program


  This program will install and/or configure Leather Goddesses
  onto your hard drive.

  During this process you will be asked some questions.
  You can use your cursor keys to select the items.
  If an item is flashing, and you press [Enter], that item will be
  selected.


  @Pause
@EndDisplay

@If (@Exists "lgop2.prj")
    @GetGroups
        @LocalWindow(12,38)
        @SET N = "Just Configure Leather Goddesses 2"
        @SET Y = "Install Leather Goddesses 2 Again"
        @Cls

    Leather Goddesses 2 appears to have been installed.  Do you want
    to re-install Leather Goddesses 2?





    @EndGroups



    @If ('N' [= @Group)
        @Goto SETUP
    @EndIf

@EndIf

@Display

  Now it's time to install Leather Goddesses 2 onto your hard drive.

  Leather Goddesses 2 is a big program.  How big?  So big that you'll
  need at least 15 Megabytes on your hard drive.  The installer will
  inform you if there's not enough room, before installing the game.



  @Pause
@EndDisplay



@GetOutDrive
	@Suppress A
	@Suppress B
	@LocalWindow(12,38)

    To which hard drive would you like to install Leather Goddesses 2?











	Use the arrow keys or the numeric keypad to move the flashing
    selected drive, then press [Enter].  If only one choice is shown,
    then just press [Enter].
@EndOutDrive



@GetSubDir
    In which directory on drive @OutDrive would you like the Leather
    Goddesses 2 files to be installed?

    To install the files in the directory @Subdir, just press [Enter].

    To install the files in a different directory, type the directory's
    full path name, then press [Enter].
    @Prompt = "    Which directory? "
@EndSubDir



@If (@Exists "@OutDrive:\\@SubDir\\lgop2.prj")
    @GetGroups
    @LocalWindow(12,38)
    @SET N = "Just Configure Leather Goddesses 2"
    @SET Y = "Install Leather Goddesses 2 Again"
    @Cls

    Leather Goddesses 2 appears to have been installed.  Do you want
    to re-install Leather Goddesses 2?


    @EndGroups

    @If ('N' [= @Group)
        @DefineDisk
        @Label = "Disk 1"
        @File disk.id @Size 10000
        @EndDisk
        @Goto SETUP
    @else
        @DefineDisk
        @Label = "Disk 1"
        @File disk.id @Size 100000
        @EndDisk
        @MkDir("@OutDrive:\\@SubDir")
        @Copy("@InDrive:\\install.dat","@OutDrive:\\@SubDir")
        @Copy("@InDrive:\\install.exe","@OutDrive:\\@SubDir")
    @EndIf

@else

    @DefineDisk
    @Label = "Disk 1"
    @File disk.id @Size 15000000
    @EndDisk

    @if (@DiskFree @OutDrive < 15000000)
    @Display

    Well it looks like hard disk @OutDrive: doesn't have quite enough
    room.  You'll need to have at least 15,000,000 bytes free.
    Your disk only has @DiskFree @OutDrive bytes free.

    Good luck.


    @Pause
    @Exit
    @endif

    @MkDir("@OutDrive:\\@SubDir")
    @Copy("@InDrive:\\install.dat","@OutDrive:\\@SubDir")
    @Copy("@InDrive:\\install.exe","@OutDrive:\\@SubDir")

@Endif



@Display

    Now we have to copy the files to your hard drive.

    You'll be prompted to insert the disks that the install program will
    need.  After inserting the requested disk, type 'Y' and
    press [Enter].

    During this process, if you need to stop the installation, you
    have to press [CTRL-BREAK]. Doing this will require you to run the
    install program again.

    Here we go!

    @Pause

@EndDisplay

@ChDrive @OutDrive
@ChDir "@SubDir"

@If (@Spawn("@InDrive:\\dearj e @InDrive:\\lgop2.a01 -=c -jqCLS -vv -jd100k  -i1") == 0)

    @Display

                                Installation of


                        Leather Goddesses of Phobos 2:

        Gas Pump Girls Meet the Pulsating Inconvenience from Planet X

                    is complete.  Configuring the program.
    @Pause
    @EndDisplay

@else

    @Display
        The installation of Leather Goddesses of Phobos 2
    may not have been completed properly!  You may have a bad hard
    disk or perhaps one of the Leather Goddesses disks has been
    damaged.  Check the manual and try running the install again.

    If it still doesn't work give technical support a call...


    @Pause

    @EndDisplay

    @Exit

@EndIf

SETUP:

@Display

                      Leather Goddesses of Phobos 2:

        Gas Pump Girls Meet the Pulsating Inconvenience from Planet X

                            Configure Program


  This program will allow you to specify what sound and music cards
  you want Leather Goddesses 2 to use.  Normally Leather Goddesses 2
  will attempt to detect devices automatically.  Configuring
  allows Leather Goddesses 2 to support devices which cannot be
  automatically detected and/or allows you to override an automatic
  selection of a device.  For example, the LifeSize Sound Enhancer
  sometimes provides better quality speech than a sound card.


  @Pause
@EndDisplay


@GetOption    Please select your music device:
    @LocalWindow(13,38)
    @Option 1 = "Roland MT-32 or LAPC-1"
    @Option 2 = "Ad-Lib, SoundBlaster, or Compatible"
    @Option 3 = "PS/1 Sound Card"
    @Option 4 = "Tandy Music System"
    @Option 5 = "PC Speaker"
    @Option 6 = "Digital Music Device"
    @Option 7 = "Auto-Detect"
    @Option 8 = "No Music At All"
    If you know what music device you have, select it by hitting [Enter].
    If you don't have any of the music cards listed below, you can select
    the Digital Music Device.  This will allow the LifeSize Sound Enhancer
    or any other digital audio device to play music.  You should have a
    reasonably fast PC (16MHz or better).  The Digital Music Device
    will produce higher quality music than the PC Speaker alone.










    Note that the LifeSize Sound Enhancer supports both digital audio and
    digital music.  If you will be using it for music and digital audio,
    select the Digital Music Device option above. If you have a music card,
    you can choose to use your card for music and still use the
    LifeSize Sound Enhancer for digital audio (speech).  @EndOption

@GetOption
    @LocalWindow(13,38)
    Please select your digital audio device:

    @Option 15 = "LifeSize Sound Enhancer"
    @Option 11 = "SoundBlaster or Thunder Board"
    @Option 12 = "Pro Audio Spectrum"
    @Option 13 = "PS/1 Sound Card"
    @Option 14 = "Tandy Advanced Digital Audio"
    @Option 16 = "Disney Sound Source"
    @Option 17 = "Covox Speech Master"
    @Option 18 = "Auto-Detect"
    @Option 19 = "No Digital Audio At All"

    If you know what audio device you have, select it by hitting
    [Enter].  In some cases the LifeSize Sound Enhancer will provide
    higher quality speech than a sound card.

@EndOption

@Write("LGOP2.BAT","wt","MADE ")

@if (1 [= @OPTION)
    @Write("LGOP2.BAT","at","-r ")
@endif

@if (2 [= @OPTION)
    @Write("LGOP2.BAT","at","-a ")
@endif

@if (3 [= @OPTION)
    @Write("LGOP2.BAT","at","-p ")
@endif

@if (4 [= @OPTION)
    @Write("LGOP2.BAT","at","-t ")
@endif

@if (5 [= @OPTION)
    @Write("LGOP2.BAT","at","-s ")
@endif

@if (6 [= @OPTION)
    @Write("LGOP2.BAT","at","-x ")
@endif

@if (8 [= @OPTION)
    @Write("LGOP2.BAT","at","-1 ")
@endif

@if (11 [= @OPTION)
    @Write("LGOP2.BAT","at","-b ")
@endif

@if (12 [= @OPTION)
    @Write("LGOP2.BAT","at","-m ")
@endif

@if (13 [= @OPTION)
    @Write("LGOP2.BAT","at","-p ")
@endif

@if (14 [= @OPTION)
    @Write("LGOP2.BAT","at","-t ")
@endif

@if (15 [= @OPTION)
    @Write("LGOP2.BAT","at","-l ")
@endif

@if (16 [= @OPTION)
    @Write("LGOP2.BAT","at","-d ")
@endif

@if (17 [= @OPTION)
    @Write("LGOP2.BAT","at","-c ")
@endif

@if (19 [= @OPTION)
    @Write("LGOP2.BAT","at","-2 ")
@endif

@Write("LGOP2.BAT","at"," LGOP2\n")


@Display

                      Leather Goddesses of Phobos 2:

        Gas Pump Girls Meet the Pulsating Inconvenience from Planet X

                            Has been configured.

  Type LGOP2 and hit [Enter] to play.

  Enjoy!


  @Pause
  @exit
@EndDisplay



















