@DefineProject
	@Name = "Ecology Treks"
	@Version = "1.0"
 @SubDir = "\\ECOLOGY"
 @OutDrive = C
	@Group		= "A"
	@InDiskBell = 1
	@Terse
@EndProject

@DefineVars
		@Integer @DiskMemReqd = 4500000
@EndVars

@Display

			     Magic Quest Inc.
			    125 University Ave.
			Palo Alto, California 94301

		     Technical Support: (415) 321-5941


    This program will install @Name Version @Version onto your
    computer system and verify the integrity of the distribution files.
    You may press the [Esc] key at any time to abort the installation.




   @Pause
@EndDisplay

/* Check Compatibility */
@If (@VideoCard != 'V')
  @Display
     You need a VGA Adaptor and Monitor to run @Name!
     Your system does not have this...
   @Pause
   @EndDisplay
@Endif
@If	(((@OSMajor * 100) + @OSMinor) < 311)
  @Display
     We recommend operating system DOS 3.1 and higher...
     May I suggest you upgrade your operating system?
   @Pause
   @EndDisplay
@Endif

	@If (@RAMAvail < 550K)
	   @GetOption
	      @LocalWindow(10,40)
	      @Option 10 = "Continue with Installation"
	      @Option 11 = "Abort Installation"
	@Cls
    We are sorry, but your computer has only @RAMAvail of available RAM.
    @Name ver. @Version needs a least a 550K of available RAM to run.
    Please see the README file on disk 1 for tips on increasing your
    available memory.


	   @EndOption
	   @If(11 [= @Option)
	      @Abort
	   @Endif
	@Endif

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






 A "Standard" installation will install the @Name distribution
 in the directory @SubDir on Drive @OutDrive: (@OutDrive:@SubDir)

 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
 flashing highlight bar to the type of installation you prefer.
 Press [Enter] to select that type of distribution.

@EndOption
/*
 Your @cpu-based computer has the following system components:
 @Eval(@RamAvail/1024)K Avail RAM / @eval(@ExtAvail/1024)K Avail EXT RAM / @eval(@EmmAvail/1024)K Avail EMM RAM
*/

@If(100 [= @Option)
	@OutDrive = C
	@GoTo Check_Free_Space
@EndIf

LIST_DRIVES: // This label is an "@GOTO" destination
@ClearOption(1)

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

 Please select the drive where you wish @Name to be installed on your
 machine.  Any available drive (except the floppies A: and B:) can be
 selected 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

@if (@Removable)
    @Display
       You cannot install @Name onto a floppy drive!

       @Abort
    @EndDisplay
@EndIf

@If (99 [= @Option)
	@GoTo Check_Free_Space
@EndIf

@GetSubdir
	@LocalWindow(11,40)
	@Cls
 Please select the PATH that you wish @Name to be installed under.




@EndSubdir

Check_Free_Space:

@If (@DiskFree @OutDrive < @Eval(@DiskMemReqd))

  @GetOption
	@LocalWindow(7,40)
	@Name needs at least @Eval(@DiskMemReqd/1024)K of free disk space to
	install.  You only have @Eval(@DiskFree  @OutDrive/1024)K bytes available on drive @outdrive.
	What would you like to do at this time?


	@Option 1 = "Choose another drive"
	@Option 2 = "Abort the installation"
  @EndOption
@If (1 [= @Option)
//
//	If INSTALL falls into this block then the end-user has chosen to pick
//	another drive to install onto because the currect drive they have chosen
//	does not have the adequate free space.
//
	@SetOption(99)
	@Goto LIST_DRIVES
@Elseif (2 [= @Option)
//
//	If INSTALL gets here then the end-user has chosen to abort the installation.
//	The end-user at this time will probably abort the installation, free up
//	adequate space on their hard disk, and execute INSTALL again.
//
	@Exit
  @EndIf
@EndIf

@DefineDisk
	@Label = "Disk #1"
	@BeginLib ECO.001
		@F 0 @S 7800 @O BNK.DB
		@F 1 @S 30 @O CONFIG.SYS
		@F 2 @S 17819 @O CLRICONS
		@F 3 @S 266 @O CLRICONS.IDX
		@F 4 @S 13 @O ECO.BAT
		@F 5 @S 22168 @O SETUP.EXE
		@F 6 @S 96 @O ECOGAME.DAT
		@F 7 @S 290 @O ECOLOGY.BDX
		@F 8 @S 72 @O ECOLOGY.BGX
		@F 9 @S 2018 @O ECOLOGY.CDX
		@F A @S 34 @O ECOLOGY.CFG
		@F B @S 504 @O ECOLOGY.CGX
		@F C @S 400770 @O ECOLOGY.EXE
		@F D @S 283 @O ECOLOGY.FUN
		@F E @S 1340577 @O ECOLOGY.GRP
		@F F @S 9077 @O 3.SND
		@F G @S 8123 @O 7.SND
		@F H @S 8011 @O 8.SND
		@F I @S 1973 @O 10.SND
		@F J @S 6779 @O 11.SND
		@F K @S 21451 @O 12.SND
		@F L @S 6955 @O 13.SND
		@F M @S 5451 @O 14.SND
		@F N @S 6587 @O 15.SND
		@F O @S 21408 @O 16.SND
		@F P @S 21920 @O 17.SND
		@F Q @S 3925 @O 18.SND
		@F R @S 11589 @O 19.SND
		@F S @S 11365 @O 20.SND
		@F T @S 16117 @O 0.SND
		@F U @S 9163 @O 1.SND
		@F V @S 10443 @O 2.SND
		@F W @S 8319 @O 49.SND
		@F X @S 19333 @O 21.SND
		@F Y @S 13445 @O 22.SND
		@F Z @S 9157 @O 23.SND
		@F 00 @S 9893 @O 24.SND
		@F 10 @S 23236 @O 25.SND
		@F 20 @S 7173 @O 26.SND
		@F 30 @S 8677 @O 27.SND
		@F 40 @S 3435 @O 28.SND
		@F 50 @S 1595 @O 29.SND
		@F 60 @S 3131 @O 30.SND
		@F 70 @S 10879 @O 31.SND
		@F 80 @S 12927 @O 32.SND
		@F 90 @S 7328 @O 4.SND
		@F A0 @S 5707 @O 5.SND
		@F B0 @S 8395 @O 6.SND
		@F C0 @S 8411 @O 70.SND
		@F D0 @S 8575 @O 72.SND
		@F E0 @S 34921 @O 76.SND
		@F F0 @S 6747 @O 33.SND
		@F G0 @S 1435 @O 34.SND
		@F H0 @S 4293 @O 35.SND
		@F I0 @S 14405 @O 36.SND
		@F J0 @S 11647 @O 37.SND
		@F K0 @S 4987 @O 38.SND
		@F L0 @S 11647 @O 39.SND
		@F M0 @S 13951 @O 40.SND
		@F N0 @S 3637 @O 42.SND
		@F O0 @S 19689 @O 43.SND
		@F P0 @S 6761 @O 45.SND
		@F Q0 @S 7673 @O 46.SND
		@F R0 @S 10623 @O 48.SND
		@F S0 @S 13387 @O 77.SND
		@F T0 @S 11019 @O 78.SND
		@F U0 @S 4299 @O 9.SND
		@F V0 @S 11531 @O 52.SND
		@F W0 @S 18815 @O 53.SND
	@EndLib
@EndDisk


@DefineDisk
	@Label = "Disk #2"
	@BeginLib ECO.002
		@F 0 @A 53.SND
		@F 1 @S 49279 @O 54.SND
		@F 2 @S 5189 @O 55.SND
		@F 3 @S 9343 @O 57.SND
		@F 4 @S 6015 @O 58.SND
		@F 5 @S 13183 @O 59.SND
		@F 6 @S 16361 @O 60.SND
		@F 7 @S 603 @O 61.SND
		@F 8 @S 16511 @O 63.SND
		@F 9 @S 3883 @O 65.SND
		@F A @S 13022 @O 67.SND
		@F B @S 8795 @O 69.SND
		@F C @S 2145 @O ECOLOGY.NME
		@F D @S 755456 @O ECOLOGY.STK
		@F E @S 99 @O ECOLOGY.SWI
		@F F @S 142551 @O GAMEFILE.DAT
		@F G @S 201 @O GAMEFILE.IDX
		@F H @S 54210 @O ICONLIB.ICN
		@F I @S 511731 @O SBMP
		@F J @S 474 @O SBMP.IDX
		@F K @S 701 @O SND.IDX
		@F L @S 24 @O STACKTAB
		@F M @S 4 @O START
		@F N @S 137579 @O SYSFONT.FNT
		@F O @S 3075 @O VOCA.HAS
		@F P @S 25 @O README.BAT
		@F Q @S 6364 @O README.DOC
		@F R @S 724 @O SGAME.DAT
	@EndLib
@EndDisk

@SetConfig
		@AskOverWrite
  @Buffers = 20
  @Files = 25
@EndConfig

@Finish

	@ChDrive @OutDrive
	@ChDir "@SubDir"

  @Write("@OutDrive:@SubDir\\eco.bat", "wt", "@@echo off\n@OutDrive:\ncd @OutDrive:@SubDir\necology")
  @Write("@OutDrive:\\eco.bat", "wt", "@@echo off\n@OutDrive:\ncd @OutDrive:@SubDir\necology")
/*
@GetOption
//	@LocalWindow(4,35)
	@Option 100 = "MicroSoft Mouse"
	@Option 101 = "Logitech Mouse"
	@Option 102 = "I don't know!"
@Cls
	   Select the type of Mouse on your Computer






	If you do not know the answer select the last option;
  The setup routine would chose the most likely answer;

@EndOption
@GetOption
//	@LocalWindow(4,35)
	@Option 100 = "Sound Blaster"
	@Option 101 = "Ad-Lib"
	@Option 102 = "None"
	@Option 103 = "I don't know!"
@Cls
	   Select the type of Sound Card on your Computer






	If you do not know the answer select the last option;
  The setup routine would chose the most likely answer;

@EndOption
*/
// TO BE DONE HERE:
/* Now set up the *.cfg file here with the selected options above */

	@Spawn("Setup")
	@Cls

	The installation of @Name is now finished.
 Enter ECO at the DOS prompt to start

	@Pause

@EndFinish

// end-of-file
