/*
 *  This program will install LABTECH NOTEBOOK UNIVERSAL to 
 *  a Hard Disk.
 */  	

@DefineProject
	@Name 		= "NOTEBOOK"
	@Version	= "7.3.0" 
	@Subdir 	= "\\NB"
	@OutDrive 	= C
	@Group      = "A"
    @Immediate = 1
@EndProject


@DefineVars
	@Qstring @UserName = ""
	@Qstring @Company = ""
	@Qstring @SN = ""
	@Integer @Modconf = 0
@EndVars

@Display
	@Cls

    Welcome to LABTECH INSTALLATION!

    This is a DOS INSTALLATION program, and should be run from DOS.
    Do not run this program from a WINDOWS DOS COMPATIBILITY BOX.

    This program will install LABTECH @Name on your PC. 
    Simply answer the questions when prompted by the program. If 
    you are not sure of the answer to any question, just press [Enter] 
    to accept the default. You must have at least 5 Megabytes of space 
    available on the Hard Disk Drive you choose to install it on.
    Typing the ( ESC ) key will abort the installation at any time. 


	@Pause
@EndDisplay

/*
 * Here we will prompt the end-user for two different types of installations.
 * Standard installation which will install everything.
 * Upgrade installation which will just install the new files. No video.
 */

@GetOption
    @LocalWindow(14,35)
    @Option 100 = "Standard Installation"
    @Option 101 = "Upgrade Installation"
    @Option 102 = "Driver Installation"
@Cls

 A "Standard Installation" will install the complete @Name system 
 including the Video Drivers.

 An "Upgrade Installation" will not install Video Drivers.   
 NOTE- YOU MUST HAVE VIDEO DRIVERS LOADED TO RUN @Name. The Upgrade
 Installation is meant for those who are updating to a newer version.

 A "Driver Installation" will allow you to replace your existing
 Hardware Devices with another Manufacturer's Devices.
 








 Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move the 
 gray highlight bar to the type of installation you prefer.  
 Press [Enter] to select that type of installation.

@EndOption

