@DefineDisk
	@Label = "DynaScan Disk #2"
	@BeginLib DYNA301.002

@If (@WinMajor >= 4)
                @F 0 @A TWAIN_32\DYNA_32.DS
                @F 1 @S 658432 @O TWAIN32\DYNA32.DS
                @F 2 @S 1313 @O DYNADEF.INI
                @F 3 @S 1621 @O DYNA32.INI
                @F 4 @S 1301 @O DYNA32D.INI
                @F 5 @S 339424 @O DYNASCAN.DLL
                @F 6 @S 1383 @O DYNASCAN.INI
                @F 7 @S 87328 @O TWAIN.DLL
                @F 8 @S 77312 @O TWAIN_32.DLL
                @F 9 @S 47664 @O TWUNK_16.EXE
                @F A @S 104448 @O TWAIN32.DLL
                @F B @S 68608 @O TWUNK_32.EXE
                @F C @S 73728 @O UFILE32.DLL
@EndIf
                @F D @S 30208 @O ENVISION\ENVISION.TRS
                @F E @S 29164 @O ENVISION\ASPI2DOS.SYS
                @F F @S 73 @O ENVISION\ASPIDRV.INI
                @F G @S 545792 @O ENVISION\DYNASCAN.DS
                @F H @S 71 @O ENVISION\IS10DRV.INI
                @F I @S 71 @O ENVISION\IS11DRV.INI
                @F J @S 27648 @O ENVISION\PXTWAIN.TRS
                @F K @S 3897 @O ENVISION\SCANMGR.INI
                @F L @S 30208 @O ENVISION\ENVISION.PXW
                @F L @S 30208 @O PIXTRAN\ENVISION.PXW
                @F M @S 7100 @O ENVISION\SCANMGR.LST
                @F N @S 1569 @O ENVISION\SCANNER.DAT
                @F O @S 15424 @O ENVISION\TWAIN8B.8BA
                @F P @S 12174 @O ENVISION\ENVISION.PX_
                @F P @S 12174 @O PIXTRAN\ENVISION.PX_
                @F Q @S 44032 @O ENVISION\TEST.EXE
                @F R @S 326228 @O 32BITDLL.DLL
                @F S @S 4608 @O WINDOZE2.EXE
                @F T @S 8628 @O SCANNER.GID
                @F U @S 14848 @O ENV32FT.DLL
                @F V @S 15872 @O DM32.DLL
                @F W @S 11264 @O ENV16FT.DLL
                @F X @S 8108 @O ENV16UT.DLL
                @F Y @S 9702 @O DM16S.DLL
                @F Z @S 15360 @O ENV32UT.DLL
                @F 00 @S 61440 @O DYNAFILE.DLL
                @F 10 @S 61440 @O UMAXFILE.DLL
                @F 20 @S 536143 @O SCANNER.HLP
                @F 30 @S 9584 @O WINSIZE2.DLL
	@EndLib
@EndDisk

@Copy ("@InDrive:\\INSTALL.APP", "@OutDrive:\\@SubDir\\ENVISION\\INSTALL.DAT")
@Copy ("@InDrive:\\SCANMGR.APP", "@OutDrive:\\@SubDir\\ENVISION\\SCANMGR.APP")
@Copy ("@InDrive:\\DISK.APP", "@OutDrive:\\@SubDir\\ENVISION\\DISK.ID")

@If (@WinMajor <= 3)
@Copy ("@InDrive:\\ENV10.31", "@OutDrive:\\@SubDir\\ENV10.386")
@Copy ("@InDrive:\\ENV11.31", "@OutDrive:\\@SubDir\\ENV11.386")
@EndIf

@If (@WinMajor >= 4)
@Copy ("@InDrive:\\ENV10.95", "@OutDrive:\\@SubDir\\ENV10.386")
@Copy ("@InDrive:\\ENV11.95", "@OutDrive:\\@SubDir\\ENV11.386")
@EndIf

@GetOption
@DlgCtrlSize (0,10,0,20,36)
@Cls
Please choose the interface card
you recieved with your scanner
from the list below.
 
@Option 10 = "UDS-IS10 (4 dip switches)"
@Option 11 = "UDS-IS11 (No Switches)"
@Option 12 = "Other (SCSI Adapter)"
@Option 13 = "Adaptec AVA-1505"

@EndOption

