/*
 * INSTALL.DAT
 *
 * Project: MathAce
 * Version: 1.0
 *
 * This INSTALL.DAT was automatically generated by DDB
 */

@DefineProject
	@Name = "MathAce (tm)"
	@Version = "1.01"

	@Subdir = "\\MATHACE"
	@OutDrive = C
	@InDiskBell = 1
	@Terse
@EndProject

@DefineVars
	@Integer @DiskRequired = 4098000
@EndVars

@Display
	@Cls
			     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.

    Each question this program asks you has a default answer.  If the
    default answer is correct, press the ENTER key in response to the
    question. Otherwise, type the answer and then press the ENTER key.

    If you make a mistake while typing, press the BACKSPACE key and
    then retype the answer.

	@Pause
@EndDisplay

@Display
	@IF (@CPU < 286)
	We are sorry, but your computer is an 80@CPU.  @Name Requires
	at least an 80286 IBM PC, TANDY or Compatible to run.

	@Pause
	@Abort
	@Endif
@EndDisplay

@Display
	@IF (((@OSMajor * 100) + @OSMinor) < 330)
	We are sorry, but your computer is running DOS version @OSMajor.@OSMinor
	@Name requires DOS version 3.30 or higher.

	@Pause
	@Abort
	@Endif
@EndDisplay

@Display
	@IF ((@VideoCard != 'V') || (@VideoGraph < 8))
	We are sorry, but your computer does not have the proper monitor
	to run &Name.  @Name needs a least a 16 Color VGA monitor with a
	resolution of at least 640x480.

	@Abort
	@Endif
@EndDisplay

	@If (@RAMAvail < 540K)
	   @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 version @Version needs a least a 540K of available RAM to run
	with Music.  If you have at least 520K of RAM, @Name will run with
	sound effects, digitized speech, but no Music.	@Name needs at
	least 520K of available RAM to load.
	Please see the README file on disk 1 for tips on increasing your
	available memory.


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

@GetOption
	@LocalWindow(5,35)
	@Option 100 = "Fast Track Install"
	@Option 101 = "Standard Installation"
	@Option 102 = "Custom Installation"

	@Cls
	Select the type of installation you wish to perform.





   The "Fast Track Install" installs @Name in the directory @SubDir
   of drive @OutDrive: (@OutDrive:@SubDir).  It will also have @Name autoscan
   for your sound card when you start the program.

   Standard Installation allows you to select the drive and directory in
   which to install @Name.  It will also set up @Name to
   autoscan for your sound board.

   Custom Installation allows you to select the drive and directory in
   which @Name is installed.  It will also prompt you to specify
   whether or not you have a sound card and, if you do, which I/O port is
   assigned to your sound card.  This option is only needed if you suspect
   that you may have another hardware board (such as a network card) with
   an I/O address between 210h and 260h.

@EndOption

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

SelectDrive:
@ClearOption(1)

@GetOutDrive
	@Suppress A
	@Suppress B
	@Cls

	On which disk drive do you wish to install @Name?













@EndOutDrive

@GetSubdir
	@Cls
	Now you should specify the disk destination subdirectory.  The
	subdirectory is the location on your disk where @Name will
	be installed.  If you don't know what a "subdirectory" is, you
	probably need not worry about it; just press the Enter key
	to select the default subdirectory, @SubDir.


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


CheckFreeSpace:

