/*--------------------------------------------------------------------------
  File Name: install.dat

  History: Robert Gilsdorf (February 4, 1993) File created
   
  Description: This is a script file that automates the installation process 
	       of the Fahrenheit Windows Driver.
---------------------------------------------------------------------------*/
@DefineProject       
	@Name      = "Fahrenheit Windows Setup"
	@Version   = "1.0"
	@Immediate = 1 
	@Subdir    = "\\"
	@OutDrive  = C
@EndProject

/*---------------------------- Define String -----------------------------*/
@DefineVars
 @Qstring @msgDDI       = "Display Driver Installation"
 @Qstring @msgDrive     = "Please Select Destination Drive:"
 @Qstring @msgDir       = "Please Enter a Directory name or select ENTER to accept default."
 @Qstring @msgPSAV      = "Please Select Version:"
 @Qstring @msgPSAA      = "Please Select An Application:"
 @Qstring @msgDDNE      = "does not exist."
 @Qstring @msgCont      = "If you choose to continue, one will be created."
/*  @Qstring @msgNoFile    = "Your input directory may be missing some files:" */
 @Qstring @msgNoFile    = "Some files are missing in your input directory:"
 @Qstring @msgNPI       = "may not be properly installed."
 @Qstring @Reenter      = " Enter Again"
 @Qstring @Cont         = "  Continue  "
 @Qstring @NameWin      = "Microsoft Windows"
 @Qstring @NameCADsys   = "Computer Aided Design"
 @EndVars

/*--------------------- Introduction Message -----------------------------*/
@Display
@If (@CheckCard ("c000", "00F6", "Fahrenheit VA") == 1)
  @Goto MenuJumper
@Elseif (@CheckCard ("c000", "011c", "Fahrenheit 1280") == 1)
  @Goto MenuJumper
@Elseif (@CheckCard ("c000", "00F6", "Fahrenheit 1280 Plus") == 1)
  @Goto MenuJumper
@Else
 @Cls

		ллллллллллллллллл ERROR лллллллллллллллл
		л                                      л
		л  An Orchid Fahrenheit video adapter  л
		л  is not detected in your system.     л
		л                                      л
		л  If you choose to continue this      л
		л  installation, the driver will not   л
		л  respond correctly.                  л
		л                                      л
		л  PRESS F3 TO ABORT INSTALLATION      л
		л                                      л
		л                                      л
		л                                      л
		лллллллллллллллллллллллллллллллллллллллл
 
 @Pause
@Endif


    

MenuJumper:
@cls
@If (@CheckCard ("C000", "00F6", "Fahrenheit VA") == 1)





		   Orchid Fahrenheit VA Series Video Adapter


		      Windows Driver Installation Program


			       Disk Release 4.6




  @Pause
@Elseif (@CheckCard ("C000", "011C", "Fahrenheit 1280") == 1)
 





		      Orchid Fahrenheit 1280 Video Adapter


		      Windows Driver Installation Program


			       Disk Release 4.6





  @Pause

@Elseif (@CheckCard ("C000", "00F6", "Fahrenheit 1280 Plus") == 1)
 





		   Orchid Fahrenheit 1280 Plus Video Adapter


		      Windows Driver Installation Program


			       Disk Release 4.6





  @Pause


@Cls
@Endif

@If (@Chk2e8)

		лллллллллллллллл Warning ллллллллллллллл
		л                                      л
		л  Fax Modem OR Serial Port OR Scanner л
		л  Adapter is utlizing the I/O port of л
		л  Fahrenheit Video Adapter.           л
		л                                      л
		л  Please reconfigure your Fax Modem   л
		л  OR Serial Port OR Scanner at other  л
		л  I/O port address, i.e. Avoid I/O    л
		л  port address 2e8.                   л
		л                                      л
		л                                      л
		л  You may continue the Installation,  л
		л  and reconfigure your I/O port       л
		л  address after Installation is       л
		л  completed.                          л
		л                                      л
		лллллллллллллллллллллллллллллллллллллллл
@Pause
@Endif

@EndDisplay



/*--------------------- Drive C: check for Installation-----------------*/

@If ("@Indrive"=="C")
    @Display

    The Install Program must be run from a Floppy Drive.  Please use the  
    <ESC> key and start over from the Floppy drive.

     @Pause
    @Abort
   @EndDisplay
@EndIf


/*--------------- Windows 3.x Driver Installation (1000) -----------------*/
MenuWin:

@EnableF1(0)
@GetOutDrive
 @Suppress A
 @Suppress B 
 @Cls
 @NameWin @msgDDI
 @msgDrive
@EndOutDrive
@If (@Esc) @Goto MenuWin @EndIf

@GetSubdir
 @Default = "\\WINDOWS"    
 @Cls
 @NameWin @msgDDI
 @msgDir


@EndSubdir
@If (@Esc) @Goto MenuWin @EndIf

@ClearOption(1)
@ClearOption(2)
@EnableF1(0)
@GetOption
 @LocalWindow (10,39) 
 @If (@Exists "@OutDrive:\\@SubDir" == 0)
  @Cls
  @NameWin @msgDDI
  @OutDrive:@SubDir @msgDDNE
  @msgCont
 @ElseIf ((@Exists "@OutDrive:\\@SubDir\\winver.exe" == 0) ||
	  (@Exists "@OutDrive:\\@SubDir\\win.ini" == 0))
  @Cls
  @NameWin @msgDDI
  @msgNoFile
  @OutDrive:@SubDir
  @NameWin @msgNPI
 @Else
  @Goto CopyFileWin
 @EndIf
 @Option 1 = "@Reenter"
 @Option 2 = "@Cont"
