/*
 * INSTALL.DAT
 *
 * Project: MD-Challenger
 * Version: 2.0
 *
 * This INSTALL.DAT was automatically generated by DDB
 *
 * Dummy space which can be removed to allow this file to be changed
 * without having to redo the distribution disks due to this file becoming
 * too large to fit:
 * xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 * xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 * xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 * xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 * xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 * xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 * xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 * xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 */

@DefineProject
	@Name = "MD-Challenger"
	@Version = "2.0"
	@Subdir = "\\MDCHAL"
	@OutDrive = C
	@Verify
	@OutDiskBell = 1
	@InDiskBell = 1
@EndProject

@DefineVars
	@Qstring @WIN = ""
	@Qstring @Approve = ""
@EndVars

@Display
	Installation of MD-Challenger takes about 15-30 minutes.
	You may press the {Esc} key at any time to abort the installation.

	The installation process will verify your computer's operating 
	system (DOS 3.3 or higher), hard disk space (10 megabytes program 
	space; 11 M required during installation) and RAM (640 K with at 
	least 500 K free). About 1.5 megabytes free hard disk space is 
	needed to install over a previous version of MD-Challenger.
	(Install will delete a preexisting version before attempting
	installation. Score files will not be deleted.)
 
	Install will create a subdirectory for the MD-Challenger program 
	files called "mdchal". It will then expand the compressed files on
	the floppy disks while copying them to the mdchal subdirectory.

	@Pause
@EndDisplay

@Display
	During the installation process you may be asked for permission
	to modify your AUTOEXEC.BAT and CONFIG.SYS files. Unless you know
	of a good reason not to, it is best to allow these files to be 
	modified. These file changes help insure that MD-Challenger 
	will work properly on your system. Your original files will be 
	saved as AUTOEXEC.BAK and CONFIG.BAK, and can be restored in 
	case problems result from the changes made to these files.

	Remember that changes made to these files do not take effect until
	your computer is rebooted. If these files are changed, you should
	reboot your computer after the installation process, before running
	MD-Challenger.

	@Pause
@EndDisplay

@Display
	@If (((@OSMajor * 100) + @OSMinor) < 330)
		@Name requires DOS version 3.3 or higher.
		Please contact your computer manufacturer or
		any software dealer to obain a more current
		version of DOS before installing MD-Challenger.
		
		@Pause
		@Abort
	@EndIf
@EndDisplay

@If (@RAMAvail < 500K)
	@Display
		Your computer does not have sufficient free RAM
		memory to run @Name. If your computer does not
		have at least 640K of RAM, see your hardware
		dealer to obtain a memory upgrade.
		If your computer DOES have at least 640 K of RAM,
		you will need to delete some RAM-resident software
		(often loaded by your config.sys or autoexec.bat
		files when your computer boots up), to free up at
		least 500 K of RAM for programs.
		You can determine your computers total and free RAM 
		(after exiting the install program) by entering "mem"
		if you have DOS 5.0 or higher, or by running the DOS
		CHKDSK command (at the DOS prompt, type in "chkdsk" 
		(without the quote marks), and press the {Enter} key.
		DOS will check your hard disk and memory, printing a
		report on the screen. The last two lines report the 
		total and free RAM.)
		
		@Pause
		@Abort
	@EndDisplay
@EndIf

GetDrive:
@GetOutDrive
	@Suppress A
	@Suppress B
	@Cls
	On which hard disk drive do you wish to install @Name?
	If you are uncertain which drive to choose, try drive C.
@EndOutDrive

@GetString @Approve
	You have chosen drive @OutDrive. Is this the drive you wish to use?
	
	@Prompt = "Please press the {y} or {n} key and press {Enter}."
@EndString

@If ("@Approve" == "y")
	@Goto Cont1
	@Else @Goto GetDrive
@EndIf

Cont1:
@If (@Removable)
    @Display
	    You can't install @Name onto a floppy drive!
	    Please select a hard disk drive (drive C or higher).

	    @Pause
	    @Goto GetDrive
    @EndDisplay
@EndIf

@Delete ("@OutDrive:\\@Subdir\\mdc.exe")
@Delete ("@OutDrive:\\@Subdir\\?mrhfere.*")
@Delete ("@OutDrive:\\@Subdir\\indices\\*.*")

@Display
	@If (@DiskFree @OutDrive < 10500000)
		The selected disk drive only has @DiskFree @OutDrive bytes.
		MD-Challenger occupies about 10 megabytes of free disk space,
		and requires about 11 M for the installation process. Please
		remove some unused files or programs from your hard disk and
		install again. (You can determine the amount of free disk
		space by using the DOS "dir" command. This will show a list
		of the files in the current disk directory, followed by the
		amount of free disk space.)

		INSTALL WILL NOW EXIT DUE TO INSUFFICIENT DISK SPACE.


		@Pause
		@Abort
	@EndIf
