/*
 * INSTALL.DAT
 *
 * Project: BootMagic
 * Version: 6.00
 *
 * This INSTALL.DAT was automatically generated by DDB
 */

@DefineProject
	@Name = "BootMagic"
	@Version = "6.00"

	@Subdir = "\\"
	@OutDrive = Z
@EndProject

@Spawn("@StartUpDrive:winchk.exe")

@If ( @Spawn() < 0 )
    @Display      
	@Cls

        Unable to execute WINCHK.EXE. Make sure you have HIMEM.SYS
        loaded. Install cannot continue and will exit.


        @Pause
        @Exit
    @EndDisplay
@EndIf

@If ( @Spawn() != 1)
    @Display
	@Cls

	This program cannot be executed from a DOS box under Windows.
	You should install using to Windows install or reboot using
	DOS and use this DOS install again.

	@Pause
        @Exit
    @EndDisplay
@EndIf

@Spawn("@StartUpDrive:BMInst.Exe")

@If ( @Spawn() < 0 )
    @Display      
	@Cls

        Unable to execute BMINST.EXE. Make sure you have HIMEM.SYS
        loaded. Install cannot continue and will exit.


        @Pause
        @Exit
    @EndDisplay
@EndIf

@If ( @Spawn() != 0)
    @Display
		@Cls

        Your license does not include BootMagic.

        Please contact PowerQuest or your reseller
        to obtain a license for BootMagic.

        @Pause
		@Exit
    @EndDisplay
@EndIf

@Spawn("@StartUpDrive:viewer.exe license.txt /license")

@If ( @Spawn() < 0 )
    @Display      
	@Cls

        Unable to execute VIEWER.EXE. Make sure you have HIMEM.SYS
        loaded. Install cannot continue and will exit.


        @Pause
        @Exit
    @EndDisplay
@EndIf

@If ( @Spawn() != 1)
    @Display
	@Cls

        @Exit
    @EndDisplay
@EndIf

@Spawn("@StartUpDrive:pqboot.exe /inst")

@If ( @Spawn() < 0 )
    @Display      
	@Cls

        Unable to execute PQBOOT.EXE. Make sure you have HIMEM.SYS
        loaded. Install cannot continue and will exit.


        @Pause
    @EndDisplay
    @Exit
@EndIf

@If ( @Spawn() != 0)
    @Display
	@Cls

	BootMagic is already installed in another partition.  If you
	wish to reinstall BootMagic, then boot that partition before
	running the installation.  PQBOOT.EXE can help you select the
	correct partition to boot.

	@Pause
    @EndDisplay
    @Exit
@ElseIf ( @Exists("c:\\btmagic.pq\\odconfig") )
    @Display
	@Cls

	Before installing this version of BootMagic, please uninstall
	any previous version of BootMagic.

	@Pause
    @EndDisplay
