/*
 * INSTALL.DAT
 *
 * Project: Micro League Baseball IV
 * Version: 1.00
 *
 */
 
@DefineProject
	@Name = "Micro League Baseball IV"
	@Version = "1.00"
 
   @Subdir = "\\MLB4"
   @OutDrive = C
 
   @Requires @HardDisk
@EndProject
 
@Display
   @Cls
 
	   @Name, Version @Version
 
   This program requires the following:
 
      640K Conventional Memory with a minimum of 580,000 bytes
	 available to run the game program
 
      2.2M of Hard Disk space available to load the game program
 
   If either of the above requirements are not available,
      please press [ESC] to abort the installation.
 
      3.1M of additional Hard Disk space for digitized videos (optional)
	 The digitized player action can not be viewed if videos
	 are not installed.
 
   @Pause
   @Cls
 
   This program will install:
   @Name, Version @Version
   on your computer system and verify the integrity of the
   distribution disk(s).  You may press the [Esc] key at any time to
   abort the installation.
 
   INSTALL will ask you several questions about your computer
   hardware and then give you the option of installing digitized
   videos and different sound drivers.
 
   Each question 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
 
@If (@RamTotal < 630K)
   @Display
      @Cls
      This machine does not have enough RAM
      to run the @Name game.
 
 
	   RAM Installed (in bytes): @RAMTotal
 
 
      Total Conventional RAM memory must total 640K.
 
      Press  [ESC]  to abort installation.
 
      @Pause
   @EndDisplay
@EndIf
 
@If (@RamAvail < 567K)
   @Display
      @Cls
 
	   RAM Available (in bytes): @RAMAvail
 
		   ****** Warning ******
 
      This machine presently does not have enough RAM
	 available to run the @Name game.
 
		   *********************
 
      Please remove TSR's and DOS options from your
      Config.sys/Autoexec.bat files to obtain the required
      580,000 bytes before attempting to run this program.
 
      @Pause
   @EndDisplay
@EndIf
 
@If (@VideoCard != 'V')
   @Display
      @Cls
	      The current video mode number: @VideoMode
			 Video adapter card: @If(@VideoCard == 'M') MONO @ElseIf
			(@VideoCard == 'C') COLOR @ElseIf
			(@VideoCard == 'V') VGA @ElseIf
			(@VideoCard == 'E') EGA @EndIf
			      Video display: @If(@VideoMonitor == 'C') COLOR @ElseIf
		       (@VideoMonitor == 'M') MONO @ElseIf
		       (@VideoMonitor == 'H') ENHANCED @EndIf
		 The amount of video RAM is: @VideoRAM K
    The highest resolution graphics mode is: @VideoGraph
 
 
		   ****** Warning ******
 
      This machine does not have a VGA adapter.
      @Name game
      will not run on this machine.
 
      Press  [ESC]  to abort installation.
 
      @Pause
   @EndDisplay
@EndIf
 
@SetConfig
   @AskOverwrite
   @Files = 20
@EndConfig
 
@GetOutDrive
   @Cls
 
   On which disk drive do you wish to install @Name?
 
   @Suppress A
   @Suppress B
 
 
 
 
 
 
 
 
 
 
 
@EndOutDrive
 
@GetSubdir
   @Cls
   Now you need to specify the disk destination subdirectory.  The
   subdirectory is the location on your disk where the 
   @Name system will be installed.  If you don't know what a 
   "subdirectory" is, you probably need not worry about it, and 
   should just press Enter.
 
   @Prompt = "Which subdirectory ([Enter] = @Subdir) ?"
@EndSubdir
 
@If (@Exists "@OutDrive:\\@Subdir\\MLB4.EXE")
 
   @Delete ("@OutDrive:\\@SubDir\\*.adv")
   @Delete ("@OutDrive:\\@SubDir\\*.com")
   @Delete ("@OutDrive:\\@SubDir\\*.snd")
 
   @If (!@Exists "@OutDrive:\\@Subdir\\VIDEOS.VGA")
      @If (@DiskFree @OutDrive < 3100000)
	 @Display
	 @Cls
 
	    The selected output disk drive only has
	    @DiskFree @OutDrive bytes.
	    3,100,000 bytes need to be available
	    to store the digital videos file.
 
	    @Pause
	 @EndDisplay
      @EndIf
   @EndIf
 
@Else
   @If (@DiskFree @OutDrive < 2100000)
      @Display
	 @Cls
	 The selected output disk drive only has
	 @DiskFree @OutDrive bytes.
	 2,100,000 bytes need to be available
	 to store the @Name
	 game files and 3,100,000 additional
	 bytes need to be available
	 to store the video files, if installed.
 
	 @Pause
	 @Abort
      @EndDisplay
   @EndIf
 
   @If (@DiskFree @OutDrive < 5300000)
      @Display
	 @Cls
	 The selected output disk drive only has
	 @DiskFree @OutDrive bytes.
     5,300,000 bytes need to be available
	 if you plan to also install the video
	 files.
 
	 @Pause
      @EndDisplay
   @EndIf
@EndIf
 
@GetGroups
   @Cls
	Do you want to install the digitized videos on this computer?
 
 
 
	@Set y = "Yes,        install digitized videos"
	@Set n = "No,  do NOT install digitized videos"
 
 
@EndGroups
 
