@DefineProject
	@Name = "Envisions DynaScan32 Install"
	@Version = ".90A"
	@Subdir = "@windowsdir"
	@OutDrive = @windowsdrive
	@immediate = 1
@EndProject

@definevars
@drive @sd = C
@dir @sp ="ENV"
@Integer @red = @RGB(255,0,0)
@Integer @Blue = @RGB(0,0,255)
@Integer @green = @RGB(0,0,255)
@Integer @white = @RGB(255,255,255)
@Integer @Black = @RGB(0,0,0)
@endvars
@BackgroundMode(3,@blue,@black)


@Display
	@Cls
	
	Welcome to Envisions Solutions Technology, Inc. latest
	and greatest installation. We will ask you as few as
	possible questions to ease you into the wonderful world
	of 32Bit scanning. You can usually just hit the "ENTER"
	key on the keyboard to accept the defaults. This will
	install all the software drivers needed to scan graphics
	from your scanner and 32Bit TWAIN based imaging
	applications.

	Caution: Every attempt has been made to leave your 16Bit
	TWAIN drivers intact. If your OLD scanning applications
	are failing reinstall DynaScan 2.22 (16Bit).
	
	@Pause
@EndDisplay                   

@DefineDisk
	@Label = "Disk #1"
	@BeginLib DDB.001
		@F 0 @S 9702
			@O @windowsdrive:@windowsdir\DM16S.DLL
		@F 1 @S 15872
			@O @windowsdrive:@windowsdir\DM32.DLL
		@F 2 @S 22944
			@O @windowsdrive:@windowsdir\TWAIN.DLL
		@F 3 @S 104448
			@O @windowsdrive:@windowsdir\TWAIN32.DLL
		@F 4 @S 73728
			@O @windowsdrive:@windowsdir\UFILE32.DLL
		@F 6 @S 730112
			@O @windowsdrive:@windowsdir\twain32\dyna\DYNA32.DS
		@F 7 @S 1495
			@O @windowsdrive:@windowsdir\DYNA132.INI
		@F 8 @S 1221
			@O @windowsdrive:@windowsdir\DYNA132D.INI
		@F 9 @S 326228
			@O @windowsdrive:@windowsdir\32BITDLL.DLL
		@F A @S 1459
			@O @windowsdrive:@windowsdir\DYNASCAN.INI
	@EndLib
@EndDisk

@definedisk
	@LABEL = "dISK #1"
	@f windoze2.exe
		@o @windowsdrive:@windowsdir\windoze2.exe
	@F README.TXT
		@O @windowsdrive:@windowsdir\ENVISION\README.TXT

@EndDisk


@getoption
	@DLGCTRLSIZE(0,21,6,24,50)        
	 
		@cls
		Lastly, Envisions supports your scanner on five
		types of SCSI cards currently available on the
		market.

		The first through fourth is the interface card that
		came with your scanner, this is usually referenced
		as a GSII, UDS-IS10, UDS-IS11 or UDS-IS12. Use one
		of these selections if you installed that card and
		have plugged in the scanner to the port on that card.
		They can be identified by looking at the cards silk-
		screening.
		
		
		The last option would be if you currently have a SCSI
		Adaptec card that has ASPI drivers. If you have the 
		proper cables and termination you can run the 
		scanner from this existing SCSI board. Selecting 
		this option will install the ASPI scanner driver. 
		WARNING: YOU MUST HAVE ASPI DRIVERS LOADED TO
		OPERATE THE SCANNER IN THIS MANNER.

		@option 52 = "Setup for a UDS-IS10 Switched Card"
		@option 53 = "Setup for a UDS-IS11 Switchless Card"
		@option 54 = "Setup for a UDS-IS12 Switchless Card"
		@Option 55 = "Setup for a Adaptec SCSI Card"
@setoption(52)
@endoption                             
@DefineDisk
	@Label = "DISK #1"
	@BEGINLIB DDB.001
		@F 5 @S 14076 @option 52
			@O @windowsdrive:@windowsdir\vdynad.386
		@F c @S 15628 @option 53
			@O @windowsdrive:@windowsdir\dynais11.386
		@F d @S 14604 @option 54
			@O @windowsdrive:@windowsdir\dynais12.386
		@F i @S 74 @option 54
			@O @windowsdrive:@windowsdir\dynadrv.INI
		@F 5 @S 14617 @option 55
			@O @windowsdrive:@windowsdir\vdynad.386
		@F f @S 74 @option 55
			@O @windowsdrive:@windowsdir\dynaDRV.INI
		
@ENDLIB
@enddisk