@If (@DiskFree @OutDrive < @Eval(@DiskRequired))
   @GetOption
	@LocalWindow(7,40)
	@Name needs at least @Eval(@DiskRequired/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 SelectDrive
@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

@If ((100 [= @Option) || (101 [= @Option))
   @GoTo DoDisks
@EndIf

@GetOption
   @LocalWindow(10,40)
   @Option 200 = "No Sound Blaster(tm) or Compatable Installed"
   @Option 207 = "Allow program to Autoscan for sound card"
   @Option 201 = "Sound board I/O port address set to 210h"
   @Option 202 = "Sound board I/O port address set to 220h"
   @Option 203 = "Sound board I/O port address set to 230h"
   @Option 204 = "Sound board I/O port address set to 240h"
   @Option 205 = "Sound board I/O port address set to 250h"
   @Option 206 = "Sound board I/O port address set to 260h"

@Cls
	Select the appropriate option for your harware configuration.
	See the readme.doc file for more information on selecting the
	I/O port for your sound card.
@EndOption

DoDisks:
@DefineDisk
	@Label = "MathAce Disk #1"
	@BeginLib MATHACE.001
		@F 0 @S 727727 @O GAME.EXE
		@F 1 @S 1806 @O MATHACE.EXE
		@F 2 @S 675979 @O LAB.EXE
		@F 3 @S 130 @O MAP2KEY.TXT
		@F 4 @S 96 @O CATNAMES.TXT
		@F 5 @S 186 @O CONCNAMS.TXT
		@F 6 @S 86 @O FLANNAMS.TXT
		@F 7 @S 95 @O R9DATA.TXT
		@F 8 @S 70 @O MAP1KEY.TXT
		@F 9 @S 104 @O COINKEY.TXT
		@F A @S 10 @O MISSED.TXT
		@F B @S 1158 @O AREAKEY.TXT
		@F C @S 171 @O R8DATA.TXT
		@F D @S 170 @O WORLNAMS.TXT
		@F E @S 139 @O CARTKEY.TXT
		@F F @S 78 @O COORKEY.TXT
		@F G @S 80 @O FCATKEY.TXT
		@F H @S 203 @O TES2KEY.TXT
		@F I @S 72 @O VENNKEY.TXT
		@F J @S 205 @O CLOCKEY.TXT
		@F K @S 260 @O FPIEKEY.TXT
		@F L @S 776 @O SHAPKEY.TXT
		@F M @S 956 @O SUBNAMES.TXT
		@F N @S 215 @O RITHNAMS.TXT
		@F O @S 15648 @O T1DATA.TXT
		@F P @S 16579 @O T2DATA.TXT
		@F Q @S 21406 @O T3DATA.TXT
		@F R @S 20 @O SAVED.TXT
		@F S @S 4685 @O M1DATA.TXT
		@F T @S 14243 @O M2DATA.TXT
		@F U @S 145 @O R1DATA.TXT
		@F V @S 338 @O R2DATA.TXT
		@F W @S 1356 @O R3DATA.TXT
		@F X @S 393 @O R5DATA.TXT
		@F Y @S 279 @O R6DATA.TXT
		@F Z @S 171 @O R7DATA.TXT
		@F 00 @S 1765 @O TRV1KEY.TXT
		@F 10 @S 2115 @O TRV3KEY.TXT
		@F 20 @S 8 @O GLOBALS.TXT
		@F 30 @S 31306 @O M3DATA.TXT
		@F 40 @S 43647 @O M4DATA.TXT
		@F 50 @S 36844 @O M6DATA.TXT
		@F 60 @S 849 @O R4DATA.TXT
		@F 70 @S 2203 @O TRV2KEY.TXT
		@F 80 @S 43868 @O M5DATA.TXT
		@F 90 @S 41230 @O M7DATA.TXT
		@F A0 @S 64096 @O MIDI.ARC
		@F B0 @S 10016 @O ROBOT.ARC
		@F C0 @S 318314 @O SNDEFCT.ARC
		@F D0 @S 704242 @O DSPEECH.ARC
		@F E0 @S 46008 @O CICONS.ARC
		@F F0 @S 21514 @O GICONS.ARC
		@F G0 @S 8910 @O IMPRINTS.ARC
		@F H0 @S 4030 @O HLPTXT.ARC
		@F I0 @S 1984 @O ANIMPICT.ARC
		@F J0 @S 16246 @O RGRAPHS.ARC
		@F K0 @S 23408 @O REFS.ARC
		@F L0 @S 27372 @O DICONS.ARC
		@F M0 @S 20302 @O VIRUS.ARC
		@F N0 @S 46024 @O HGRAPHS.ARC
		@F O0 @S 466458 @O BIGSCRN.ARC
	@EndLib
@EndDisk


@DefineDisk
	@Label = "MathAce Disk #2"
	@BeginLib MATHACE.002
		@F 0 @A BIGSCRN.ARC
		@F 1 @S 210308 @O CARDS.ARC
		@F 2 @S 16592 @O LICONS.ARC
		@F 3 @S 53814 @O HFIELDS.ARC
		@F 4 @S 3328 @O MT.PAT
		@F 5 @S 64 @O MT.PAL
		@F 6 @S 3072 @O MT.SET
		@F 7 @S 38 @O README.BAT
		@F 8 @S 7088 @O README.DOC
		@F 9 @S 50 @O HISCORE.FLD
	@EndLib
@EndDisk

@SetConfig
	@AskOverwrite
	@Files=30
@EndConfig

@Finish
	@ChDrive @OutDrive

	@ChDir ("\\")
	@Write("@OutDrive:\\ma.bat", "wt", "@@echo off\n")
	@Write("@OutDrive:@SubDir\\ma.bat", "wt", "@@echo off\n")
	@Write("@OutDrive:\\ma.bat", "at", "@OutDrive:\n")
	@Write("@OutDrive:\\ma.bat", "at", "cd @SubDir\n")
   @If ((100 [= @Option) || (101 [= @Option) || (207 [= @Option))
	@Write("@OutDrive:\\ma.bat", "at", "mathace\n")
	@Write("@OutDrive:@SubDir\\ma.bat", "at", "mathace\n")
   @EndIf
   @If (200 [= @Option)
	@Write("@OutDrive:\\ma.bat", "at", "mathace /na\n")
	@Write("@OutDrive:@SubDir\\ma.bat", "at", "mathace /na\n")
   @EndIf
   @If (201 [= @Option)
	@Write("@OutDrive:\\ma.bat", "at", "mathace /p1\n")
	@Write("@OutDrive:@SubDir\\ma.bat", "at", "mathace /p1\n")
   @EndIf
   @If (202 [= @Option)
	@Write("@OutDrive:\\ma.bat", "at", "mathace /p2\n")
	@Write("@OutDrive:@SubDir\\ma.bat", "at", "mathace /p2\n")
   @EndIf
   @If (203 [= @Option)
	@Write("@OutDrive:\\ma.bat", "at", "mathace /p3\n")
	@Write("@OutDrive:@SubDir\\ma.bat", "at", "mathace /p3\n")
   @EndIf
   @If (204 [= @Option)
	@Write("@OutDrive:\\ma.bat", "at", "mathace /p4\n")
	@Write("@OutDrive:@SubDir\\ma.bat", "at", "mathace /p4\n")
   @EndIf
   @If (205 [= @Option)
	@Write("@OutDrive:\\ma.bat", "at", "mathace /p5\n")
	@Write("@OutDrive:@SubDir\\ma.bat", "at", "mathace /p5\n")
   @EndIf
   @If (206 [= @Option)
	@Write("@OutDrive:\\ma.bat", "at", "mathace /p6\n")
	@Write("@OutDrive:@SubDir\\ma.bat", "at", "mathace /p6\n")
   @EndIf
	@Write("@OutDrive:\\ma.bat", "at", "cd \\ \n")

	@ChDir "@SubDir"
	@if (@System ("if exist ma.exe del ma.exe"))
	@endif
	@cls
	Installation of @Name is completed.

	Bit-Bot is waiting for your help in trapping the Virus
	and saving the Global Math Archives.


	Type:  README
	   to view the readme.doc file with last minute notes and
	   technical tips.

	Type:  MA
	   to start Math Ace.

	@Pause
@EndFinish

/* end-of-file */