@If (10 [=@Option)
	@Copy ("@OutDrive:@SubDir\\ENVISION\\IS10DRV.INI", "@OutDrive:@SubDir\\dynadrv.ini")
        @Copy ("@OutDrive:@SubDir\\env10.386", "@OutDrive:@SubDir\\EnvIS10.386")
	@ChDrive (@OutDrive)
	@ChDir ("@SubDir")
	@WinExec ("@OutDrive:@SubDir\\windoze2.exe", 5)
	@SetINI ("386Enh", "Device", "EnvIS10.386", "system.ini")
@EndIf

@If (11 [=@Option)
	@Copy ("@OutDrive:@SubDir\\envision\\is11drv.ini", "@OutDrive:@SubDir\\dynadrv.ini")
	@Copy ("@OutDrive:@SubDir\\env11.386", "@OutDrive:@SubDir\\EnvIS11.386")
	@ChDrive (@OutDrive)
	@ChDir ("@SubDir")
	@WinExec ("@OutDrive:@SubDir\\windoze2.exe", 5)
	@SetINI ("386Enh", "Device", "EnvIS11.386", "system.ini")
@EndIf

@If (12 [=@Option)
	@Copy ("@OutDrive:@SubDir\\envision\\aspidrv.ini", "@OutDrive:@SubDir\\dynadrv.ini")
	@Display
	@Cls

	Please install the ASPI drivers
	supplied by the manufacturer of
	the SCSI Adapter before using
	using your scanner.

	@Pause
	@EndDisplay
@EndIf

@If (13 [=@Option)
	@Copy ("@OutDrive:@SubDir\\envision\\aspidrv.ini", "@OutDrive:@SubDir\\dynadrv.ini")

	@If (@WinMajor <= 3)
		@GetOption
		@Cls
		Please Select the I/O address
		and IRQ number you have the card
		configured to use.

		Note: Factory default jumper
		      settings are:
		      I/O 340h, IRQ 11.


		@Option 51 = "I/O 140h, IRQ 9"
		@Option 52 = "I/O 140h, IRQ 10"
		@Option 53 = "I/O 140h, IRQ 11"
		@Option 54 = "I/O 140h, IRQ 12"
		@Option 55 = "I/O 340h, IRQ 9"
		@Option 56 = "I/O 340h, IRQ 10"
		@Option 57 = "I/O 340h, IRQ 11"
		@Option 58 = "I/O 340h, IRQ 12"
		@EndOption

		@SetConfig
		@AskOverWrite

		@If (51 [=@Option)
			@device = "@OutDrive:\\@SubDir\\envision\\aspi2dos.sys /z /d /p140 /q9"
		@EndIf
		@If (52 [=@Option)
			@device = "@OutDrive:\\@SubDir\\envision\\aspi2dos.sys /z /d /p140 /q10"
		@EndIf
		@If (53 [=@Option)
			@device = "@OutDrive:\\@SubDir\\envision\\aspi2dos.sys /z /d /p140 /q11"
		@EndIf
		@If (54 [=@Option)
			@device = "@OutDrive:\\@SubDir\\envision\\aspi2dos.sys /z /d /p140 /q12"
		@EndIf
		@If (55 [=@Option)
			@device = "@OutDrive:\\@SubDir\\envision\\aspi2dos.sys /z /d /p340 /q9"
		@EndIf
		@If (56 [=@Option)
			@device = "@OutDrive:\\@SubDir\\envision\\aspi2dos.sys /z /d /p340 /q10"
		@EndIf
		@If (57 [=@Option)
			@device = "@OutDrive:\\@SubDir\\envision\\aspi2dos.sys /z /d /p340 /q11"
		@EndIf
		@If (58 [=@Option)
			@device = "@OutDrive:\\@SubDir\\envision\\aspi2dos.sys /z /d /p340 /q12"
		@EndIf

		@EndConfig
	@EndIf

	@If (@WinMajor >= 4)
		@Display
		@Cls

		Please Run the Hardware Installation
		Wizard to install the AVA-1505,
		under Windows 95.

		Select OK to continue.

		@Pause
		@EndDisplay
	@EndIf
@EndIf


@Finish
@ProgramManager("@CGroup[AddItem(@Icon1)][AddItem(@Icon2)][AddItem(@Icon3)]")

@Cls

Windows must now be
restarted to complete
your scanner installion.

PLEASE REMOVE DISKS
FROM FLOPPY DRIVES.

Select OK to reboot now.

@Pause

@WindowsExit (-1)
@EndFinish
@Exit