@DefineDisk
	@Label = "Disk #1"

		@F is10drv.ini @option 52
			@O @windowsdrive:@windowsdir\dynadrv.INI
		@F is11drv.ini @option 53
			@O @windowsdrive:@windowsdir\dynadrv.INI

@enddisk

@definevars
@qstring @cgroup = "[CreateGroup(ENVISIONS)]"
	@QSTRING @icon2 = "[AddItem(@windowsdrive:@windowsdir\\envision\\twain.hlp, TWAIN Help, @windowsdrive:@windowsdir\\winhelp.exe)]"
	@QSTRING @icon3 = "[AddItem(@windowsdrive:@windowsdir\\envision\\readme.TXT, Read ME 1st, @windowsdrive:@windowsdir\\NOTEPAD.EXE)]"
@endvars

@finish

@if (52 [=@option)        
@cls

       
	DynaScan installation was a success!
	
	Windows will now be restarted so the Scanner can 
	be immediately used with any 32Bit TWAIN based
	application like PHOTOSHOP 3.0!
	
	Remember to unlock the scanner optical restraint 
	before attempting to scan. It can be found on the 
	underportion of the scanner, at the back of the 
	scanner or underneath the scanner lid, please see 
	the Operations User Guide for your scanner model
	for complete details. If you are using the 
	Transparency adapter you should unlock the two 
	optical restraints on the under portion of the 
	Transparency unit also.

@chdrive(@windowsdrive)
@chdir("@subdir")
@winexec("@windowsdrive:@windowsdir\\windoze2.exe", 5)
@setINI ("386Enh", "device", "vdynad.386", "system.ini")
@ProgramManager("@cgroup@icon2@icon3")

@WINDOWSEXIT (1)

@ENDIF

@if (53 [=@option)        
@cls

       
	DynaScan installation was a success!
	
	Windows will now be restarted so the Scanner can 
	be immediately used with any 32Bit TWAIN based
	application like PHOTOSHOP 3.0!
	
	Remember to unlock the scanner optical restraint 
	before attempting to scan. It can be found on the 
	underportion of the scanner, at the back of the 
	scanner or underneath the scanner lid, please see 
	the Operations User Guide for your scanner model
	for complete details. If you are using the 
	Transparency adapter you should unlock the two 
	optical restraints on the under portion of the 
	Transparency unit also.

@Pause
@chdrive(@windowsdrive)
@chdir("@subdir")
@winexec("@windowsdrive:@windowsdir\\windoze2.exe", 5)
@setINI ("386Enh", "device", "dynais11.386", "system.ini")
@ProgramManager("@cgroup@icon2@icon3")

@WINDOWSEXIT (1)

@ENDIF
@if (54 [=@option)        
@cls

       
	DynaScan installation was a success!
	
	Windows will now be restarted so the Scanner can 
	be immediately used with any 32Bit TWAIN based
	application like PHOTOSHOP 3.0!
	
	Remember to unlock the scanner optical restraint 
	before attempting to scan. It can be found on the 
	underportion of the scanner, at the back of the 
	scanner or underneath the scanner lid, please see 
	the Operations User Guide for your scanner model
	for complete details. If you are using the 
	Transparency adapter you should unlock the two 
	optical restraints on the under portion of the 
	Transparency unit also.

@Pause
@chdrive(@windowsdrive)
@chdir("@subdir")
@winexec("@windowsdrive:@windowsdir\\windoze2.exe", 5)
@setINI ("386Enh", "device", "dynais12.386", "system.ini")
@ProgramManager("@cgroup@icon2@icon3")
@WINDOWSEXIT (1)
@ENDIF

@if (55 [=@option)        
@cls       
	DynaScan installation was a success!
	
	Windows will now be restarted so the Scanner can 
	be immediately used with any 32Bit TWAIN based
	application like PHOTOSHOP 3.0!
	
	Remember to unlock the scanner optical restraint 
	before attempting to scan. It can be found on the 
	underportion of the scanner, at the back of the 
	scanner or underneath the scanner lid, please see 
	the Operations User Guide for your scanner model
	for complete details. If you are using the 
	Transparency adapter you should unlock the two 
	optical restraints on the under portion of the 
	Transparency unit also.

@chdrive(@windowsdrive)
@chdir("@subdir")
@winexec("@windowsdrive:@windowsdir\\windoze2.exe", 5)
@setINI("386Enh", "device", "vdynad.386", "system.ini")
@ProgramManager("@cgroup@icon2@icon3")
@WINDOWSEXIT (1)
@ENDIF
@exit