@EndDisplay

@GetString @WIN
	Will you be running MD-Challenger under
	Microsoft Windows? (Press the {n} key if unsure.)
	
	@Prompt = "Please press {y} or {n} and press {Enter}."
@EndString

@If ("@WIN" == "y")
	@Goto RunWin
@EndIf

@SetConfig
	@AskOverwrite
	@Buffers = 20
	@Files = 50
@EndConfig
@Goto Cont2

RunWin:
@SetConfig
	@AskOverwrite
	@Files = 100
@EndConfig

Cont2:
@SetAutoexec
	@AskOverwrite
	@Path = "@OutDrive:\\@Subdir"                   
@EndAutoexec

/*Insert this line in the first DefineDisk segment before 1st @BeginLib:        
	@File INDEX4_0.TXT @S 17 @O INDICES\INDEX4_0.TXT 
*/

@DefineDisk
	@Label = "Disk #1"
	@File INDEX4_0.TXT @S 17 @O INDICES\INDEX4_0.TXT 
	@BeginLib DDB.001
		@F INDEX4_0.DBF @S 130198 @O INDICES\INDEX4_0.DBF
		@F INDEX4.DBF @S 927206 @O INDICES\INDEX4.DBF
		@F INDEX4.TXT @S 2953034 @O INDICES\INDEX4.TXT
		@F TOPICS.DBF @S 19004 @O INDICES\TOPICS.DBF
		@F TOPICS.NTX @S 6144 @O INDICES\TOPICS.NTX
		@F INDEX4_0.NTX @S 129024 @O INDICES\INDEX4_0.NTX
		@F QUESTION.NTX @S 2048 @O INDICES\QUESTION.NTX
		@F QUESTCAT.NTX @S 69632 @O INDICES\QUESTCAT.NTX
		@F INDEX4_K.NTX @S 106496 @O INDICES\INDEX4_K.NTX
		@F QUESSEQU.NTX @S 60416 @O INDICES\QUESSEQU.NTX
		@F QUESTION.DBF @S 98163 @O INDICES\QUESTION.DBF
		@F QUESTION.DBT @S 3493768 @O INDICES\QUESTION.DBT
	@EndLib
@EndDisk


@DefineDisk
	@Label = "Disk #2"
	@BeginLib DDB.002
		@F QUESTION.DBT @A INDICES\QUESTION.DBT
		@F HELP.DBF @S 84003 @O INDICES\HELP.DBF
		@F REFS.DAT @S 203698 @O INDICES\REFS.DAT
		@F REFS.DBF @S 42952 @O INDICES\REFS.DBF
		@F COL.BAT @S 17 @O COL.BAT
		@F MDCTUTOR.DBD @S 177393 @O MDCTUTOR.DBD
		@F LCD.BAT @S 30 @O LCD.BAT
		@F MDCHAL.ICO @S 766 @O MDCHAL.ICO
		@F MDCHAL2.ICO @S 766 @O MDCHAL2.ICO
		@F MDCHAL.PIF @S 545 @O MDCHAL.PIF
		@F MDC.EXE @S 571550 @O MDC.EXE
		@F 1JDOEANE.MEM @S 16988 @O 1JDOEANE.MEM
		@F 1JDOEANE.DBF @S 349 @O 1JDOEANE.DBF
		@F RTDEMO2.EXE @S 120225 @O RTDEMO2.EXE
		@F MDC-DEMO.DBD @S 99912 @O MDC-DEMO.DBD
	@EndLib
@EndDisk

@Finish
	@ChDrive @OutDrive
	@ChDir "@SubDir"
	@Copy("col.bat", "mdchal.bat")
	@If (@VideoCard != 'M')
		@Goto Cont3
	@EndIf
	@If (@VideoGraph != 0)
		@Goto Cont3
	@EndIf
	@Copy("lcd.bat", "mdchal.bat")
	
Cont3:
	Installation complete!

	Happy computing with MD-Challenger. We hope you find it very 
	useful in meeting the ongoing challenge of staying current and 
	providing your patients with the best possible medical care.

				    Challenger Corporation

	TO START MD-CHALLENGER:
	1) Be sure you are on the MD-Challenger drive: type "@OutDrive:" (without
	   the quotes) and press the {Enter} key.
	2) Log onto the MD-Challenger subdirectory: type "cd \mdchal"
	   (without the quotes) and press the {Enter} key.
	3) Type "mdchal" and press {Enter} to start the program.

	You may wish to jot down these instructions, turn on your printer
	and press the {PrintScreen} key, or read QUICK START in the manual
	for instructions. NOTE: If your config.sys or autoexec.bat file was 
	modified, you must reboot (or restart) your computer for those changes 
	to take effect. Press any key to clear the screen and to return to DOS.

	@Pause
@EndFinish
