@DefineProject
	@Name = "Envisions Application Setup"
        @Version = "1.1"
        @Subdir = "@WindowsDir"
        @OutDrive = @WindowsDrive
        @Immediate = 1
@EndProject


START:

@DefineVars
@Integer @Blue = @RGB(0,0,255)
@Integer @Black = @RGB(0,0,0)
@Dir @OPRO = "\\OMNIPRO"
@Dir @TXB = "\\TXBRIDGE"
@Dir @PS30 = "\\PHOTOSHP"
@Dir @WS40 = "\\WORDSCAN"
@Dir @TRPRO = "\\TRPRO"
@Dir @PAGE = "\\PAGEKEEP"
@Dir @OPR6 = "\\WINDOWS\\CAERE"
@EndVars

@BackGroundMode(3,@Blue,@Black)



@Display
        @Prompt = "Envisions Install"
	@Cls
	
        Welcome to Envisions Solutions Technology, Inc. 
	Application Support Setup Facility. You will be
        asked which application you wish to SETUP for
        your Envisions scanner. You will need to know
        which hard drive and which directory the
        application is installed. If you nedd to
        determine this information, select Exit to
        return to Windows.
	
	@Pause

@EndDisplay                   

@GetOption
        @Cls

        Please select an application to setup:

        @Option 1 = "Caere OmniPage 5"
        @Option 2 = "Xerox TextBridge"
        @Option 3 = "Adobe PhotoShop 3.0x"
        @Option 4 = "Caere OmniPage 6"
        @Option 5 = "Caere Wordscan 4"
        @Option 6 = "ExperVision TypeReader"
        @Option 7 = "Caere PageKeeper"
        @Option 8 = "Exit"

@EndOption

@If (1 [=@Option)

        @GetOutDrive

        @Cls
        Which Drive Is Omnipage 5?

        @EndOutDrive

        @GetSubDir @OPRO

        @Cls

        Which Directory is OmniPage 5 Installed?

        @EndSubDir

        @If (@DirExists("@OutDrive:@OPRO"))

                @Copy ("@WindowsDrive:@WindowsDir\\ENVISION\\SCANMGR.LST", "@OutDrive:@OPRO\\SCANMGR.LST")
                @Goto DONE
        @EndIf

@Goto ERROR
@EndIf

@If (2 [=@Option)

        @GetOutDrive

        @Cls

        Which Drive is TextBridge Installed?

        @EndOutDrive

        @GetSubDir @TXB

        @Cls

        Which Directory is TextBridge Installed?

        @EndSubDir

        @If (@DirExists("@OutDrive:@TXB"))
                @Copy ("@WindowsDrive:@WindowsDir\\ENVISION\\ENVISION.PXW", "@OutDrive:\\@TXB\\BIN\\ENVISION.PXW")
                @Goto DONE
        @EndIf

@Goto ERROR

@EndIf

@If (3 [=@Option)

        @GetOutDrive

                @Cls

                Which Drive is Adobe PhotoShop 3.0 installed?

        @EndOutDrive

        @GetSubDir @PS30

                @Cls

                Which Directory is Adobe PhotoShop 3.0 Installed?

        @EndSubDir

        @If (@DirExists("@OutDrive:@PS30"))
                @Copy ("@WindowsDrive:@WindowsDir\\ENVISION\\TWAIN8B.8BA", "@OutDrive:@PS30\\PLUGINS\\TWAIN8B.8BA")
                @Goto DONE
        @EndIf

@Goto ERROR

@EndIf


@If (4 [=@Option)
@If (@DirExists ("@WindowsDrive:@WindowsDir\\CAERE"))
@Copy ("@WindowsDrive:@WindowsDir\\ENVISION\\SCANMGR.APP", "@WindowsDrive:@WindowsDir\\CAERE\\SCANMGR.LST")
@Display
@Cls

Please insert disk #6 of your OmniPage Pro 6.0
Installation diskette.

Make sure the write protect tab is covering
the hole on the diskette.

Select OK to continue.

@EndDisplay

@GetOutDrive

@Cls
Which Drive is Disk# 6 in?
@EndOutDrive
@If (@DirExists ("@OutDrive:\\DRIVER"))
@Copy ("@WindowsDrive:@WindowsDir\\ENVISION\\ENVISION.PX_", "@OutDrive:\\DRIVER\\ENVISION.PX_")

@Goto DONE

@EndIf
@EndIf
@EndIf

@Goto ERROR


@if (5 [=@option)
@getoutdrive
@cls
Which Drive is WordScan 4.0 Installed?
@endoutdrive
@getsubdir @ws40
@cls

Which Directory is WordScan 4.0 Installed?

@endsubdir
@endif

@if (6 [=@option)
@getoutdrive
@cls
Which drive Is TypeReader Installed?
@endoutdrive
@getsubdir @trpro
@cls

Which Directory is Typereader Installed?

@endsubdir
@endif

@if (7 [=@option)
@getoutdrive
@cls
Which drive Is Pagekeeper Installed?
@endoutdrive
@getsubdir @page
@cls

Which directory is Pagekeeper Installed?

@endsubdir
@endif

@DefineDisk
	@Label = "DISK #1"
                @f scanmgr.ini @option 4
                        @o @windowsdrive:\@windowsdir\caere\scanmgr.ini
                @f dynascan.ds @option 4
                        @o @windowsdrive:\@windowsdir\twain\dynascan.ds
                @f scanner.dat @option 5
                        @o @outdrive:\@ws40\scanner.dat
                @f pxtwain.trs @option 6
                        @o @outdrive:\@trpro\pixtwain.trs
                @f envision.trs @option 6
                        @o @outdrive:\@trpro\envision.trs
                @f scanmgr.ini @option 7
                        @o @outdrive:\@page\scanmgr.ini
                @f dynascan.ds @option 7
                        @o @windowsdrive:\@windowsdir\twain\dynascan.ds


@enddisk

@IF (8 [=@OPTION)
@GOTO DONE
@ENDIF

DONE:

@Display

@cls       

Your application now has the neccesary files needed
to be used with your Envisions Scanner. You may need 
to tell your application to use the recently installed
scanner. Refer to the manual enclosed with the software
to finish configuration. Your Envisions scanner will be 
listed as an option.
	

Select OK to Continue.

@Pause

@EndDisplay

QUIT:

@Finish

@Cls


Select OK to Exit.


@Pause

@EndFinish

@Exit



ERROR:

@Display


Directory does not exist.


The Application is not installed or
you have specified the incorrect drive
or directory, please determine the
correct drive and directory or install
the desired application and try again.

Select OK to Continue.

@Pause

@EndDisplay

@Goto QUIT
