/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Install script for RIO 6.31  
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/

@DefineProject
	@Name 		= "RIO"
	@Version		= "6.31"
	@SubDir 		= "RIO"
	@OutDrive 	= C
	@Requires @HardDisk
	@Immediate	= 1
@EndProject

@DefineVars
	@QString	@SerNumber = ""
	@Integer	@Space = 5000000
@EndVars

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Check for a 386 or greater CPU.
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@If (@CPU < 386)
	@Display
		@CLS

        @Name will only run on 80386 or above systems.

		@Pause
		@Abort
	@EndDisplay
@Endif

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Check for 4MB or greater memory
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@If (@ExtTotal < 3000000)
	@Display
		@CLS

        @Name requires 4MB or more of memory.

		@Pause
		@Abort
	@EndDisplay
@Endif

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Welcome screen
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@Display
	@CLS
             AT&T Multimedia Software Solutions @Name @Version

        This program will install @Name Version @Version on your computer
        system and verify the integrity of the distribution disks.
        During installation, you will be given the option of installing
        only selected parts of @Name (such as fonts).

        During the installation process, you will be asked several
        questions so that the program can be properly configured.
        Each question has a default answer.  If the default answer is
        correct, press the ENTER key in response to the question.
        Otherwise, type the answer and then press the ENTER key.

        You may press ESC at any time to abort the installation.

        Thank you for using @Name from AT&T Multimedia Software Solutions.
			Sales   1-800-448-6727
        24hr BBS (407) 662-7171    Technical Support (407) 662-7110
@PAUSE
@EndDisplay

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Warranty card information
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@Display
	@CLS

            Your @Name software is provided with a Warranty Form
            that should be filled out and returned to AT&T.  Register
            to help us improve @Name and provide additional features
            and functions to fit your needs.  Registering your @Name
            image design and presentation software allows you to receive
            the benefits of AT&T customer support program.  
            These benefits include:

               - Free technical support at (407) 662-7110
               - Free clip art  OR  
                      a 'one of kind' RIO T-shirt
               - Product information updates

            To register your product, complete the information on
            the Warranty Card enclosed with your @Name software,
            and mail it to AT&T Multimedia Software Solutions, Suite 2B02,
            2701 Maitland Center Parkway  Maitland, FL 32751.


@PAUSE
@EndDisplay

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Get target installation drive
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@GetOutDrive
	@CLS
                On which disk drive do you wish to install @Name?

        - Use the Up Arrow and Down Arrow keys to move through the list.
        - Press ENTER to confirm your selection.
	@LocalWindow( 15, 40 )
	@Suppress A
	@Suppress B
@EndOutDrive

@Display
	@If (@DiskFree( @OutDrive ) < @Space)
		@CLS


               The selected output disk drive does not
               have enough free space to install @Name.

		@Pause
		@Abort
	@EndIf
@EndDisplay

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Get target installation directory
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@GetSubdir
	@CLS

               @Name Installation Directory Selection

     Now you need to specify the disk destination subdirectory.  The 
     subdirectory is the location on your disk where @Name will be
     installed.  If you don't know what a "subdirectory" is, you 
     probably need not worry about it, and should press ENTER in response
     to the next prompt.

     If you are using a subdirectory system, and the DOS PATH command,
     and you install @Name in the @SubDir subdirectory, you will 
     probably want to modify the PATH so that it includes the 
     subdirectory @SubDir in addition to the current subdirectories.

	@PROMPT = " Which subdirectory ([Enter] = @SubDir) ? "
@EndSubdir

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Get parts to install.
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@GetGroups
	@CLS
           Please select the parts of @Name that you want to install.

        - Use the Up Arrow and Down Arrow keys to move through the list.
        - Press the SPACE BAR to toggle YES/NO.
        - Press ENTER to confirm your selection(s).

	@LocalWindow( 15, 40 )
	@CheckBox
	@Set R = "The @Name Program"
	@Set P = "@Name Output Device Drivers"
	@Set S = "@Name Scanner Drivers"
	@Set F = "@Name Fonts"
	@Set Y = "@Name Styles"
	@Set A = "All Of The Above"
@EndGroups