@Else
    @Display
	@Cls

	This program will install: @Name version @Version
	on your computer system.  

	WARNING -- If you are running this install from Windows 3.x, 
	please exit the install, exit Windows and run the install 
	again without Windows running.






	@Pause
    @EndDisplay

    @OutDrive = C

    @DefineDisk
	@Label = "Disk #1"
	@BeginLib BTMAGIC.001
		@F README.TXT @S 5730 @O BTMAGIC.PQ\README.TXT
		@F BMHELP.DAT @S 65280 @O BTMAGIC.PQ\BMHELP.DAT
		@F PQBOOT.EXE @S 95394 @O BTMAGIC.PQ\PQBOOT.EXE
		@F BMCFG.EXE @S 575308 @O BTMAGIC.PQ\BMCFG.EXE
		@F BTMAGIC.IMG @S 196608 @O BTMAGIC.PQ\BTMAGIC.IMG
		@F CONFIG.BAT @S 73 @O BTMAGIC.PQ\CONFIG.BAT
		@F LOADBM.SYS @S 2305 @O BTMAGIC.PQ\LOADBM.SYS
		@F MBR.DAT @S 512 @O BTMAGIC.PQ\MBR.DAT
		@F PARTINFO.EXE @S 384844 @O BTMAGIC.PQ\PARTINFO.EXE
		@F MOUSE.COM @S 37681 @O BTMAGIC.PQ\MOUSE.COM
		@F WRPROG.EXE @S 71932 @O BTMAGIC.PQ\WRPROG.EXE
		@F DEFBASE.BMB @S 153718 @O BTMAGIC.PQ\BMP\DEFBASE.BMB
		@F DIGIT0.BMB @S 190 @O BTMAGIC.PQ\BMP\DIGIT0.BMB
		@F DIGIT1.BMB @S 190 @O BTMAGIC.PQ\BMP\DIGIT1.BMB
		@F DIGIT2.BMB @S 190 @O BTMAGIC.PQ\BMP\DIGIT2.BMB
		@F DIGIT3.BMB @S 190 @O BTMAGIC.PQ\BMP\DIGIT3.BMB
		@F DIGIT4.BMB @S 190 @O BTMAGIC.PQ\BMP\DIGIT4.BMB
		@F DIGIT5.BMB @S 190 @O BTMAGIC.PQ\BMP\DIGIT5.BMB
		@F DIGIT6.BMB @S 190 @O BTMAGIC.PQ\BMP\DIGIT6.BMB
		@F DIGIT7.BMB @S 190 @O BTMAGIC.PQ\BMP\DIGIT7.BMB
		@F DIGIT8.BMB @S 190 @O BTMAGIC.PQ\BMP\DIGIT8.BMB
		@F DIGIT9.BMB @S 190 @O BTMAGIC.PQ\BMP\DIGIT9.BMB
		@F ITEMBAD.BMB @S 948 @O BTMAGIC.PQ\BMP\ITEMBAD.BMB
		@F MENUHEAD.BMB @S 750 @O BTMAGIC.PQ\BMP\MENUHEAD.BMB
		@F PWDBE.BMB @S 2864 @O BTMAGIC.PQ\BMP\PWDBE.BMB
		@F PWDBIPE.BMB @S 3782 @O BTMAGIC.PQ\BMP\PWDBIPE.BMB
		@F PWDME.BMB @S 2774 @O BTMAGIC.PQ\BMP\PWDME.BMB
		@F PWDMEE.BMB @S 3398 @O BTMAGIC.PQ\BMP\PWDMEE.BMB
		@F PWDMIPE.BMB @S 3702 @O BTMAGIC.PQ\BMP\PWDMIPE.BMB
		@F PWDMIPEE.BMB @S 4316 @O BTMAGIC.PQ\BMP\PWDMIPEE.BMB
		@F STARTTMR.BMB @S 462 @O BTMAGIC.PQ\BMP\STARTTMR.BMB
		@F STPTIMER.BMB @S 170 @O BTMAGIC.PQ\BMP\STPTIMER.BMB
		@F BEOSCAN.ICO @S 766 @O BTMAGIC.PQ\ICO\BEOSCAN.ICO
		@F BOOTMAG.ICO @S 766 @O BTMAGIC.PQ\ICO\BOOTMAG.ICO
		@F CANTEMP.ICO @S 766 @O BTMAGIC.PQ\ICO\CANTEMP.ICO
		@F LINUXCA.ICO @S 766 @O BTMAGIC.PQ\ICO\LINUXCA.ICO
		@F MSDOS.ICO @S 766 @O BTMAGIC.PQ\ICO\MSDOS.ICO
		@F MSDOS2.ICO @S 766 @O BTMAGIC.PQ\ICO\MSDOS2.ICO
		@F MSDOS3.ICO @S 766 @O BTMAGIC.PQ\ICO\MSDOS3.ICO
		@F MSDOS4.ICO @S 766 @O BTMAGIC.PQ\ICO\MSDOS4.ICO
		@F MSDOS5.ICO @S 766 @O BTMAGIC.PQ\ICO\MSDOS5.ICO
		@F MSDOS6.ICO @S 766 @O BTMAGIC.PQ\ICO\MSDOS6.ICO
		@F MSDOSCA.ICO @S 766 @O BTMAGIC.PQ\ICO\MSDOSCA.ICO
		@F MSWIN.ICO @S 766 @O BTMAGIC.PQ\ICO\MSWIN.ICO
		@F MSWIN2.ICO @S 766 @O BTMAGIC.PQ\ICO\MSWIN2.ICO
		@F MSWIN32.ICO @S 766 @O BTMAGIC.PQ\ICO\MSWIN32.ICO
		@F MSWIN321.ICO @S 766 @O BTMAGIC.PQ\ICO\MSWIN321.ICO
		@F MSWINNT.ICO @S 766 @O BTMAGIC.PQ\ICO\MSWINNT.ICO
		@F MSWINNT2.ICO @S 766 @O BTMAGIC.PQ\ICO\MSWINNT2.ICO
		@F MSWINNT3.ICO @S 766 @O BTMAGIC.PQ\ICO\MSWINNT3.ICO
		@F MSWINNT4.ICO @S 766 @O BTMAGIC.PQ\ICO\MSWINNT4.ICO
		@F OS2.ICO @S 766 @O BTMAGIC.PQ\ICO\OS2.ICO
		@F OS22.ICO @S 766 @O BTMAGIC.PQ\ICO\OS22.ICO
		@F OS23.ICO @S 766 @O BTMAGIC.PQ\ICO\OS23.ICO
		@F OS24.ICO @S 766 @O BTMAGIC.PQ\ICO\OS24.ICO
		@F OS2CAN.ICO @S 766 @O BTMAGIC.PQ\ICO\OS2CAN.ICO
		@F PCDOS.ICO @S 766 @O BTMAGIC.PQ\ICO\PCDOS.ICO
		@F PCDOS2.ICO @S 766 @O BTMAGIC.PQ\ICO\PCDOS2.ICO
		@F PCDOSCA.ICO @S 766 @O BTMAGIC.PQ\ICO\PCDOSCA.ICO
		@F PQBOOT.ICO @S 766 @O BTMAGIC.PQ\ICO\PQBOOT.ICO
		@F PQBOOT2.ICO @S 766 @O BTMAGIC.PQ\ICO\PQBOOT2.ICO
		@F PQBOOT3.ICO @S 766 @O BTMAGIC.PQ\ICO\PQBOOT3.ICO
		@F RESCUE.ICO @S 766 @O BTMAGIC.PQ\ICO\RESCUE.ICO
		@F WARP-B.ICO @S 766 @O BTMAGIC.PQ\ICO\WARP-B.ICO
		@F WARP-BQ.ICO @S 766 @O BTMAGIC.PQ\ICO\WARP-BQ.ICO
		@F WARP.ICO @S 766 @O BTMAGIC.PQ\ICO\WARP.ICO
		@F WARP2.ICO @S 766 @O BTMAGIC.PQ\ICO\WARP2.ICO
		@F WARPCAN.ICO @S 766 @O BTMAGIC.PQ\ICO\WARPCAN.ICO
		@F WEBPAGE.ICO @S 766 @O BTMAGIC.PQ\ICO\WEBPAGE.ICO
		@F WIN95CA.ICO @S 766 @O BTMAGIC.PQ\ICO\WIN95CA.ICO
		@F WIN98CA.ICO @S 766 @O BTMAGIC.PQ\ICO\WIN98CA.ICO
		@F WINDOWS.ICO @S 766 @O BTMAGIC.PQ\ICO\WINDOWS.ICO
		@F WINDOWS2.ICO @S 766 @O BTMAGIC.PQ\ICO\WINDOWS2.ICO
		@F WINNTCA.ICO @S 766 @O BTMAGIC.PQ\ICO\WINNTCA.ICO
		@F WINOS2.ICO @S 766 @O BTMAGIC.PQ\ICO\WINOS2.ICO
		@F WINOS22.ICO @S 766 @O BTMAGIC.PQ\ICO\WINOS22.ICO
		@F MKRESCUE.BAT @S 431 @O BTMAGIC.PQ\MKRESCUE.BAT
		@F PATCH.CTL @S 3433 @O BTMAGIC.PQ\PATCH\PATCH.CTL
		@F PATCH.EXE @S 169883 @O BTMAGIC.PQ\PATCH\PATCH.EXE
		@F PATCH.FS @S 902 @O BTMAGIC.PQ\PATCH\PATCH.FS
		@F PATCH.HLP @S 62014 @O BTMAGIC.PQ\PATCH\PATCH.HLP
		@F PATCH.ICO @S 766 @O BTMAGIC.PQ\PATCH\PATCH.ICO
		@F PATCH.PIF @S 545 @O BTMAGIC.PQ\PATCH\PATCH.PIF
		@F PATCH.PRN @S 3766 @O BTMAGIC.PQ\PATCH\PATCH.PRN
		@F QUICKREF.TXT @S 22870 @O BTMAGIC.PQ\PATCH\QUICKREF.TXT
		@F README.TXT @S 2060 @O BTMAGIC.PQ\PATCH\README.TXT
		@F LICENSE.TXT @S 11028 @O BTMAGIC.PQ\LICENSE.TXT
		@F BTREADME.TXT @S 5730 @O BTMAGIC.PQ\BTREADME.TXT
		@F AUTOEXEC.BAT @S 368 @O BTMAGIC.PQ\AUTOEXEC.BAT
		@F CONFIG.SYS @S 65 @O BTMAGIC.PQ\CONFIG.SYS
	@EndLib