@GetGroups
   @Cls
	Select the appropriate sound system installed on your
	   computer, or if none is installed, press Enter.
 
 
	@Set b = "Internal IBM Speaker Background"
	@Set f = "Internal IBM Speaker Foreground"
	@Set a = "Adlib Personal Music System"
	@Set m = "Covox Sound Master"
	@Set c = "Covox Speech Thing"
	@Set v = "Covox Voice Master"
	@Set d = "Digispeech Adapter"
	@Set e = "Echo II, from Street Electronics"
	@Set g = "IBM 1 bit"
	@Set l = "Lantastic Voice Adapter"
	@Set p = "ProAudio Spectrum"
	@Set r = "Roland MT32 music driver"
	@Set s = "Sound Blaster"
	@Set q = "Sound Blaster Pro"
	@Set x = "Tandy EX/TX/SX/HX, PC jr. internal chip"
	@Set t = "Tandy SL/TL internal chip"
	@Set h = "Walt Disney Sound Source"
 
 
@EndGroups
 
@DefineDisk
	@Label = "MLBIV"
	@BeginLib MLB4.001
		@F SOUNDA.ABT @S 1439
		@F SOUNDB.ABT @S 2122
		@F SOUNDC.ABT @S 1882
		@F SOUNDD.ABT @S 193
		@F SOUNDH.ABT @S 24024
		@F SOUNDI.ABT @S 22230
		@F SOUNDK.ABT @S 2147
		@F SOUNDL.ABT @S 4604
		@F SOUNDM.ABT @S 3699
		@F MIDPAK.AD @S 5122
	@F ADLIB.ADV @S 13919             @GROUP a
	@F MT32MPU.ADV @S 10432           @GROUP r
	@F PASFM.ADV @S 14395             @GROUP p
	@F PCSPKR.ADV @S 7886             @GROUP bcdefghlmv
	@F SBFM.ADV @S 13968              @GROUP s
	@F SBPFM.ADV @S 14404             @GROUP q
	@F TANDY.ADV @S 8156              @GROUP tx
	@F ADLIB.COM @S 2560              @GROUP a
	@F CVXSND.COM @S 2016             @GROUP c
	@F DIGISP.COM @S 1952             @GROUP d
	@F ECHOII.COM @S 2192             @GROUP e
	@F IBM1BIT.COM @S 2208            @GROUP g
	@F IBMBAK.COM @S 2720             @GROUP b
	@F IBMSND.COM @S 2256             @GROUP fr
	@F LANTSND.COM @S 2480            @GROUP l
	@F MIDPAK.COM @S 12910
	@F PAUDIO.COM @S 3648             @GROUP p
	@F SBLASTER.COM @S 3488           @GROUP qs
	@F SMSND.COM @S 2016              @GROUP m
	@F SOURCE.COM @S 2064             @GROUP h
	@F TANEXTX.COM @S 2448            @GROUP x
	@F TANSLTL.COM @S 1872            @GROUP t
	@F VMSND.COM @S 2016              @GROUP v
	@F MLB4.EXE @S 596143
    @EndLib
@EndDisk


@DefineDisk
    @Label = "MLBIV"
    @BeginLib MLB4.002
	@F MLB4.EXE @A MLB4.EXE
	@F UCOMP.EXE @S 9456
	@F AGPROF.MP @S 841
	@F CONSERV.MP @S 841
	@F DEFAULT.MP @S 841
	@F DEFAULT.PBK @S 8217
	@F ALLTIME.SEA @S 91508
	@F MLB1992.SEA @S 91508
	@F CAMDEN.STD @S 92526
    @EndLib
@EndDisk


@DefineDisk
    @Label = "MLBIV"
    @BeginLib MLB4.003
	@F CAMDEN.STD @A CAMDEN.STD
	@F DODGER.STD @S 92526
	@F FENWAY.STD @S 95006
	@F WRIGLEY.STD @S 92526
	@F BKGDATA.VGA @S 259286
	@F FRAMES.VGA @S 351257
	@F IMAGES.VGA @S 21105
	@F PLRANIM.VGA @S 52618
	@F TITLE.VGA @S 115288
	@F VIDEOS.VGA @S 3060130          @GROUP y
    @EndLib
@EndDisk


@DefineDisk
    @Label = "MLBIV"
    @BeginLib MLB4.004
	@F VIDEOS.VGA @A VIDEOS.VGA       @GROUP y
    @EndLib
@EndDisk


@DefineDisk
    @Label = "MLBIV"
    @BeginLib MLB4.005
	@F VIDEOS.VGA @A VIDEOS.VGA       @GROUP y
		@F MUSICA.XMI @S 894
		@F MUSICB.XMI @S 356
		@F MUSICC.XMI @S 376
		@F MUSICD.XMI @S 866
		@F MUSICE.XMI @S 4160
		@F MUSICF.XMI @S 1504
	@EndLib
@EndDisk


@Finish
 
   @ChDrive @OutDrive
   @ChDir "@SubDir"
 
   @Rename ("*.adv","midpak.adv")
   @Rename ("midpak.com","midpak.bin")
   @Rename ("*.com","soundrv.com")
   @Rename ("midpak.bin","midpak.com")
   @Spawn  ("ucomp sounda.abt")
   @Spawn  ("ucomp soundb.abt")
   @Spawn  ("ucomp soundc.abt")
   @Spawn  ("ucomp soundd.abt")
   @Spawn  ("ucomp soundh.abt")
   @Spawn  ("ucomp soundi.abt")
   @Spawn  ("ucomp soundk.abt")
   @Spawn  ("ucomp soundl.abt")
   @Spawn  ("ucomp soundm.abt")
   @Delete ("*.abt")
   @Delete ("ucomp.exe")
   @Rename ("*.8sn", "*.snd")
 
   Installation of @Name game files is now finished.
 
   @Pause
@EndFinish
 
/* end-of-file */