@If(101 [= @Option)
    @Goto Upgd
@ElseIf(102 [= @Option)
    @Goto Driver
@EndIf

@GetOption
    @LocalWindow(14,35)
    @Option 103 = "Install Video drivers"
    @Option 104 = "Do not Install Video Drivers"
@Cls
 "Install Video Drivers" will add the proper lines for your 
  Video Drivers to your CONFIG.SYS and AUTOEXEC.BAT.

 "Do not Install Video Drivers" will not add the proper lines 
  for your Video Drivers to your CONFIG.SYS and AUTOEXEC.BAT.

  NOTE - YOU MUST HAVE VIDEO DRIVERS LOADED TO RUN @Name.
 








  Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move 
  the gray highlight bar to your choice.  
  Press [Enter] to select.

@EndOption

@If(103 [= @Option)
    @Modconf = 1
@ElseIf(104 [= @Option)
    @Goto Upgd
@EndIf

Getdrive:
@FlushGroups()                          // Clear all groups

@GetOutDrive
    @Cls
    @Suppress A                         // Do not prompt for A:    
    @Suppress B                         // Do not prompt for B:

	Enter the Drive Letter where you want to install @Name.













	Note: You must install @Name on a hard drive.

	Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move
	the gray highlight bar to the disk drive you wish to install to 
	and then press the [Enter] key.

@EndOutDrive

@If (@Removable)
       @Display
       You can't install @Name onto a floppy drive!

       @Pause
       @Goto Getdrive
       @EndDisplay
@EndIf

Reselect:
@FlushGroups()
@GetSubdir
	@Cls

	Now you need to specify the destination subdirectory. The
	subdirectory is the location on your hard disk where the @Name 
	system will be installed. If you would like @OutDrive:@Subdir as your 
	subdirectory simply press the [ENTER] key. If you would like to 
	change the subdirectory,type backspace twice and enter your choice.
	 
	@Prompt = "Which subdirectory ?"
@EndSubdir

@If (@Exists("@OutDrive:\\@Subdir\\nb.com"))
   @GetGroups
   @LocalWindow(14,34)
   
   LABTECH @Name has detected a previous installation of @NAME
   in @OutDrive:@Subdir. You may continue the installation if you choose.
   However we suggest that you make this installation into a new
   subdirectory. If you continue your existing BDINDEX, BOARD_*, and
   LTN.CNF files will be saved as *.BAK files.

   @Set X = "Select new subdirectory"
   @Set Z = "Continue installation"

   Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move
   the gray highlight bar to the selection you prefer.  
   Press [Enter] to select.

   @EndGroups
@EndIf

@If     ('X' [=@Group)
        @Goto Reselect
@ElseIf ('Z' [=@Group)
     @Copy("@OutDrive:\\@Subdir\\b*.prn", "@OutDrive:\\@Subdir\\b*.bak")
     @Copy("@OutDrive:\\@Subdir\\ltn.cnf", "@OutDrive:\\@Subdir\\ltn.bak")
     @GetOption
        @LocalWindow(14,35)
        @Option 62 = "Delete *.TPL files"
        @Option 63 = "Do not delete *.TPL files"
     @Cls

     You now have the choice to Delete the *.TPL files from your 
     @Name directory. If you are changing Manufacturer's Drivers
     these files are not needed any longer. If you do not delete them
     you will have to scroll through them in the Hardware Installation.
     We suggest you delete them. 
 








     Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move the 
     gray highlight bar to the selection you prefer.  
     Press [Enter] to select.

@EndOption
    @If(62 [= @Option)
        @Delete("@OutDrive:\\@Subdir\\*.tpl")
    @ElseIf(63 [= @Option)
        @Goto Chdsk
    @EndIf
@EndIf
    
Chdsk:   
@If (@DiskFree @OutDrive < 5000000)
        @GetGroups
        @LocalWindow(18,40)
                
        Drive @OutDrive has only @DiskFree @OutDrive bytes of free space.
        @Name requires at least 5 megabytes for correct operation.

        The used space on drive @OutDrive may include an earlier version
        of @Name which will be replaced during this installation, if the
        older version of @Name exists in @Outdrive:@Subdir. If this is 
        the case, CONTINUE the installation. Otherwise, free up 5 megabytes 
        of space on drive @OutDrive: or re-specify the target drive.

        @Set A = "Continue Installation."
        @Set B = "Re-specify target drive."
        @Set C = "Abort Installation."

        Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move
        the gray highlight bar to the selection you prefer.  
        Press [Enter] to select.

        @EndGroups
@EndIf

@If     ('A' [= @Group)
        @Goto Continue
@ElseIf ('B' [= @Group)
        @Goto GetDrive
@ElseIf ('C' [= @Group)
        @Exit
@EndIf

Continue:

Coname:		
@GetString @Company
@LocalWindow(10,50)

						@Prompt = "What is your company name?"
@EndString

@If (@StrLen("@Company") < 2)
    @Display
    @LocalWindow(10,50)   

       Please enter your proper company name. Thank you!

       @Pause
       @Goto Coname
    @EndDisplay
@EndIf

Yourname:
@GetString @UserName
@LocalWindow(10,50)

						@Prompt = "What is your name?"
@EndString

@If (@StrLen("@UserName") < 2)
    @Display
    @LocalWindow(10,50)   

       Please enter your proper name. Thank you!

       @Pause
       @Goto Yourname
    @EndDisplay
@EndIf

Snnumber:
@GetString @SN
@LocalWindow(10,50)
						@Prompt = "What is your serial number?"
@EndString

@If (@StrLen("@SN") < 4)
    @Display
    @LocalWindow(10,50)   

       Please enter your proper serial number. Thank you!

       @Pause
       @Goto Snnumber
    @EndDisplay
@EndIf

		@Write("@OutDrive:\\name.inf", "wt", "@Company\n")
		@Write("@OutDrive:\\name.inf", "at", "@UserName\n")
	    @Write("@OutDrive:\\name.inf", "at", "SN-@SN\n")
	    @Write("@OutDrive:\\info.txt", "wt", "Name:@UserName\n")
		@Write("@OutDrive:\\info.txt", "at", "Company:@Company\n")
	    @Write("@OutDrive:\\info.txt", "at", "SN-@SN\n")
	    @Write("@OutDrive:\\info.txt", "at", "@Name is the software being installed on to your system.\n")

@Display


    @Cls

	Now your system configuration will be determined and stored in 
	@OutDrive:\INFO.TXT.  This file should be printed out and faxed 
	to Technical Support if the need arises. 

            
    @Pause
@EndDisplay
 
		@Write("@OutDrive:\\info.txt","at","The version of DOS on your operating system is @OSMAjor.@OSMinor.\n")
		@Write("@OutDrive:\\info.txt","at","Your EMM version number is @EMMMajor.@EMMMinor.\n")
		@Write("@OutDrive:\\info.txt","at","Your system has @EMMAvail bytes of LIM EMM memory available.\n")
		@Write("@OutDrive:\\info.txt","at","The total LIM EMM memory installed is @EMMTotal.\n")
		@Write("@OutDrive:\\info.txt","at","The total amount of RAM on your system is @RAMTotal.\n")
		@Write("@OutDrive:\\info.txt","at","The available DOS conventional memory is @RAMAvail.\n")
		@Write("@OutDrive:\\info.txt","at","The input drive is @InDrive:\n")
		@Write("@OutDrive:\\info.txt","at","The output drive is @OutDrive:\n")
		@Write("@OutDrive:\\info.txt","at","The CPU type is 80@CPU.\n")

@If (@ANSIsys > 0)
		@Write("@OutDrive:\\info.txt","at","Your computer has ANSI.SYS installed.\n")
	@Else
		@Write("@OutDrive:\\info.txt","at","Your computer does not have ANSI.SYS installed.\n")
@EndIf

@If (@Keyboard != 0)
		@Write("@OutDrive:\\info.txt","at","Your system has an enhanced keyboard.\n")
	@Else
		@Write("@OutDrive:\\info.txt","at","Your system has a standard keyboard.\n")
@EndIf
   
@If (@NetBios != 0)
		@Write("@OutDrive:\\info.txt","at","Your system appears to be running on a network.\n")
	@Else
		@Write("@OutDrive:\\info.txt","at","Your system appears not to be running on a network.\n")
@EndIf

@If (@VideoMode == 0)
		@Write("@OutDrive:\\info.txt","at","Your current video mode is: 40 X 25 Black & White\n")
	@ElseIf (@VideoMode == 1)
		@Write("@OutDrive:\\info.txt","at","Your current video mode is: 40 X 25 Color\n")
	@ElseIf (@VideoMode == 2)
		@Write("@OutDrive:\\info.txt","at","Your current video mode is: 80 X 25 Black & White\n")
	@ElseIf (@VideoMode == 3)
		@Write("@OutDrive:\\info.txt","at","Your current video mode is: 80 X 25 Color\n")       
	@ElseIf (@VideoMode == 7)
		@Write("@OutDrive:\\info.txt","at","Your current video mode is: 80 X 25 Monochromee\n")
@EndIf

@If (@VideoCard == 'M')
		@Write("@OutDrive:\\info.txt","at","Your video card is a Monochrome Display Adaptor.\n")
	@ElseIf (@VideoCard == 'C')
		@Write("@OutDrive:\\info.txt","at","Your video card is a Color Graphics Adaptor.\n")
	@ElseIf (@VideoCard == 'E')
		@Write("@OutDrive:\\info.txt","at","Your video card is a Enhanced Graphics Adaptor.\n")
    @ElseIf (@VideoCard == 'V')
		@Write("@OutDrive:\\info.txt","at","Your video card is a Video Graphics Adaptor.\n")
@EndIf


		@Write("@OutDrive:\\info.txt","at","Your video card has @VideoRAM K of RAM.\n")

		@Write("@OutDrive:\\info.txt","at","Your boot drive is drive @BootDrive:\n")
		@Write("@OutDrive:\\info.txt","at","There are a total of @ComTotal serial ports in your system.\n")
		
@If (@Com(1))
		@Write("@OutDrive:\\info.txt","at","Your system has a COM1 serial port, at address @Com(1).\n")
@EndIf

@If (@Com(2))
		@Write("@OutDrive:\\info.txt","at","Your system has a COM2 serial port, at address @Com(2).\n")
@EndIf

@If (@Com(3))
		@Write("@OutDrive:\\info.txt","at","Your system has a COM3 serial port, at address @Com(3).\n")
@EndIf

@If (@Com(4))
		@Write("@OutDrive:\\info.txt","at","Your system has a COM4 serial port, at address @Com(4).\n")
@EndIf

		@Write("@OutDrive:\\info.txt","at","There are a total of @LptTotal parallel ports in your system.\n")		

@If (@Lpt(1))
		@Write("@OutDrive:\\info.txt","at","Your system has a Lpt1 parallel port at address @Lpt(1).\n")          
@EndIf

@If (@Lpt(2))
		@Write("@OutDrive:\\info.txt","at","Your system has a Lpt2 parallel port at address @Lpt(2).\n")
@EndIf

@If (@Lpt(3))
		@Write("@OutDrive:\\info.txt","at","Your system has a Lpt3 parallel port at address @Lpt(3).\n")
@EndIf

@If (@Lpt(4))
		@Write("@OutDrive:\\info.txt","at","Your system has a Lpt4 parallel port at address @Lpt(4).\n")
@EndIf

@If (@MachineID == 248)
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PS/2 Models 70 and 80\n")
	@ElseIf (@MachineID == 249)
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PC Convertible\n")
	@ElseIf (@MachineID == 250)
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PS/2 Model 30\n")
	@ElseIf (@MachineID == 251)
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PC/XT (later models)\n")       
	@ElseIf (@MachineID == 252)
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PC/AT, PC/XT-286, PS/2 Model 50 and 60\n")
	@ElseIf (@MachineID == 253)                                                                                   
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PCjr\n")
	@ElseIf (@MachineID == 254)
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PC/XT (early models)\n")
	@ElseIf (@MachineID == 255)
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PC ''Classic''\n") 
@EndIf

@If (@NDP != 0)
		@Write("@OutDrive:\\info.txt","at","Your system appears to have a 80x87 chip.\n")
	@Else
		@Write("@OutDrive:\\info.txt","at","Your system does not have a 80x87 chip.\n")
@EndIf

@Display
@Cls
    Video Graphics Drivers must be loaded when running LABTECH 
    @Name.Therefore at this time we are going to check your Video 
    Adapter Card, and adjust your CONFIG.SYS and AUTOEXEC.BAT 
    files at the end of installation. 
    The only adjustment made to these files will be to add Video 
    Drivers if necessary, and to bring your ( FILES= ) up to 24. 
    If your ( FILES= ) is 24 or more it will not be adjusted. @Name 
    will also save your current CONFIG.SYS and AUTOEXEC.BAT files 
    as CONFIG.BAK and AUTOEXEC.BAK.
    
    @Pause
@EndDisplay 

@If (@VideoCard == 'M')
       @Goto Mono
   @ElseIf (@VideoCard == 'C')
       @Goto CGA
   @ElseIf (@VideoCard == 'E')
       @Goto EGA
   @ElseIf (@VideoCard == 'V')
       @Goto VGA
   @Else
   @Display
       @Name can not identify your Video Adapter Card.
       You should use either EGA or VGA Graphics Adaptors for
       best results with @Name. Please add one to your computer
       and reinstall LABTECH @Name.
       Installation will now Abort.
       @Pause
   @EndDisplay
   @Exit
@EndIf

Mono:
@GetGroups
    @Name has detected a Monochrome Display Adaptor. 
    Press Enter to continue.

    @Set M = "MONOCHROME FOUND"
    
@EndGroups
@Goto Start

CGA:
@GetGroups
   @Name has detected a Color Graphics Adaptor.
   Press Enter to continue.

   @Set C = "CGA FOUND"

@EndGroups
@Goto Start 
        
EGA:
@GetGroups
   @Name has detected an Enhanced Graphics Adaptor.
   Press Enter to continue.

   @Set E = "EGA FOUND"

@EndGroups
@Goto Start 
    
VGA:
@GetGroups
   @Name has detected a Video Graphics Adaptor.
   Press Enter to continue.

   @Set V = "VGA FOUND"

@EndGroups 

Start:
@GetOption
@LocalWindow(18,35)
   Select the hardware you want to install from the manufacturers 
   listed below.

    @Option 201 = "Acro"
    @Option 202 = "Action Instruments"
    @Option 203 = "Adac"
    @Option 204 = "Analog Devices"
    @Option 205 = "Advantech"
    @Option 206 = "Analogic"
    @Option 207 = "Computer Boards"
    @Option 208 = "Contec"
    @Option 209 = "Cyber Research"
    @Option 210 = "Hewlett-Packard"
    @Option 211 = "Data Translation"
    @Option 212 = "Dynalog"
    @Option 213 = "Fluke Corp."
    @Option 229 = "Iotech"
    @Option 214 = "Intelligent Instrumentation"
    @Option 215 = "Industrial Computer Designs"
    @Option 216 = "Industrial Computer Source"
    @Option 217 = "Keithley DA"
    @Option 218 = "Measurement Systems"
    @Option 219 = "National Instruments"
    @Option 220 = "Omega I (OM700/900)"
    @Option 221 = "Omega II  (PLUG/IN)"
    @Option 222 = "Omega III   (OM480)"
    @Option 223 = "Omega IV"
    @Option 224 = "Omega V"
    @Option 225 = "Opto-22"
    @Option 226 = "Rs232"
    @Option 227 = "Scientific Solutions"
    @Option 228 = "Strawberry Tree"

 Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to 
   move the gray highlight bar to the Manufacturer you wish to install. 
   Press [Enter] to select.

@EndOption


@DefineDisk
    @Label = "Master"
    @BeginLib Master.red
       @File *.* @Out @OutDrive:\@Subdir\*.*
    @EndLib

    @BeginLib Tutor1.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Tutor1\*.*
    @EndLib

    @BeginLib Tutor2.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Tutor2\*.*
    @EndLib

    @BeginLib Tutor3.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Tutor3\*.*
    @EndLib

    @BeginLib Tutor4.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Tutor4\*.*
    @EndLib

    @BeginLib Tutor5.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Tutor5\*.*
    @EndLib

    @BeginLib Tutor6.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Tutor6\*.*
    @EndLib

    @BeginLib New.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\New\*.*
    @EndLib

    @BeginLib M1.red
       @File *.* @Out C:\*.* @Group AM
    @EndLib

    @BeginLib C1.red
       @File *.* @Out C:\*.* @Group AC
    @EndLib
    
    @BeginLib E1.red
       @File *.* @Out C:\*.* @Group AE
    @EndLib

    @BeginLib V1.red
       @File *.* @Out C:\*.* @Group AV
    @EndLib

@EndDisk

@DefineDisk
    @Label = "Supp"
    @BeginLib Driver.red
       @File *.* @Out @OutDrive:\@Subdir\*.*
    @EndLib

    @BeginLib Acro.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 201
    @EndLib

    @BeginLib Action.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 202
    @EndLib

    @BeginLib Adac.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 203
    @EndLib

    @BeginLib Adi.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 204
    @EndLib
    
@EndDisk

@DefineDisk
    @Label = "Driver1"
    @BeginLib Advantec.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 205
    @EndLib

    @BeginLib Alogic.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 206
    @EndLib

    @BeginLib Cbi.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 207
    @EndLib

    @BeginLib Contec.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 208
    @EndLib

    @BeginLib Cyber3.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 209
    @EndLib

    @BeginLib Hp.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 210
    @EndLib

@EndDisk

@DefineDisk
    @Label = "Driver2"
    @BeginLib Dt.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 211
    @EndLib

    @BeginLib Dynalog.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 212
    @EndLib

    @BeginLib Fluke.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 213
    @EndLib

    @BeginLib I3.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 214
    @EndLib

    @BeginLib Icd.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 215
    @EndLib

    @BeginLib Ics.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 216
    @EndLib

    @BeginLib Kda.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 217
    @EndLib

    @BeginLib Ms.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 218
    @EndLib

    @BeginLib National.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 219
    @EndLib

    @BeginLib Om480.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 222
    @EndLib

    @BeginLib Om900.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 220
    @EndLib

@EndDisk

@DefineDisk
    @Label = "Driver3"
    @BeginLib Omega.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 221
    @EndLib

    @BeginLib Omega_4.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 223
    @EndLib

    @BeginLib Omega_5.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 224
    @EndLib

    @BeginLib Opto.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 225
    @EndLib

    @BeginLib Rs232.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 226
    @EndLib

    @BeginLib Ssi.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 227
    @EndLib

    @BeginLib Stree.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 228
    @EndLib
    
    @BeginLib Iotech.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 229
    @EndLib
    
    @BeginLib Daqbook.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Daqbook\*.* @Option 229
    @EndLib
    
    @BeginLib Daq.red
       @File *.* @Out @OutDrive:\@Subdir\Dbdr_ltn\*.* @Option 229
    @EndLib
    
@EndDisk
@Goto Gss

Upgd:
@GetOption
    @LocalWindow(14,35)
    @Option 20 = "Continue Installation"
    @Option 21 = "Abort Installation"
@Cls

 The "Upgrade Installation" is meant for those customers who already
 have Labtech @Name installed. This installation will not install
 Video Drivers. We suggest you install this upgrade into a new 
 directory. However if you install it into an existing @Name
 directory we will save your existing BDINDEX, BOARD, and LTN.CNF 
 files as *.BAK files. 
 








 Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move the 
 gray highlight bar to the selection you prefer.  
 Press [Enter] to select.

@EndOption

@If(20 [= @Option)
    @Goto Getdriv1
@ElseIf(21 [= @Option)
    @Exit
@EndIf

Getdriv1:
@FlushGroups()                          // Clear all groups

@GetOutDrive
    @Cls
    @Suppress A                         // Do not prompt for A:    
    @Suppress B                         // Do not prompt for B:

	Enter the Drive Letter where you want to install @Name.













	Note: You must install @Name on a hard drive.

	Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move 
	the gray highlight bar to the disk drive you wish to install to 
	and then press the [Enter] key.

@EndOutDrive

@If (@Removable)
       @Display
       You can't install @Name onto a floppy drive!

       @Pause
       @Goto Getdriv1
       @EndDisplay
@EndIf

Reselec1:
@FlushGroups()
@GetSubdir
	@Cls

	Now you need to specify the destination subdirectory. The
	subdirectory is the location on your hard disk where the @Name 
	system will be installed. If you would like @OutDrive:@Subdir as your 
	subdirectory simply press the [ENTER] key. If you would like to 
	change the subdirectory,type backspace twice and enter your choice.
	 
	@Prompt = "Which subdirectory ?"
@EndSubdir

@If (@Exists("@OutDrive:\\@Subdir\\nb.com"))
   @GetGroups
   @LocalWindow(14,34)
   
   LABTECH @Name has detected a previous installation of @NAME
   in @OutDrive:@Subdir. You may continue the installation if you choose.
   However we suggest that you make this installation into a new
   subdirectory. If you continue your existing BDINDEX, BOARD_*, and
   LTN.CNF files will be saved as *.BAK files.

   @Set X = "Select new subdirectory"
   @Set Z = "Continue installation"

   @EndGroups
@EndIf

@If     ('X' [=@Group)
        @Goto Reselec1
@ElseIf ('Z' [=@Group)
     @Copy("@OutDrive:\\@Subdir\\b*.prn", "@OutDrive:\\@Subdir\\b*.bak")
     @Copy("@OutDrive:\\@Subdir\\ltn.cnf", "@OutDrive:\\@Subdir\\ltn.bak")
     @GetOption
     @LocalWindow(14,35)
        @Option 64 = "Delete *.TPL files"
        @Option 65 = "Do not delete *.TPL files"
     @Cls

     You now have the choice to Delete the *.TPL files from your 
     @Name directory. Because you are changing Manufacturer's Drivers
     these files are not needed any longer. If you do not delete them
     you will have to scroll through them in the Hardware Installation.
     We suggest you delete them. 
 








     Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move the 
     gray highlight bar to the selection you prefer.  
     Press [Enter] to select.

     @EndOption
        @If(64 [= @Option)
            @Delete("@OutDrive:\\@Subdir\\*.tpl")
        @ElseIf(65 [= @Option)
            @Goto Chdsk1
        @EndIf
    
@EndIf
    
Chdsk1:   
@If (@DiskFree @OutDrive < 5000000)
        @GetGroups
        @LocalWindow(12,40)
                
        Drive @OutDrive has only @DiskFree @OutDrive bytes of free space.
        @Name requires at least 5 megabytes for correct operation.

        The used space on drive @OutDrive may include an earlier version
        of @Name which will be replaced during this installation, if the
        older version of @Name exists in @Outdrive:@Subdir. If this is 
        the case, CONTINUE the installation. Otherwise, free up 5 megabytes 
        of space on drive @OutDrive: or re-specify the target drive.

        @Set A = "Continue Installation."
        @Set B = "Re-specify target drive."
        @Set C = "Abort Installation."

        Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move
        the gray highlight bar to the selection you prefer.  
        Press [Enter] to select.

        @EndGroups
@EndIf

@If     ('A' [= @Group)
        @Goto Continu1
@ElseIf ('B' [= @Group)
        @Goto GetDriv1
@ElseIf ('C' [= @Group)
        @Exit
@EndIf

Continu1:

Coname1:		
@GetString @Company
@LocalWindow(10,50)

						@Prompt = "What is your company name?"
@EndString

@If (@StrLen("@Company") < 2)
    @Display
    @LocalWindow(10,50)   

       Please enter your proper company name. Thank you!

       @Pause
       @Goto Coname1
    @EndDisplay
@EndIf

Yournam1:
@GetString @UserName
@LocalWindow(10,50)

						@Prompt = "What is your name?"
@EndString

@If (@StrLen("@UserName") < 2)
    @Display
    @LocalWindow(10,50)   

       Please enter your proper name. Thank you!

       @Pause
       @Goto Yournam1
    @EndDisplay
@EndIf

Snnumbe1:
@GetString @SN
@LocalWindow(10,50)
						@Prompt = "What is your serial number?"
@EndString

@If (@StrLen("@SN") < 4)
    @Display
    @LocalWindow(10,50)   

       Please enter your proper serial number. Thank you!

       @Pause
       @Goto Snnumbe1
    @EndDisplay
@EndIf

		@Write("@OutDrive:\\name.inf", "wt", "@Company\n")
		@Write("@OutDrive:\\name.inf", "at", "@UserName\n")
	    @Write("@OutDrive:\\name.inf", "at", "SN-@SN\n")
	    @Write("@OutDrive:\\info.txt", "wt", "Name:@UserName\n")
		@Write("@OutDrive:\\info.txt", "at", "Company:@Company\n")
	    @Write("@OutDrive:\\info.txt", "at", "SN-@SN\n")
	    @Write("@OutDrive:\\info.txt", "at", "@Name is the software being installed on to your system.\n")

@Display


    @Cls

	Now your system configuration will be determined and stored in 
	@OutDrive:\INFO.TXT.  This file should be printed out and faxed 
	to Technical Support if the need arises. 

            
    @Pause
@EndDisplay
 
		@Write("@OutDrive:\\info.txt","at","The version of DOS on your operating system is @OSMAjor.@OSMinor.\n")
		@Write("@OutDrive:\\info.txt","at","Your EMM version number is @EMMMajor.@EMMMinor.\n")
		@Write("@OutDrive:\\info.txt","at","Your system has @EMMAvail bytes of LIM EMM memory available.\n")
		@Write("@OutDrive:\\info.txt","at","The total LIM EMM memory installed is @EMMTotal.\n")
		@Write("@OutDrive:\\info.txt","at","The total amount of RAM on your system is @RAMTotal.\n")
		@Write("@OutDrive:\\info.txt","at","The available DOS conventional memory is @RAMAvail.\n")
		@Write("@OutDrive:\\info.txt","at","The input drive is @InDrive:\n")
		@Write("@OutDrive:\\info.txt","at","The output drive is @OutDrive:\n")
		@Write("@OutDrive:\\info.txt","at","The CPU type is 80@CPU.\n")

@If (@ANSIsys > 0)
		@Write("@OutDrive:\\info.txt","at","Your computer has ANSI.SYS installed.\n")
	@Else
		@Write("@OutDrive:\\info.txt","at","Your computer does not have ANSI.SYS installed.\n")
@EndIf

@If (@Keyboard != 0)
		@Write("@OutDrive:\\info.txt","at","Your system has an enhanced keyboard.\n")
	@Else
		@Write("@OutDrive:\\info.txt","at","Your system has a standard keyboard.\n")
@EndIf
   
@If (@NetBios != 0)
		@Write("@OutDrive:\\info.txt","at","Your system appears to be running on a network.\n")
	@Else
		@Write("@OutDrive:\\info.txt","at","Your system appears not to be running on a network.\n")
@EndIf

@If (@VideoMode == 0)
		@Write("@OutDrive:\\info.txt","at","Your current video mode is: 40 X 25 Black & White\n")
	@ElseIf (@VideoMode == 1)
		@Write("@OutDrive:\\info.txt","at","Your current video mode is: 40 X 25 Color\n")
	@ElseIf (@VideoMode == 2)
		@Write("@OutDrive:\\info.txt","at","Your current video mode is: 80 X 25 Black & White\n")
	@ElseIf (@VideoMode == 3)
		@Write("@OutDrive:\\info.txt","at","Your current video mode is: 80 X 25 Color\n")       
	@ElseIf (@VideoMode == 7)
		@Write("@OutDrive:\\info.txt","at","Your current video mode is: 80 X 25 Monochromee\n")
@EndIf

@If (@VideoCard == 'M')
		@Write("@OutDrive:\\info.txt","at","Your video card is a Monochrome Display Adaptor.\n")
	@ElseIf (@VideoCard == 'C')
		@Write("@OutDrive:\\info.txt","at","Your video card is a Color Graphics Adaptor.\n")
	@ElseIf (@VideoCard == 'E')
		@Write("@OutDrive:\\info.txt","at","Your video card is a Enhanced Graphics Adaptor.\n")
    @ElseIf (@VideoCard == 'V')
		@Write("@OutDrive:\\info.txt","at","Your video card is a Video Graphics Adaptor.\n")
@EndIf


		@Write("@OutDrive:\\info.txt","at","Your video card has @VideoRAM K of RAM.\n")

		@Write("@OutDrive:\\info.txt","at","Your boot drive is drive @BootDrive:\n")
		@Write("@OutDrive:\\info.txt","at","There are a total of @ComTotal serial ports in your system.\n")
		
@If (@Com(1))
		@Write("@OutDrive:\\info.txt","at","Your system has a COM1 serial port, at address @Com(1).\n")
@EndIf

@If (@Com(2))
		@Write("@OutDrive:\\info.txt","at","Your system has a COM2 serial port, at address @Com(2).\n")
@EndIf

@If (@Com(3))
		@Write("@OutDrive:\\info.txt","at","Your system has a COM3 serial port, at address @Com(3).\n")
@EndIf

@If (@Com(4))
		@Write("@OutDrive:\\info.txt","at","Your system has a COM4 serial port, at address @Com(4).\n")
@EndIf

		@Write("@OutDrive:\\info.txt","at","There are a total of @LptTotal parallel ports in your system.\n")		

@If (@Lpt(1))
		@Write("@OutDrive:\\info.txt","at","Your system has a Lpt1 parallel port at address @Lpt(1).\n")          
@EndIf

@If (@Lpt(2))
		@Write("@OutDrive:\\info.txt","at","Your system has a Lpt2 parallel port at address @Lpt(2).\n")
@EndIf

@If (@Lpt(3))
		@Write("@OutDrive:\\info.txt","at","Your system has a Lpt3 parallel port at address @Lpt(3).\n")
@EndIf

@If (@Lpt(4))
		@Write("@OutDrive:\\info.txt","at","Your system has a Lpt4 parallel port at address @Lpt(4).\n")
@EndIf

@If (@MachineID == 248)
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PS/2 Models 70 and 80\n")
	@ElseIf (@MachineID == 249)
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PC Convertible\n")
	@ElseIf (@MachineID == 250)
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PS/2 Model 30\n")
	@ElseIf (@MachineID == 251)
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PC/XT (later models)\n")       
	@ElseIf (@MachineID == 252)
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PC/AT, PC/XT-286, PS/2 Model 50 and 60\n")
	@ElseIf (@MachineID == 253)                                                                                   
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PCjr\n")
	@ElseIf (@MachineID == 254)
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PC/XT (early models)\n")
	@ElseIf (@MachineID == 255)
		@Write("@OutDrive:\\info.txt","at","The type of ROM BIOS in your system is: PC ''Classic''\n") 
@EndIf

@If (@NDP != 0)
		@Write("@OutDrive:\\info.txt","at","Your system appears to have a 80x87 chip.\n")
	@Else
		@Write("@OutDrive:\\info.txt","at","Your system does not have a 80x87 chip.\n")
@EndIf

@GetOption
@LocalWindow(20,35)
   Select the hardware you want to install from the manufacturers 
   listed below.

    @Option 201 = "Acro"
    @Option 202 = "Action Instruments"
    @Option 203 = "Adac"
    @Option 204 = "Analog Devices"
    @Option 205 = "Advantech"
    @Option 206 = "Analogic"
    @Option 207 = "Computer Boards"
    @Option 208 = "Contec"
    @Option 209 = "Cyber Research"
    @Option 210 = "Hewlett-Packard"
    @Option 211 = "Data Translation"
    @Option 212 = "Dynalog"
    @Option 213 = "Fluke Corp."
    @Option 229 = "Iotech"
    @Option 214 = "Intelligent Instrumentation"
    @Option 215 = "Industrial Computer Designs"
    @Option 216 = "Industrial Computer Source"
    @Option 217 = "Keithley DA"
    @Option 218 = "Measurement Systems"
    @Option 219 = "National Instruments"
    @Option 220 = "Omega I (OM700/900)"
    @Option 221 = "Omega II  (PLUG/IN)"
    @Option 222 = "Omega III   (OM480)"
    @Option 223 = "Omega IV"
    @Option 224 = "Omega V"
    @Option 225 = "Opto-22"
    @Option 226 = "Rs232"
    @Option 227 = "Scientific Solutions"
    @Option 228 = "Strawberry Tree"

 Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to 
   move the gray highlight bar to the Manufacturer you wish 
   to install. Press [Enter] to select.

@EndOption


@DefineDisk
    @Label = "Master"
    @BeginLib Master.red
       @File *.* @Out @OutDrive:\@Subdir\*.*
    @EndLib

    @BeginLib Tutor1.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Tutor1\*.*
    @EndLib

    @BeginLib Tutor2.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Tutor2\*.*
    @EndLib

    @BeginLib Tutor3.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Tutor3\*.*
    @EndLib

    @BeginLib Tutor4.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Tutor4\*.*
    @EndLib

    @BeginLib Tutor5.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Tutor5\*.*
    @EndLib

    @BeginLib Tutor6.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Tutor6\*.*
    @EndLib

    @BeginLib New.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\New\*.*
    @EndLib

@EndDisk

@DefineDisk
    @Label = "Supp"
    @BeginLib Driver.red
       @File *.* @Out @OutDrive:\@Subdir\*.*
    @EndLib

    @BeginLib Acro.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 201
    @EndLib

    @BeginLib Action.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 202
    @EndLib

    @BeginLib Adac.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 203
    @EndLib

    @BeginLib Adi.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 204
    @EndLib
    
@EndDisk

@DefineDisk
    @Label = "Driver1"
    @BeginLib Advantec.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 205
    @EndLib

    @BeginLib Alogic.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 206
    @EndLib

    @BeginLib Cbi.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 207
    @EndLib

    @BeginLib Contec.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 208
    @EndLib

    @BeginLib Cyber3.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 209
    @EndLib

    @BeginLib Hp.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 210
    @EndLib

@EndDisk

@DefineDisk
    @Label = "Driver2"
    @BeginLib Dt.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 211
    @EndLib

    @BeginLib Dynalog.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 212
    @EndLib

    @BeginLib Fluke.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 213
    @EndLib

    @BeginLib I3.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 214
    @EndLib

    @BeginLib Icd.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 215
    @EndLib

    @BeginLib Ics.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 216
    @EndLib

    @BeginLib Kda.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 217
    @EndLib

    @BeginLib Ms.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 218
    @EndLib

    @BeginLib National.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 219
    @EndLib

    @BeginLib Om480.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 222
    @EndLib

    @BeginLib Om900.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 220
    @EndLib

@EndDisk

@DefineDisk
    @Label = "Driver3"
    @BeginLib Omega.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 221
    @EndLib

    @BeginLib Omega_4.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 223
    @EndLib

    @BeginLib Omega_5.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 224
    @EndLib

    @BeginLib Opto.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 225
    @EndLib

    @BeginLib Rs232.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 226
    @EndLib

    @BeginLib Ssi.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 227
    @EndLib

    @BeginLib Stree.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 228
    @EndLib
    
    @BeginLib Iotech.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 229
    @EndLib
    
    @BeginLib Daqbook.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Daqbook\*.* @Option 229
    @EndLib
    
    @BeginLib Daq.red
       @File *.* @Out @OutDrive:\@Subdir\Dbdr_ltn\*.* @Option 229
    @EndLib
    
@EndDisk
@Goto End

Driver:
@GetOption
    @LocalWindow(14,35)
    @Option 50 = "Continue Installation"
    @Option 51 = "Abort Installation"
@Cls

 The "Driver Installation" is meant for those customers who already
 have a version of the Universal @Name system. It should be used
 because you are changing your hardware to a different Manufacturer, 
 and need to change to that Manufacturer's Drivers. It will give you 
 the option to delete the existing *.TPL files, and allow you to 
 choose another Manufacturer's Drivers.
 








 Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move the 
 gray highlight bar to the selection you prefer.  
 Press [Enter] to select.

@EndOption

@If(50 [= @Option)
    @Goto Getdriv2
@ElseIf(51 [= @Option)
    @Exit
@EndIf

Getdriv2:
@FlushGroups()                          // Clear all groups

@GetOutDrive
    @Cls
    @Suppress A                         // Do not prompt for A:    
    @Suppress B                         // Do not prompt for B:

  Enter the Drive of your existing @Name system.













	Note: You must install @Name on a hard drive.

  Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move the 
  gray highlight bar to the selection you prefer.  
  Press [Enter] to select.

@EndOutDrive

@If (@Removable)
       @Display
       You can't install @Name onto a floppy drive!

       @Pause
       @Goto Getdriv2
       @EndDisplay
@EndIf

Reselec2:
@FlushGroups()
@GetSubdir
	@Cls

	Now you need to specify the destination subdirectory. This
	subdirectory is the location of your @Name Universal 
	system. If you installed it in @OutDrive:@Subdir simply 
	press the [ENTER] key. If you installed it in a different 
	subdirectory,type backspace twice and enter that subdirectory.
	 
	@Prompt = "Which subdirectory ?"
@EndSubdir

@If (@Exists("@OutDrive:\\@Subdir\\nb.com"))
   @Goto Chdsk2 
@Else
   @GetGroups
   @LocalWindow(18,34)
   
   LABTECH @Name has not detected a previous installation of @NAME
   in @OutDrive:@Subdir. You may continue the installation if you choose.
   However this installation is only installing Manufacturer's Drivers.
   It is not a complete installation.

   @Set X = "Select new subdirectory"
   @Set Y = "Continue installation"
   @Set Z = "Abort installation"

   Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move 
   the gray highlight bar to the selection you prefer.  
   Press [Enter] to select.

   @EndGroups
@EndIf

@If     ('X' [=@Group)
        @Goto Reselec2
@ElseIf ('Y' [=@Group)
        @Goto Select2
@ElseIf ('Z' [=@Group)
        @Exit
@EndIf
    
Chdsk2:   
@FlushGroups()
@If (@DiskFree @OutDrive < 2000000)
        @GetGroups
        @LocalWindow(16,40)
                
        Drive @OutDrive has only @DiskFree @OutDrive bytes of free space.
        
        Although you are simply changing to a different Manufacturer's 
        Drivers, we suggest you have at least 2 megabytes of hard disk
        space available. Some Manufacturer's Drivers will take up close to
        this amount.
        
        @Set A = "Continue Installation."
        @Set B = "Abort Installation."

        Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move 
        the gray highlight bar to the selection you prefer.  
        Press [Enter] to select.

        @EndGroups
@EndIf

@If     ('A' [= @Group)
        @Goto Continu2
@ElseIf ('B' [= @Group)
        @Exit
@EndIf

Continu2:
@GetOption
    @LocalWindow(14,35)
    @Option 60 = "Delete *.TPL files"
    @Option 61 = "Do not delete *.TPL files"
@Cls

 You now have the choice to Delete the *.TPL files from your 
 @Name directory. Because you are changing Manufacturer's Drivers
 these files are not needed any longer. If you do not delete them
 you will have to scroll through them in the Hardware Installation.
 We suggest you delete them. 
 








 Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move the 
 gray highlight bar to the selection you prefer.  
 Press [Enter] to select.

@EndOption

@If(60 [= @Option)
    @Delete("@OutDrive:\\@Subdir\\*.tpl")
@ElseIf(61 [= @Option)
    @Goto Select2
@EndIf
    
Select2:
@GetOption
@LocalWindow(20,35)
   Select the hardware you want to install from the manufacturers 
   listed below.

    @Option 201 = "Acro"
    @Option 202 = "Action Instruments"
    @Option 203 = "Adac"
    @Option 204 = "Analog Devices"
    @Option 205 = "Advantech"
    @Option 206 = "Analogic"
    @Option 207 = "Computer Boards"
    @Option 208 = "Contec"
    @Option 209 = "Cyber Research"
    @Option 210 = "Hewlett-Packard"
    @Option 211 = "Data Translation"
    @Option 212 = "Dynalog"
    @Option 213 = "Fluke Corp."
    @Option 229 = "Iotech"
    @Option 214 = "Intelligent Instrumentation"
    @Option 215 = "Industrial Computer Designs"
    @Option 216 = "Industrial Computer Source"
    @Option 217 = "Keithley DA"
    @Option 218 = "Measurement Systems"
    @Option 219 = "National Instruments"
    @Option 220 = "Omega I (OM700/900)"
    @Option 221 = "Omega II  (PLUG/IN)"
    @Option 222 = "Omega III   (OM480)"
    @Option 223 = "Omega IV"
    @Option 224 = "Omega V"
    @Option 225 = "Opto-22"
    @Option 226 = "Rs232"
    @Option 227 = "Scientific Solutions"
    @Option 228 = "Strawberry Tree"

 Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to 
   move the gray highlight bar to the Manufacturer you wish to install. 
   Press [Enter] to select.

@EndOption

@DefineDisk
    @Label = "Supp"
    @BeginLib Acro.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 201
    @EndLib

    @BeginLib Action.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 202
    @EndLib

    @BeginLib Adac.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 203
    @EndLib

    @BeginLib Adi.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 204
    @EndLib
    
@EndDisk

@DefineDisk
    @Label = "Driver1"
    @BeginLib Advantec.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 205
    @EndLib

    @BeginLib Alogic.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 206
    @EndLib

    @BeginLib Cbi.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 207
    @EndLib

    @BeginLib Contec.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 208
    @EndLib

    @BeginLib Cyber3.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 209
    @EndLib

    @BeginLib Hp.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 210
    @EndLib

@EndDisk

@DefineDisk
    @Label = "Driver2"
    @BeginLib Dt.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 211
    @EndLib

    @BeginLib Dynalog.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 212
    @EndLib

    @BeginLib Fluke.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 213
    @EndLib

    @BeginLib I3.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 214
    @EndLib

    @BeginLib Icd.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 215
    @EndLib

    @BeginLib Ics.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 216
    @EndLib

    @BeginLib Kda.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 217
    @EndLib

    @BeginLib Ms.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 218
    @EndLib

    @BeginLib National.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 219
    @EndLib

    @BeginLib Om480.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 222
    @EndLib

    @BeginLib Om900.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 220
    @EndLib

@EndDisk

@DefineDisk
    @Label = "Driver3"
    @BeginLib Omega.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 221
    @EndLib

    @BeginLib Omega_4.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 223
    @EndLib

    @BeginLib Omega_5.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 224
    @EndLib

    @BeginLib Opto.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 225
    @EndLib

    @BeginLib Rs232.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 226
    @EndLib

    @BeginLib Ssi.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 227
    @EndLib

    @BeginLib Stree.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 228
    @EndLib
    
    @BeginLib Iotech.red
       @File *.* @Out @OutDrive:\@Subdir\*.* @Option 229
    @EndLib
    
    @BeginLib Daqbook.red
       @File *.* @Out @OutDrive:\@Subdir\Setup\Daqbook\*.* @Option 229
    @EndLib
    
    @BeginLib Daq.red
       @File *.* @Out @OutDrive:\@Subdir\Dbdr_ltn\*.* @Option 229
    @EndLib
    
@EndDisk
@Goto End2

/*
 * This will install the GSS CGI DRIVERS and alter CONFIG.SYS
 * and AUTOEXEC.BAT.
 */

Gss:
@If (@Modconf != 0)
    @SetConfig
        @Overwrite
        @Device = "C:\\CGISTUB.SYS"
        @Files = 24
    @EndConfig

    @SetAutoexec
        @Overwrite
        @Verbatim "C:\\DRIVERS"
    @EndAutoexec
    @Goto End1
@EndIf


End:
@Copy("@OutDrive:\\name.inf", "@OutDrive:\\@Subdir\\name.inf" )
   
@Finish
@Cls

   You have now Successfully installed LABTECH @Name.
   Changes may have been made to your CONFIG.SYS and/or AUTOEXEC.BAT
   files. In any case you must reboot your system before running LABTECH
   @Name.
   
   BE SURE TO REMOVE ANY DISK FROM YOUR A:DRIVE BEFORE REBOOTING.

   If you are using (DOS V.5) and have installed the HIMEM.SYS and
   EMM386.EXE device drivers, it may be possible to free up memory by
   loading DRIVERS.EXE into high memory. To do so refer to your GSSCGI
   manual. Other Memory Managers such as QEMM and 386MAX will also 
   allow you to load DRIVERS.EXE high. Please refer to the respective 
   manuals for information on how to do this. 

   Your Mouse must be installed to run ICONVIEW and ADJUST.
   
   THANK YOU FOR PURCHASING LABTECH @Name.

   @Pause

   @Reboot ("Warm booting the system now!", 1)

@EndFinish
/* End of File */

End1:
@Copy("@OutDrive:\\name.inf", "@OutDrive:\\@Subdir\\name.inf" )
   
@Finish
@Cls
   @If(@Spawn("fixvdi"))@EndIf
   @If(@Spawn("fixauto"))@EndIf

   You have now Successfully installed LABTECH @Name.
   Changes may have been made to your CONFIG.SYS and/or AUTOEXEC.BAT
   files. In any case you must reboot your system before running LABTECH
   @Name.

   BE SURE TO REMOVE ANY DISK FROM YOUR A:DRIVE BEFORE REBOOTING.

   If you are using (DOS V.5) and have installed the HIMEM.SYS and
   EMM386.EXE device drivers, it may be possible to free up memory by
   loading DRIVERS.EXE into high memory. To do so refer to your GSSCGI
   manual. Other Memory Managers such as QEMM and 386MAX will also 
   allow you to load DRIVERS.EXE high. Please refer to the respective 
   manuals for information on how to do this. 

   Your Mouse must be installed to run ICONVIEW and ADJUST.
   
   THANK YOU FOR PURCHASING LABTECH @Name.

   @Pause

   @Reboot ("Warm booting the system now!", 1)

@EndFinish
/* End of File */

End2:
@Finish
@Cls




    You have now Successfully installed a different Manufacturer's
    Drivers. No other changes where made to your system.

    THANK YOU FOR PURCHASING LABTECH @Name.

    @Pause

@EndFinish
/* End of File */
    