@EndDisk

    @Finish

	@Delete("c:\\btmagic.pq\\readme.txt")
	@Rename("c:\\btmagic.pq\\btreadme.txt", "readme.txt")
        @If (@Spawn("c:\\btmagic.pq\\wrprog.exe c:\\btmagic.pq\\loadbm.sys") == 0)

	All of the files for @Name have been installed.  

	Installation of @Name may cause some virus detection software 
	to give a false warning that a virus has been detected.  This 
	may happen once after installation, but	should only happen once. 
	Other warnings of virus detection software should be carefully 
	investigated.

/*
 *	Please read the README.TXT and LICENSE.TXT files found in the
 *	C:\BTMAGIC.PQ directory.  To make a rescue diskette, run the 
 *	MKRESCUE.BAT file from the C:\BTMAGIC.PQ directory.
 */

	Press any key to view the BootMagic REAME.TXT file...
	@Pause
	@Spawn("@StartUpDrive:viewer.exe readme.txt")

	@If ( @Spawn() < 0 )
		@Display      
		@Cls

			Unable to execute VIEWER.EXE. Make sure you have HIMEM.SYS
			loaded. Install cannot continue and will exit.


			@Pause
			@Exit
		@EndDisplay
	@EndIf

	@Cls

	To complete the installation of @Name, the configuration 
	program will now be executed.

	@Pause
        @ChDrive C
        @ChDir "\\btmagic.pq"
        @System("config -i")

	@Else

        Installation encounted some errors.  Error @Spawn() in WRPROG.EXE.

        @Pause

	@Endif

	@ChDrive @OutDrive
	@ChDir "@SubDir"
	@Delete("c:\\instrun.exe")

    @EndFinish
@EndIf
/* end-of-file */