@EndOption
@If ((@Esc) || (1 [= @Option))
  @Goto MenuWin
@Endif


CopyFileWin:
@DefineDisk
@Label = "Disk #1"
 @BeginLib FAHDRVVA.001  
 
 @F orchidf.cpl  @O @OutDrive:\@SubDir\SYSTEM\*.*
 @F orchidf.hlp  @O @OutDrive:\@SubDir\SYSTEM\*.* 
 @F orchidf.2gr  @O @OutDrive:\@SubDir\SYSTEM\*.*  
 @F orchidf.drv  @O @OutDrive:\@SubDir\SYSTEM\*.*
 @F orchidv.drv  @O @OutDrive:\@SubDir\SYSTEM\*.*
 @F orchid1.drv  @O @OutDrive:\@SubDir\SYSTEM\*.*
 @F magnify.exe  @O @OutDrive:\@SubDir\SYSTEM\*.*
 @F orckey.dll   @O @OutDrive:\@SubDir\SYSTEM\*.*

 @If (@CheckFile ("@OutDrive:\\@SubDir\\winver.exe", "207", "Windows Version 3.00"))
  @F orchid.exe  @O @OutDrive:\@SubDir\*.*
  @F orchd30.inf @O @OutDrive:\@SubDir\SYSTEM\orchidf.inf
  @F orchd30.386 @O @OutDrive:\@SubDir\SYSTEM\*.* 
  @F orchd30.3gr @O @OutDrive:\@SubDir\SYSTEM\*.* 
 @Else
  @F orchidf.inf @O @OutDrive:\@SubDir\SYSTEM\*.* 
  @F orchidf.386 @O @OutDrive:\@SubDir\SYSTEM\*.* 
  @F orchidf.3gr @O @OutDrive:\@SubDir\SYSTEM\*.*
  @F fva.exe     @O @OutDrive:\@SubDir\SYSTEM\*.*
 @Endif




@EndLib 
@EndDisk





@Display

 @Cls
 @System "@OutDrive:\\@SubDir\\SYSTEM\\fva.exe"
 @Delete ("@OutDrive:\\@SubDir\\SYSTEM\\fva.exe")
 @Cls

@EndDisplay
		      


 @If (@CheckCard ("0000", "04e8", "") == 0)
   @Goto MenuModify
 @Else
   @DefineDisk
    @Label = "Disk #1"
    @BeginLib FAHDRVVA.001 
   
    @F orchnote.exe @O C:\orchid\*.* 
    @F vmp_mm.dll   @O C:\orchid\*.* 
    @F vctl.dll     @O C:\orchid\*.* 
    @F orchhook.dll @O C:\orchid\*.* 
    @F ovn.hlp      @O C:\orchid\*.*
    @F magnify.exe  @O C:\orchid\*.*
    @F orcsnd.drv   @O @OutDrive:\@SubDir\SYSTEM\*.*
    @F sndsetup.cpl @O @OutDrive:\@SubDir\SYSTEM\*.*
    @F sndsetup.hlp @O @OutDrive:\@SubDir\SYSTEM\*.*
    @F voicente.grp @O @OutDrive:\@SubDir\*.* 
    @EndLib 
   @EndDisk
 @Endif
 
MenuModify: 
@Display
 @If (@CheckFile ("@OutDrive:\\@SubDir\\winver.exe", "207", "Windows Version 3.00"))
  Modifying WIN.INI of Windows 3.0.
  @DeleteStr ("@OutDrive:\\@SubDir\\win.ini", "windows", "run", "orchid.exe")
  @WriteFile ("@OutDrive:\\@SubDir\\win.ini", "windows", "load=", "orchid.exe", "APPEND")
 @Elseif (@Exists "@OutDrive:\\@SubDir\\orchid.ini" == 0)
  Modifying WIN.INI of Windows 3.1
  @WriteFile ("@OutDrive:\\@SubDir\\win.ini", "windows", "run=", "control.exe", "APPEND")
 @Elseif (@Exists "@OutDrive:\\@SubDir\\progman.orc" == 0)
  @CatFiles ("@OutDrive:\\@SubDir\\progman.ini", "@OutDrive:\\@SubDir\\progman.orc")
 @Endif
 
 @If (@CheckCard ("0000", "04e8", "") == 1)
  @WriteFile ("@OutDrive:\\@SubDir\\progman.ini", "groups", "Group99=", "@OutDrive:\\@SubDir\\voicente.grp", "APPEND")
  @WriteFile ("@OutDrive:\\@SubDir\\system\\setup.inf","Installable.Drivers","FahrenheitVA", "FahrenheitVA = x:orcsnd.drv, \"wave\", \" Orchid Fahrenheit VA\", ,, ", "REPLACE") 
  @WriteFile ("@OutDrive:\\@SubDir\\system.ini", "drivers", "Wave=", "WAVE=ORCSND.DRV", "REPLACE")
 @Endif
 
 @If (@CheckCard ("c000", "00F6", "Fahrenheit VA") == 1)
   @Delete ("@OutDrive:\\@SubDir\\SYSTEM\\orchidf.drv")
   @Cls
 @Endif
 
 @If (@CheckCard ("C000", "00F6", "Fahrenheit 1280 Plus") == 1)
   @Delete ("@OutDrive:\\@SubDir\\SYSTEM\\orchidf.drv")
   @Cls
 @Endif

 @If (@CheckCard ("c000", "011c", "Fahrenheit 1280") == 1)
   @Delete ("@OutDrive:\\@SubDir\\SYSTEM\\orchidv.drv")
   @Cls
 @Endif

@EndDisplay
@Help ("@ExePath\\install.hlp", "HelpWin", "EndWin")
@Display
@Cls




***************************************************************************
*** The installation of the Orchid Window HyperDriver is now completed. ***
***************************************************************************


@Pause
@EndDisplay