@If ('A' [= @Group)
	@SetGroup( R )
	@SetGroup( P )
	@SetGroup( S )
	@SetGroup( F )
	@SetGroup( Y )
@EndIf

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Get the display board type if we're installing the RIO program
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@If (('R' [! @Group) && ('A' [! @Group))
	@GoTo DoneDisplay
@EndIf

@GetOption
	@CLS
                      @Name Graphics Display Board Selection

        - Use the Up Arrow and Down Arrow keys to move through the list.
        - Press ENTER to confirm your selection.

	@LocalWindow( 15, 40 )
	@Option 9004 = "16-Color VGA"
	@Option 9005 = "VESA 24 bit Color VGA"
	@Option 9006 = "Diamond Stealth VGA"
	@Option 9007 = "Orchid Farenheit 1280 VGA"
	@Option 9008 = "Orchid Pro-Designer II VGA"
	@Option 9009 = "Renoir VGA"
	@Option 9010 = "Renoir NT VGA"
	@Option 9011 = "Renoir 24-Bit VGA"
	@Option 9012 = "Speedstar High-Color VGA"
	@Option 9013 = "Ultimate VGA"
	@Option 9014 = "Generic Tseng 16-Bit High-Color VGA"
	@Option 9015 = "Generic Tseng 24-Bit High-Color VGA"
	@Option 9016 = "Generic S3 High-Color VGA"
@EndOption

DoneDisplay:

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Get the pointing device type if we're installing the main program
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@If (('R' [! @Group) && ('A' [! @Group))
	@GoTo DonePointer
@EndIf

@GetGroups
	@CLS
                         @Name Pointing Device Selection

        - Use the Up Arrow and Down Arrow keys to move through the list.
        - Press ENTER to confirm your selection.

	@LocalWindow( 15, 40 )
	@Set M = "Mouse"
	@Set T = "Tablet"
	@Set G = "Mouse and Tablet"

@EndGroups

DonePointer:

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Get printer selections
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@If (('P' [! @Group) && ('A' [! @Group))
	@GoTo DonePrinters
@EndIf

@GetOption
	@CLS
                         @Name Output Device Selection

        - Use the Up Arrow and Down Arrow keys to move through the list.
        - Press the SPACE BAR to toggle YES/NO.
        - Press ENTER to confirm your selection(s).

	@LocalWindow( 15, 40 )
	@CheckBox
	@Option 102 = "Agfa Forte (SCSI)"
	@Option 105 = "Agfa PCR-II (SCSI)"
	@Option 108 = "Agfa ProPremier (SCSI)"
	@Option 301 = "Calcomp CMP6603"
	@Option 302 = "Calcomp CMP6613"
	@Option 303 = "Calcomp Colormaster"
	@Option 304 = "Calcomp CV5912"
	@Option 305 = "Calcomp CV5913"
	@Option 306 = "Calcomp Plotmaster"
	@Option 502 = "Canon FP-510"
	@Option 600 = "Hewlett Packard DeskJet 500C"
	@Option 501 = "Hewlett Packard PaintJet"
	@Option 602 = "Hewlett Packard PaintJet XL300"
	@Option 700 = "Hitachi VY-PE5000"
	@Option 503 = "Howtek Pixelmaster"
	@Option 1001 = "Lasergraphics LFR"
	@Option 1002 = "Lasergraphics LFRPlus"
	@Option 1003 = "Lasergraphics PFR"
	@Option 1303 = "Mitsubishi G370"
	@Option 1301 = "Mitsubishi G500"
	@Option 1302 = "Mitsubishi G650"
	@Option 1401 = "Mitsubishi S340"
	@Option 1403 = "Mitsubishi S3600"
	@Option 1700 = "PostScript"
	@Option 1004 = "PT Montage FR1"
	@Option 2201 = "Shinko 335"
	@Option 2202 = "Shinko 345"
	@Option 2203 = "Shinko 445"
	@Option 2204 = "Shinko 635"
	@Option 2205 = "Shinko 645"
	@Option 2206 = "Shinko 645B"
	@Option 2300 = "Sony UP-D7000"
	@Option 2601 = "Tektronix 4693D (4MB)"
	@Option 2602 = "Tektronix 4693D (8MB)"
	@Option 2603 = "Tektronix 4693D (12MB)"
	@Option 2604 = "Tektronix 4696"
	@Option 2605 = "Tektronix Colorquick"
	@Option 504 = "Xerox 4020"
@EndOption

/*
**	See if any devices requiring MITSDYE.DRX have been selected
*/
@If ((1401 [= @Option) || (1403 [= @Option))
	@SetOption( 1400 )
@EndIf

/*
**	See if any devices requiring AGFAFILM.DRX have been selected
*/
@If ((102 [= @Option) || (105 [= @Option) || (108 [= @Option))
	@SetOption( 100 )
@EndIf

/*
**	See if any devices requiring CALCOMP.DRX have been selected
*/
@If ((301 [= @Option) || (302 [= @Option) || (303 [= @Option))
	@SetOption( 300 )
@EndIf
@If ((304 [= @Option) || (305 [= @Option) || (306 [= @Option))
	@SetOption( 300 )
@EndIf

/*
**	See if any devices requiring INKJET.DRX have been selected
*/
@If ((501 [= @Option) || (502 [= @Option))
	@SetOption( 500 )
@EndIf
@If ((503 [= @Option) || (504 [= @Option) || (600 [= @Option))
	@SetOption( 500 )
@EndIf

/*
**	See if any devices requiring LSRGRAPH.DRX have been selected
*/
@If ((1001 [= @Option) || (1002 [= @Option))
	@SetOption( 1000 )
@EndIf
@If ((1003 [= @Option) || (1004 [= @Option))
	@SetOption( 1000 )
@EndIf

/*
**	See if any devices requiring MITSUBI.DRX have been selected
*/
@If ((1301 [= @Option) || (1302 [= @Option) || (1303 [= @Option))
	@SetOption( 1300 )
@EndIf

/*
**	See if any devices requiring SHINKO.DRX have been selected
*/
@If ((2201 [= @Option) || (2202 [= @Option) || (2203 [= @Option))
	@SetOption( 2200 )
@EndIf
@If ((2204 [= @Option) || (2205 [= @Option) || (2206 [= @Option))
	@SetOption( 2200 )
@EndIf

/*
**	See if any devices requiring TEKPRN.DRX have been selected
*/
@If ((2601 [= @Option) || (2602 [= @Option) || (2603 [= @Option))
	@SetOption( 2600 )
@EndIf
@If ((2604 [= @Option) || (2605 [= @Option))
	@SetOption( 2600 )
@EndIf

DonePrinters:

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Get scanner selections
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@If (('S' [! @Group) && ('A' [! @Group))
	@GoTo DoneScanners
@EndIf

@GetOption
	@CLS
                         @Name Scanner Device Selection

        - Use the Up Arrow and Down Arrow keys to move through the list.
        - Press the SPACE BAR to toggle YES/NO.
        - Press ENTER to confirm your selection(s).

	@LocalWindow( 15, 40 )
	@CheckBox
	@Option 5000 = "Hewlett Packard ScanJet IIc"
	@Option 5100 = "Howtek Personal Scanner"
	@Option 5202 = "Howtek Scanmaster/Transparency"
	@Option 5203 = "Howtek Scanmaster II"
	@Option 5204 = "Howtek Scanmaster 35"
	@Option 5205 = "Howtek Scanmaster 35+"
	@Option 5206 = "Howtek Scanmaster 35II"
	@Option 5210 = "Sharp JX-300"
	@Option 5211 = "Sharp JX-320"
	@Option 5212 = "Sharp JX-320/Transparency"
@EndOption

/*
**	See if any devices requiring SCANDRV.DRX have been selected
*/
@If ((5202 [= @Option) || (5203 [= @Option))
	@SetOption( 5200 )
@EndIf
@If ((5204 [= @Option) || (5205 [= @Option) || (5206 [= @Option))
	@SetOption( 5200 )
@EndIf
@If ((5210 [= @Option) || (5211 [= @Option) || (5212 [= @Option))
	@SetOption( 5200 )
@EndIf

DoneScanners:


/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Get font selections
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@If (('F' [! @Group) && ('A' [! @Group))
	@GoTo DoneFonts
@EndIf

@GetOption
	@CLS
            Please select the @Name fonts that you wish to install.
          (Note: Each set adds 3 to 5 minutes to installation time.)

        - Use the Up Arrow and Down Arrow keys to move through the list.
        - Press the SPACE BAR to toggle YES/NO.
        - Press ENTER to confirm your selection(s).

	@LocalWindow( 15, 40 )
	@CheckBox
	@Option 1 = "Set 1: Abbess - Benson"
	@Option 11 = "Set 1: Abbess - Benson PFM files"
	@Option 2 = "Set 2: Bering - Clarendon"
	@Option 12 = "Set 2: Bering - Clarendon PFM files"
	@Option 3 = "Set 3: Cleveland - Doughboy"
	@Option 13 = "Set 3: Cleveland - Doughboy PFM files"
	@Option 4 = "Set 4: Dressmaker - Futana"
	@Option 14 = "Set 4: Dressmaker - Futana PFM files"
	@Option 5 = "Set 5: Gallant - Italiante"
	@Option 15 = "Set 5: Gallant - Italiante PFM files"
	@Option 6 = "Set 6: Jasper - Microbus"
	@Option 16 = "Set 6: Jasper - Microbus PFM files"
	@Option 7 = "Set 7: Migra - Orpheus"
	@Option 17 = "Set 7: Migra - Orpheus PFM files"
	@Option 8 = "Set 8: Palent - Rigamarole"
	@Option 18 = "Set 8: Palent - Rigamarole PFM files"
	@Option 9 = "Set 9: Rillo - Subot"
	@Option 19 = "Set 9: Rillo - Subot PFM files"
	@Option 10 = "Set 10: Talon - Worda"
	@Option 20 = "Set 10: Talon - Worda PFM files"
	@Option 21 = "All of the above"
@EndOption

@If (21 [= @Option)
	@SetOption( 1 )
	@SetOption( 2 )
	@SetOption( 3 )
	@SetOption( 4 )
	@SetOption( 5 )
	@SetOption( 6 )
	@SetOption( 7 )
	@SetOption( 8 )
	@SetOption( 9 )
	@SetOption( 10 )
	@SetOption( 11 )
	@SetOption( 12 )
	@SetOption( 13 )
	@SetOption( 14 )
	@SetOption( 15 )
	@SetOption( 16 )
	@SetOption( 17 )
	@SetOption( 18 )
	@SetOption( 19 )
	@SetOption( 20 )
@EndIf

DoneFonts:

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Confirm selections
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@Display
	@CLS

        You have selected the following for installation ...

	@If (('R' [= @Group) || ('A' [= @Group))
		@If ((9000 [= @Option) || (9001 [= @Option)
								|| (9002 [= @Option) || (9003 [= @Option))
			@Move( 4, 10, "The @Name Program" )
		@Else
			@Move( 4, 10, "The @Name Program (Serial Number @SerNumber)" )
		@Endif
		@Move( 5, 10, "Display:" )
		@If (9004 [= @Option)
			@Move( 5, 19, "16-Color VGA" )
		@ElseIf (9005 [= @Option)
			@Move( 5, 19, "VESA 24 bit VGA" )
		@ElseIf (9006 [= @Option)
			@Move( 5, 19, "Diamond Stealth VGA" )
		@ElseIf (9007 [= @Option)
			@Move( 5, 19, "Orchid Farenheit 1280 VGA" )
		@ElseIf (9008 [= @Option)
			@Move( 5, 19, "Orchid Pro-Designer II VGA" )
		@ElseIf (9009 [= @Option)
			@Move( 5, 19, "Renoir VGA" )
		@ElseIf (9010 [= @Option)
			@Move( 5, 19, "Renoir NT VGA" )
		@ElseIf (9011 [= @Option)
			@Move( 5, 19, "Renoir 24-Bit VGA" )
		@ElseIf (9012 [= @Option)
			@Move( 5, 19, "Speedstar High-Color VGA" )
		@ElseIf (9013 [= @Option)
			@Move( 5, 19, "Ultimate VGA" )
		@ElseIf (9014 [= @Option)
			@Move( 5, 19, "Generic Tseng 16-Bit High-Color VGA" )
		@ElseIf (9015 [= @Option)
			@Move( 5, 19, "Generic Tseng 24-Bit High-Color VGA" )
		@Else
			@Move( 5, 19, "Generic S3 High-Color VGA" )
		@EndIf
		@If ('M' [= @Group)
			@Move( 6, 10, "Pointing Device: Mouse" )
		@ElseIf ('T' [= @Group)
			@Move( 6, 10, "Pointing Device: Tablet" )
		@Else
			@Move( 6, 10, "Pointing Device: Mouse and Tablet" )
		@Endif
	@EndIf
	@If ('P' [= @Group)
		@Move( 7, 10, "Output Device Drivers" )
	@Endif
	@If ('S' [= @Group)
		@Move( 8, 10, "Scanner Drivers" )
	@Endif
	@If ('F' [= @Group)
		@Move( 9, 10, "@Name Fonts" )
	@Endif
	@If ('Y' [= @Group)
		@Move( 10, 10, "@Name Styles" )
	@Endif


	@Move ( 15, 10, "... to @OutDrive:\\@SubDir" )





	@Pause
@EndDisplay

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	If installing the main program, make RIO.BAT, RIOPARAM.INF, and RIOMENU.INF
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@If (('R' [! @Group) && ('A' [! @Group))
	@GoTo DoneBatFiles
@EndIf

@MkDir( "@OutDrive:\\@SubDir\\DRIVERS" )
@MkDir( "@OutDrive:\\@SubDir\\SCENES" )
@MkDir( "@OutDrive:\\@SubDir\\STYLES" )
@MkDir( "@OutDrive:\\@SubDir\\COLORS" )
@MkDir( "@OutDrive:\\@SubDir\\FONTS" )
@MkDir( "@OutDrive:\\@SubDir\\PICS" )

@Write( "@OutDrive:\\@SubDir\\RIO.BAT", "wt", "@@ECHO OFF\n" )
@Write( , , "EXIT\n" )
@Write( , , "ECHO @Name @Version by AT&T\n\n" )
@Write( , , "@OutDrive:\n" )
@Write( , , "CHDIR \\@SubDir\n" )
@Write( , , "RIOROOT RIOMAIN.EXE\n" )

@Write( "@OutDrive:\\@SubDir\\RIOMENU.INF", "wt", "\n" )
@If ((9000 [= @Option) || (9001 [= @Option)
								|| (9002 [= @Option) || (9003 [= @Option))
	@Write( , ,  "MENUWEIGHT 0\n" )
@Else
	@Write( , ,  "MENUWEIGHT 1\n" )
@EndIf

@Write( "@OutDrive:\\@SubDir\\RIOPARAM.INF", "wt", "\n" )
@Write( , ,  "SCENEDIR @OutDrive:\\@SubDir\\SCENES\n" )
@Write( , ,  "STYLEDIR @OutDrive:\\@SubDir\\STYLES\n" )
@Write( , ,  "OBJECTDIR @OutDrive:\\@SubDir\\SCENES\n" )
@Write( , ,  "COLORDIR @OutDrive:\\@SubDir\\COLORS\n" )
@Write( , ,  "FONTDIR @OutDrive:\\@SubDir\\FONTS\n" )
@Write( , ,  "IMAGEDIR @OutDrive:\\@SubDir\\PICS\n" )
@Write( , ,  "IMAGEOUTDIR @OutDrive:\\@SubDir\\PICS\n" )
@Write( , ,  "DRIVERPATH @OutDrive:\\@SubDir\\DRIVERS\n" )
@Write( , ,  "EXTERNAL UTILITY Black&White... BNWS.EXT\n" )
@Write( , ,  "EXTERNAL UTILITY Contrast... CONTRAST.EXT\n" )
@Write( , ,  "EXTERNAL UTILITY Emboss... EMBOSS.EXT\n" )
@Write( , ,  "EXTERNAL UTILITY Flip&Rotate... FLIP.EXT\n" )
@Write( , ,  "EXTERNAL UTILITY Negative... NEGS.EXT\n" )
@Write( , ,  "EXTERNAL UTILITY Overlay... OVLS.EXT\n" )
@Write( , ,  "EXTERNAL UTILITY Pixelize... PIXELIZE.EXT\n" )
@Write( , ,  "EXTERNAL UTILITY Posterize... POSTERIZ.EXT\n" )
@Write( , ,  "EXTERNAL UTILITY Soften... SOFTEN.EXT\n" )
@Write( , ,  "EXTERNAL BUILD SPACE SPACE\n" )
@Write( , ,  "EXTERNAL BUILD Barchart1... BARCHART.EXT\n" )
@Write( , ,  "EXTERNAL BUILD Barchart2... BARCHRT2.EXT\n" )
@Write( , ,  "EXTERNAL BUILD Piechart... PIECHART.EXT\n" )
@Write( , ,  "EXTERNAL BUILD 3D-Piechart... PIE3D.EXT\n" )
@If (('M' [= @Group) && ('G' [= @Group))
	@Write( , ,  "POINTER MOUSE\n" )
@EndIf
@If (('T' [= @Group) && ('G' [= @Group))
	@Write( , ,  "POINTER TABLET\n" )
@EndIf
@If (9000 [= @Option)
	@Write( , , "DISPLAY TARGA\n" )
	@Write( , ,  "ONESCREEN 0\n" )
@EndIf
@If (9001 [= @Option)
	@Write( , , "DISPLAY TARGAPLS\n" )
	@Write( , ,  "ONESCREEN 0\n" )
@EndIf
@If (9002 [= @Option)
	@Write( , , "DISPLAY VISTA\n" )
	@Write( , ,  "ONESCREEN 0\n" )
@EndIf
@If (9003 [= @Option)
	@Write( , , "DISPLAY ILLUM\n" )
	@Write( , ,  "ONESCREEN 0\n" )
@EndIf
@If (9004 [= @Option)
	@Write( , , "DISPLAY VGA\n" )
	@Write( , ,  "ONESCREEN 1\n" )
@EndIf
@If (9005 [= @Option)
	@Write( , , "DISPLAY VESAVGA\n" )
	@Write( , ,  "ONESCREEN 1\n" )
@EndIf
@If ((9008 [= @Option) || (9009 [= @Option) ||
				(9013 [= @Option) || (9014 [= @Option))
	@Write( , , "DISPLAY TSENG\n" )
	@Write( , ,  "ONESCREEN 1\n" )
	@SetOption( 9802 )
@EndIf
@If ((9011 [= @Option) || (9015 [= @Option))
	@Write( , , "DISPLAY TSENG24\n" )
	@Write( , ,  "ONESCREEN 1\n" )
	@SetOption( 9803 )
@EndIf
@If (9012 [= @Option)
	@Write( , , "DISPLAY SPEEDSTR\n" )
	@Write( , ,  "ONESCREEN 1\n" )
@EndIf
@If ((9006 [= @Option) || (9007 [= @Option) ||
				(9010 [= @Option) || (9016 [= @Option))
	@Write( , , "DISPLAY S3\n" )
	@Write( , ,  "ONESCREEN 1\n" )
	@SetOption( 9801 )
@EndIf

DoneBatFiles:


/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Install disks
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@DefineDisk
	@LABEL = "RIO Disk 1"
	@BeginLib RIOMAIN.RED
		@File RIOROOT.EXE @Size 3714 @Group RA
		@File RIOMAIN.EXE @Size 1414806 @Group RA
		@File RIO.PIF @Size 545 @Group RA
		@File BARCHART.EXT @Size 7000 @Group RA @Out DRIVERS\*.*
		@File BARCHRT2.EXT @Size 7612 @Group RA @Out DRIVERS\*.*
		@File BNWS.EXT @Size 17643 @Group RA @Out DRIVERS\*.*
		@File CONTRAST.EXT @Size 15127 @Group RA @Out DRIVERS\*.*
		@File EMBOSS.EXT @Size 32685 @Group RA @Out DRIVERS\*.*
		@File NEGS.EXT @Size 17963 @Group RA @Out DRIVERS\*.*
		@File OVLS.EXT @Size 10523 @Group RA @Out DRIVERS\*.*
		@File PIE3D.EXT @Size 9504 @Group RA @Out DRIVERS\*.*
		@File PIECHART.EXT @Size 6832 @Group RA @Out DRIVERS\*.*
		@File PIXELIZE.EXT @Size 14075 @Group RA @Out DRIVERS\*.*
		@File POSTERIZ.EXT @Size 14335 @Group RA @Out DRIVERS\*.*
		@File SOFTEN.EXT @Size 15137 @Group RA @Out DRIVERS\*.*
		@File FLIP.EXT @Size 13291 @Group RA @Out DRIVERS\*.*
		@File TGA2PCX.EXE @Size 40316 @Group RA
		@File PRNSETUP.PS @Size 535 @Group RA
		@File CB.EXE @Size 11539 @Group RA
		@File WINDOWS.DOC @Size 5737 @Group RA
		@File BITPAD.COM @Size 1654 @Group AGT
		@File SUMMA.COM @Size 1782 @Group AGT
		@File SUMMA486.COM @Size 1782 @Group AGT
		@File WGSL.COM @Size 8220 @Group AGT
		@File WGSL.DOC @Size 1805 @Group AGT
	@EndLib
	@BeginLib RIODEV.RED
		@File AGFAFILM.DRX @Size 40335 @Option 100 @Out DRIVERS\*.*
		@File FORTES.STP @Size 213 @Option 102 @Out DRIVERS\*.*
		@File PCR2S.STP @Size 214 @Option 105 @Out DRIVERS\*.*
		@File PREMIERS.STP @Size 218 @Option 108 @Out DRIVERS\*.*
		@File CALCOMP.DRX @Size 32201 @Option 300 @Out DRIVERS\*.*
		@File CMP6603.STP @Size 244 @Option 301 @Out DRIVERS\*.*
		@File CMP6613.STP @Size 244 @Option 302 @Out DRIVERS\*.*
		@File CLRMSTR.STP @Size 248 @Option 303 @Out DRIVERS\*.*
		@File CV5912.STP @Size 243 @Option 304 @Out DRIVERS\*.*
		@File CV5913.STP @Size 243 @Option 305 @Out DRIVERS\*.*
		@File PLOTMSTR.STP @Size 247 @Option 306 @Out DRIVERS\*.*
		@File INKJET.DRX @Size 38616 @Option 500 @Out DRIVERS\*.*
		@File PAINTJET.STP @Size 239 @Option 501 @Out DRIVERS\*.*
		@File CANON510.STP @Size 240 @Option 502 @Out DRIVERS\*.*
		@File PIXMAST.STP @Size 246 @Option 503 @Out DRIVERS\*.*
		@File XERX4020.STP @Size 238 @Option 504 @Out DRIVERS\*.*
		@File HP500C.STP @Size 200 @Option 600 @Out DRIVERS\*.*
		@File HPXL300.DRX @Size 37196 @Option 602 @Out DRIVERS\*.*
		@File HPXL300.STP @Size 171 @Option 602 @Out DRIVERS\*.*
		@File HPXL300.LUT @Size 119960 @Option 602 @Out DRIVERS\*.*
		@File HITACHI.DRX @Size 24624 @Option 700 @Out DRIVERS\*.*
		@File HITACHI.STP @Size 242 @Option 700 @Out DRIVERS\*.*
		@File LSRGRAPH.DRX @Size 12720 @Option 1000 @Out DRIVERS\*.*
		@File LFR.STP @Size 109 @Option 1001 @Out DRIVERS\*.*
		@File LFRPLUS.STP @Size 113 @Option 1002 @Out DRIVERS\*.*
		@File PFR.STP @Size 109 @Option 1003 @Out DRIVERS\*.*
		@File MONTAGE.STP @Size 106 @Option 1004 @Out DRIVERS\*.*
		@File MITSUBI.DRX @Size 31237 @Option 1300 @Out DRIVERS\*.*
		@File MITG500.STP @Size 244 @Option 1301 @Out DRIVERS\*.*
		@File MITG650.STP @Size 244 @Option 1302 @Out DRIVERS\*.*
		@File MITG370.STP @Size 240 @Option 1303 @Out DRIVERS\*.*
		@File MITSDYE.DRX @Size 24396 @Option 1400 @Out DRIVERS\*.*
		@File MITSDYE.STP @Size 240 @Option 1401 @Out DRIVERS\*.*
		@File MITS3600.STP @Size 240 @Option 1403 @Out DRIVERS\*.*
		@File PSCRIPT.DRX @Size 6800 @Option 1700 @Out DRIVERS\*.*
		@File PSCRIPT.STP @Size 137 @Option 1700 @Out DRIVERS\*.*
		@File SHINKO.DRX @Size 32217 @Option 2200 @Out DRIVERS\*.*
		@File SH335.STP @Size 238 @Option 2201 @Out DRIVERS\*.*
		@File SH345.STP @Size 238 @Option 2202 @Out DRIVERS\*.*
		@File SH445.STP @Size 238 @Option 2203 @Out DRIVERS\*.*
		@File SH635.STP @Size 238 @Option 2204 @Out DRIVERS\*.*
		@File SH645.STP @Size 238 @Option 2205 @Out DRIVERS\*.*
		@File SH645B.STP @Size 239 @Option 2206 @Out DRIVERS\*.*
		@File UPD7000.DRX @Size 15412 @Option 2300 @Out DRIVERS\*.*
		@File UPD7000.STP @Size 300 @Option 2300 @Out DRIVERS\*.*
		@File TEKPRN.DRX @Size 37060 @Option 2600 @Out DRIVERS\*.*
		@File T4693D4.STP @Size 249 @Option 2601 @Out DRIVERS\*.*
		@File T4693D8.STP @Size 249 @Option 2602 @Out DRIVERS\*.*
		@File T4693D12.STP @Size 348 @Option 2603 @Out DRIVERS\*.*
		@File TEK4696.STP @Size 242 @Option 2604 @Out DRIVERS\*.*
		@File CLRQCK.STP @Size 248 @Option 2605 @Out DRIVERS\*.*
		@File SCANJET.DRX @Size 15100 @Option 5000 @Out DRIVERS\*.*
		@File SCANJ2C.SCP @Size 119 @Option 5000 @Out DRIVERS\*.*
		@File HPSDRV.DRX @Size 39580 @Option 5100 @Out DRIVERS\*.*
		@File HTPCS.SCP @Size 192 @Option 5100 @Out DRIVERS\*.*
		@File SCANDRV.DRX @Size 55514 @Option 5200 @Out DRIVERS\*.*
		@File HTSCANTX.SCP @Size 194 @Option 5202 @Out DRIVERS\*.*
		@File HTSCANII.SCP @Size 197 @Option 5203 @Out DRIVERS\*.*
		@File HTSC35.SCP @Size 121 @Option 5204 @Out DRIVERS\*.*
		@File HTSC35P.SCP @Size 121 @Option 5205 @Out DRIVERS\*.*
		@File HTSC35II.SCP @Size 47 @Option 5206 @Out DRIVERS\*.*
		@File SHJX300.SCP @Size 189 @Option 5210 @Out DRIVERS\*.*
		@File SHJX320.SCP @Size 189 @Option 5211 @Out DRIVERS\*.*
		@File SHJX320T.SCP @Size 189 @Option 5212 @Out DRIVERS\*.*
	@EndLib
	@BeginLib FILMLUT.RED
		@File PC35MP2K.LUT @Size 3805 @Option 100 @Out COLORS\*.*
		@File PC35MP4K.LUT @Size 3805 @Option 100 @Out COLORS\*.*
		@File PR35MP2K.LUT @Size 3808 @Option 100 @Out COLORS\*.*
		@File PR35MP4K.LUT @Size 3808 @Option 100 @Out COLORS\*.*
		@File QD4X5K2K.LUT @Size 3795 @Option 100 @Out COLORS\*.*
		@File QD4X5K4K.LUT @Size 3795 @Option 100 @Out COLORS\*.*
		@File QD810K4K.LUT @Size 3796 @Option 100 @Out COLORS\*.*
		@File QZ4X5K2K.LUT @Size 5331 @Option 100 @Out COLORS\*.*
		@File QZ4X5K4K.LUT @Size 5331 @Option 100 @Out COLORS\*.*
		@File QZ810K4K.LUT @Size 5332 @Option 100 @Out COLORS\*.*
	@EndLib
	@File SRLZ.EXE @Size 47879 @Group RA
@EndDisk

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	Chain to the next disk
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
@If (('R' [= @Group) || ('A' [= @Group) || ('Y' [= @Group))
	@GoTo DoRIO2
@ElseIf (901 [= @Option)
	@GoTo DoRIO2
@ElseIf ((1 [= @Option) || (11 [= @Option))
	@GoTo DoFonts1
@ElseIf ((2 [= @Option) || (12 [= @Option))
	@GoTo DoFonts2
@ElseIf ((3 [= @Option) || (13 [= @Option))
	@GoTo DoFonts3
@ElseIf ((4 [= @Option) || (14 [= @Option))
	@GoTo DoFonts4
@ElseIf ((5 [= @Option) || (15 [= @Option))
	@GoTo DoFonts5
@ElseIf ((6 [= @Option) || (16 [= @Option))
	@GoTo DoFonts6
@ElseIf ((7 [= @Option) || (17 [= @Option))
	@GoTo DoFonts7
@ElseIf ((8 [= @Option) || (18 [= @Option))
	@GoTo DoFonts8
@ElseIf ((9 [= @Option) || (19 [= @Option))
	@GoTo DoFonts9
@ElseIf ((10 [= @Option) || (20 [= @Option))
	@GoTo DoFonts10
@Else
	@GoTo AllDone
@EndIf

DoRIO2:
	@Chain( "RIO Disk 2" )
DoFonts1:
	@Chain ("RIO Fonts Disk 1")
DoFonts2:
	@Chain ("RIO Fonts Disk 2")
DoFonts3:
	@Chain ("RIO Fonts Disk 3")
DoFonts4:
	@Chain ("RIO Fonts Disk 4")
DoFonts5:
	@Chain ("RIO Fonts Disk 5")
DoFonts6:
	@Chain ("RIO Fonts Disk 6")
DoFonts7:
	@Chain ("RIO Fonts Disk 7")
DoFonts8:
	@Chain ("RIO Fonts Disk 8")
DoFonts9:
	@Chain ("RIO Fonts Disk 9")
DoFonts10:
	@Chain ("RIO Fonts Disk 10")

/*
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
**	All done with installation.
** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/
AllDone:
@Finish

	@CLS

	@Name @Version is installed.  Type @Name to begin.
	@Pause

	@ChDrive @OutDrive
	@ChDir "@SubDir"

@EndFinish

