@DefineProject          					/* define general information of software */
	@Name           = "COASTER"       		/* product name */
	@Version        = "1.0"                 /* current product version */
	@Subdir         = "\\COASTER\\"         /* default installation directory */
	@OutDrive       = C                     /* default installation drive */
	@Requires       @HardDisk
	@InDiskBell	= 1							/* beep user for another disk */
@EndProject

@DefineVars
	@Drive @WDrive 	= C					/* drive where windows is installed */
	@Dir @WDir	 	= "\\WINDOWS"		/* subdirectory where windows is install */
@EndVars

@Display                /* some text screens, with interactive code */
	@Cls

  Welcome to @Name (tm) by ROAD SCHOLAR Software -- the wildest "scream"
  saver for DOS and Windows you've ever seen...or heard!  This automatic
  installation program will copy @Name @Version onto your hard disk
  drive.  In addition, it will perform some other "housekeeping" chores
  for you. These include checking to make sure you have the right kind of
  hardware to run @Name, verifying the integrity of every file it
  copies onto your hard drive and configuring your PC to run @Name.

  To stop this installation, you may press the <Esc> key at any time.
  Don't worry, you won't hurt anything if you do.  During the installation,
  you will be asked several questions.  In most cases just go with the
  answers that we suggest.  This program will install either the Windows
  version, the DOS version, or both versions of @Name.  Just follow the
  instructions -- it's a snap.  Thank you for choosing @Name. If you
  have any problems or questions, please be sure to call us at 713-266-7623.

  @Pause
@EndDisplay

@If ( ((@OSMajor*100)+@OSMinor) < 310 )
	@Display

  Sorry, @Name requires PC/MS-DOS Version 3.10 or higher to operate
  properly.  Installation of the program cannot be completed until you
  upgrade to a newer version of DOS.

		@Pause
		@Abort
	@EndDisplay
@EndIf

@GetOutDrive            /* let user select any available hard drives */
	@CLS    @Suppress A @Suppress B

  To start the installation, first choose a disk drive on which to install
  @Name:














  , <PgUp> or <PgDn> to highlight a drive letter on your hard disk
  The chosen drive letter flashes
  Press <Enter> to continue installation
@EndOutDrive

@GetSubdir              /* let user provide the directory where software will be installed */
	@CLS

  So far, so good!  Now you need to specify the destination sub-directory
  where @Name should be installed. To select the @Subdir sub-directory,
  simply press the <Enter> key.  If, on the other hand, you would rather put
  @Name in a different location, just type another sub-directory name in
  the space provided and press <Enter>:

	@PROMPT = " @Name Sub-Directory "


@EndSubdir

@Display                        /* display system's configuration */
	@Cls

                       YOUR CURRENT SYSTEM CONFIGURATION

		 DOS Version:  @OSMajor.@OSMinor
		 EMM Version:  @EMMMajor.@EMMMinor
  EMS Installed (in bytes):  @EMMTotal
  XMS Installed (in bytes):  @ExtTotal
  RAM Installed (in bytes):  @RAMTotal
		Source drive:  @InDrive
	         Destination:  @OutDrive:@Subdir
			 CPU:  80@CPU

	  Video adapter card: @If(@VideoCard == 'M') MONO @ElseIf
				(@VideoCard == 'C') COLOR @ElseIf
			(@VideoCard == 'V') VGA @ElseIf
			(@VideoCard == 'E') EGA @EndIf
	       Video display: @If(@VideoMonitor == 'C') COLOR @ElseIf
				       (@VideoMonitor == 'M') MONO @ElseIf
		       (@VideoMonitor == 'H') ENHANCED @EndIf

	@Pause

	@If ( @VideoCard != 'V' || @VideoMonitor != 'H' || @CPU < 386 )
	@Cls

	Sorry, your hardware is insufficient to run @Name.  @Name requires
	the following hardware to operate:

		CPU:	80386 Required (80486 highly recommended)
		VIDEO:	VGA Required (graphics accelerator recommended)
		MEMORY:	2MB RAM (8MB recommended)



	@Pause
	@ChDrive @OutDrive
	@Abort
	@EndIf
@EndDisplay

@GetOption
	@CLS

  Your AUTOEXEC.BAT & CONFIG.SYS files will be modified by the installation
  program.  Do you want to proceed with this modification?














  , <PgUp> or <PgDn> to highlight an answer (the chosen answer flashes)
  Press <Enter> to continue installation
		@LocalWindow ( 6,35 )
		@Option 100 = "Yes"
		@Option 200 = "No"
@EndOption

@GetOption
	@CLS

  @Name will run certain 24-bit "True-Color" display modes if you have a
  video card that uses the Cirrus Logic True-Color VGA Controller
  (#GD5426).  Many popular (and inexpensive) VGA cards use the Cirrus
  Logic Controller.  If you think @Name looks good with standard VGA,
  just wait till you see it in 24-bit color!  If you answer "Yes" to the
  following question, the installation program will insert a "True-Color"
  video device driver (@OutDrive:@Subdir\COASTER.SYS) in your
  CONFIG.SYS file.  If you answer "No" or "I Don't Know", the "True-Color"
  device driver will not be added.  If you later get one of these cards,
  you will need to add the (COASTER.SYS) driver to your CONFIG.SYS file.
  Do you have a "True-Color" card that uses the Cirrus Logic Controller?





  , <PgUp> or <PgDn> to highlight an answer (the chosen answer flashes)
  Press <Enter> to continue installation
		@LocalWindow ( 16,36 )
		@Option 300 = "Yes"
		@Option 400 = "No"
		@Option 410 = "I Don't Know"
@EndOption


Retry-Install:
@Setgroup ( B )
@GetGroups
	@CLS
	@CheckBox

  @Name will operate as a screen saver in Windows, or in DOS, or both!
  Please select:














   to move the highlight bar, <Space Bar> to toggle between "Yes" & "No"
  Press "Y" or "N" to toggle all menu selections to either "Yes", or, "No"
  Press <Enter> to continue installation
		@LocalWindow ( 9,36 )
		@Set A = "Install @Name For Windows ONLY"
    	@Set B = "Install @Name For DOS ONLY"
		@Set C = "Install @Name For Both Windows & DOS"
@EndGroups

@If ( !( 'A' [= @Group || 'B' [= @Group || 'C' [= @Group ) )
		@Display
			@Cls

  Whoops! You have to choose at least ONE environment under which to install.










  		@Pause
	@EndDisplay
	@Goto Retry-Install
@Endif

Retry-Win:
@If ( 'A' [= @Group || 'C' [= @Group )
@WDrive = C
@GetOutDrive @WDrive
	@CLS    @Suppress A @Suppress B

  Please specify the disk drive on which Windows is currently installed:















  , <PgUp> or <PgDn> to highlight a drive letter on your hard disk
  The chosen drive letter flashes
  Press <Enter> to continue installation
@EndOutDrive

@GetSubdir @WDir
	@Default = "\\WINDOWS"
	@CLS

  Next, please specify the sub-directory in which Windows is currently
  installed:





	@PROMPT = " Windows Sub-Directory "


@EndSubdir
@Endif

@If ( 'A' [= @Group || 'C' [= @Group )
	@If ( !@DirExists ( "@Wdrive:\\@Wdir") )
		@Display                /* some text screens, with interactive code */
			@Cls

  Whoops!  That's not the correct path for Windows.  Please try again...










  		@Pause
	@EndDisplay
	@Goto Retry-Win
	@Endif
@Endif

Retry-speed:
@ClearOption ( 500 )
@ClearOption ( 600 )
@GetOption						/* warning of hardware requirement */
	@CLS
	                  ** PERFORMANCE TIPS **
  @Name is an extremely complex program that requires powerful hardware to
  achieve it's lifelike animation sequences.  The MINIMUM requirements are
  a 33 MHz 80386 (80486 highly recommended) with lots of "available" RAM
  (5-6 MB recommended).  In addition, a graphics accelerator card is also
  highly recommended.  As you know, each Roller Coaster requires about 5 MB
  of disk space, but what you may not know is that the source files used to
  build @Name were over 200 MB per Coaster!  We used ultra-sophisticated
  compression technology to reduce these files by a factor of 40:1 so our
  Coasters would fit on your hard disk.  Unfortunately, this leading-edge
  technology requires very fast PC's with gobs of memory. Free up as much XMS
  memory as you can, to allow COASTER to preload or buffer the animation.


  Continue the installation?


  , <PgUp> or <PgDn> to highlight an answer (the chosen answer flashes)
  Press <Enter> to continue installation
		@LocalWindow ( 15,35 )
		@Option 500 = "Yes"
		@Option 600 = "No"
@EndOption

@If ( 600 [= @Option )
	@Goto Retry-speed
@EndIf

Retry-Coaster:
@SetGroup ( D )
@GetGroups
	@CLS
	@CheckBox
  And finally, you need to tell the installation program what Roller
  Coasters to install.  If you want maximum thrills and have ample disk
  space, then we suggest you install all three.  To do so, use the
  <Space Bar> to toggle selection #4 to "Yes" & press <Enter>.  This
  selection installs all three Roller Coasters.











  , <PgUp> or <PgDn> to highlight an answer (the chosen answer flashes)
  Press <Enter> to continue installation
		@LocalWindow ( 11,39 )
		@Set D = "Install THE GIANT DIPPER   - Requires  5.2 MB Disk Space"
    	@Set E = "Install THUNDERHAWK        - Requires  5.6 MB Disk Space"
		@Set F = "Install THE WILD ONE       - Requires  6.3 MB Disk Space"
		@Set G = "Install ALL Three Coasters - Requires 17.1 MB Disk Space"
@EndGroups

@If ( !( 'D' [= @Group || 'E' [= @Group || 'F' [= @Group || 'G' [= @Group ) )
		@Display
			@Cls

  Whoops!  You have to choose at least ONE Roller Coaster. Please try again.










  		@Pause
	@EndDisplay
	@Goto Retry-Coaster
@Endif

@DefineDisk
    @Label = "DISK 1"
		@BeginLib AUD-DRV.RED
    		@File PAUDIO.COM	@Size	4500
  			@File SBLASTER.COM	@Size	4000
    		@File ADLIBG.COM	@Size	4900
     		@File ADLIB.COM		@Size	3200
   		    @File NOSOUND.COM	@Size	3100
     		@File SBPRO.COM		@Size 	4000
     		@File PAS16.COM		@Size	5100
      		@File STFX.COM		@Size	3900
     		@File VMSND.COM		@Size	2700
         	@File SOUND     	@Size	870000
     		@File AUDIO.TST		@Size	82000
		@EndLib
		@If ( 'D' [= @Group || 'G' [= @Group )	/* want to install dipper or all */
        	@BeginLib DIPPER.RED
    			@File DIPPER.TBL	@Size	33
    			@File DIPPER.PCX	@Size	17000
    			@File DIPPER.TEK	@Size	26000
    			@File DIPPER.TXT	@Size	530
			@EndLib
		@Endif
		@If ( 'E' [= @Group || 'G' [= @Group )	/* to install thunderhawk or all */
        	@BeginLib THAWK.RED
     			@File THAWK.TEK		@Size	25000
     			@File THAWK.TXT		@Size	530
     			@File THAWK.PCX		@Size	16000
     			@File THAWK.TBL		@Size	33
			@EndLib
		@Endif
		@If ( 'F' [= @Group || 'G' [= @Group )	/* to install wildone or all */
        	@BeginLib WILDONE.RED
   				@File WILDONE.TXT	@Size	700
   				@File WILDONE.TEK	@Size	27000
   				@File WILDONE.PCX	@Size	15000
   				@File WILDONE.TBL	@Size	40
			@EndLib
		@Endif
		@If ( 'D' [= @Group || 'G' [= @Group )		/* want to install dipper */
			@Beginlib DIPPER.001
				@File *.* @Out *.* @Size 5200000
			@Endlib
		@Endif
@EndDisk

@If ( 'D' [= @Group || 'G' [= @Group )			/* want to install dipper */
	@DefineDisk
    	@Label = "DISK 2"
        	@BeginLib DIPPER.002
				@File *.* @AppendTo *.*
			@EndLib
	@EndDisk
@EndIf

@If ( 'D' [= @Group || 'G' [= @Group )		/* want to install dipper */
	@DefineDisk
    	@Label = "DISK 3"
        	@BeginLib DIPPER.003
				@File *.* @AppendTo *.*
			@EndLib
	@EndDisk
@EndIf

@DefineDisk
	@Label = "DISK 4"
			@If ( 'D' [= @Group || 'G' [= @Group )	/* want to install dipper */
        		@BeginLib DIPPER.004
			 		@File *.* @AppendTo *.*
				@EndLib
			@EndIf
			@If ( 'E' [= @Group || 'G' [= @Group )	/* want to install thundertawk */
        	 	@BeginLib THAWK.001
			 		@File *.* @Out *.* @Size 5600000
				@EndLib
			@EndIf
@EndDisk

@If ( 'E' [= @Group || 'G' [= @Group )
 	@DefineDisk
     	@Label = "DISK 5"
        		@BeginLib THAWK.002		/* want to install thundertawk */
			 		@File *.* @AppendTo *.*
				@EndLib
		@EndDisk
@EndIf

@If ( 'E' [= @Group || 'G' [= @Group )
 	@DefineDisk
     	@Label = "DISK 6"			/* want to install thundertawk */
        		@BeginLib THAWK.003
			 		@File *.* @AppendTo *.*
				@EndLib
		@EndDisk
@EndIf

@If ( 'E' [= @Group || 'G' [= @Group )			/* want to install thundertawk */
 	@DefineDisk
     	@Label = "DISK 7"
        		@BeginLib THAWK.004
			 		@File *.* @AppendTo *.*
				@EndLib
		@EndDisk
@EndIf

@DefineDisk
	@Label = "DISK 8"
		@If ( 'E' [= @Group || 'G' [= @Group )
			@BeginLib THAWK.005
				@File *.* @AppendTo *.*
			@EndLib
		@Endif
		@If ( 'F' [= @Group || 'G' [= @Group )
			@BeginLib WILDONE.001
				@File *.* @Out *.* @Size 7400000
			@EndLib
		@Endif
@EndDisk

@If ( 'F' [= @Group || 'G' [= @Group )			/* want to install thundertawk */
 	@DefineDisk
     	@Label = "DISK 9"
        		@BeginLib WILDONE.002
			 		@File *.* @AppendTo *.*
				@EndLib
		@EndDisk
@EndIf

@If ( 'F' [= @Group || 'G' [= @Group )			/* want to install thundertawk */
 	@DefineDisk
     	@Label = "DISK 10"
        		@BeginLib WILDONE.003
			 		@File *.* @AppendTo *.*
				@EndLib
		@EndDisk
@EndIf

@DefineDisk
	@Label = "DISK 11"
		@If ( 'F' [= @Group || 'G' [= @Group )			/* want to install thundertawk */
        		@BeginLib WILDONE.004
			 		@File *.* @AppendTo *.*
				@EndLib
		@EndIf
        @BeginLib COASTER.RED
			@File CSTTSR.EXE	@Size	40000
			@File CSTTUNE.EXE	@Size	60000
			@File CSTISR.SYS	@Size	1100
			@File COASTER.EXE	@Size	230000
			@File OCR.FNT		@Size	1600
			@File COASTER.SYS	@Size  	1600
			@File SETUP.EXE		@Size  	85000
			@File README.TXT    @Size  	15000
			@File DIPPER.CSD	@Size	130
			@File THAWK.CSD		@Size	130
			@File WILDONE.CSD	@Size	130
			@File README.BAT    @Size   36
		@EndLib
		@If ( 'A' [= @Group || 'C' [= @Group )	/* install win or both version */
        	@BeginLib COASTERW.RED
				@File COASTER.PIF	@Out	@Wdrive:@Wdir\\*.*	@Size	600
				@File COASTER.SCR	@Out	@Wdrive:@Wdir\\*.*	@Size	20000
			@EndLib
		@Endif
@EndDisk

@If ( 100 [= @Option )			/* OK to modify the autoexec.bat & config.sys */
@SetConfig
@OverWrite
	@Files   = 30
	@Buffers = 30
	@Device = "@OutDrive:\\@Subdir\\CSTISR.SYS"
	@If ( 300 [= @Option ) 			/* hicolor is installed */
		@Device = "@OutDrive:\\@SubDir\\COASTER.SYS"
	@EndIf
@EndConfig
				/* to put the csttsr porton of coaster as the first line of autoexec.bat */
@Write ("@BootDrive:\\X.Y","wt","@OutDrive:\\@Subdir\\CSTTSR /f@OutDrive:\\@Subdir\\ /QEX /c/a /m=580 /S=300\n")
@ChDrive @BootDrive			/* This is the codes to put rz at the top of autoexec.bat */
@ChDir   "\\"
@System  "echo off"
@System  "copy X.Y+AUTOEXEC.BAT XXX > nul"
@System  "copy autoexec.bat autoexec.cst > nul"
@System  "copy xxx autoexec.bat > nul"
@System  "del x.y > nul"
@System  "del xxx > nul"
@System  "echo on"
@EndIf

@Finish
	@Cls
	@ChDrive @OutDrive
	@ChDir   "@SubDir"
	@System  "setup"			/* setup of the coaster */

  The installation program used to install @Name, INSTALL, is licensed
  software provided by Knowledge Dynamics Corp, P.O. Box 1558, Canyon
  Lake, Texas 78130-1558 (USA).  INSTALL is Copyright (c) 1987-1991 by
  Knowledge Dynamics Corp which reserves all copyright protection
  worldwide.  INSTALL is provided to you for the exclusive purpose of
  installing @Name.  ROAD SCHOLAR Inc. is exclusively responsible for
  the support of @Name, including support during the installation phase.
  In no event will Knowledge Dynamics Corp be able to provide any
  technical support for @Name.

























  Congratulations, installation of @Name is complete!  Be sure to
  re-boot your computer BEFORE using the program (CTRL+ALT+DEL keys). If
  you have any questions or comments please contact us at 1-713-266-7623.

  We've included some important information in a README file that is not in
  the user's manual. You can review this information at any time by typing
  "README" at the "@OutDrive:@SubDir >" prompt.

		     @Name is published by:

		     ROAD SCHOLAR Software
		     2603 Augusta, Suite 1000
		     Houston, Texas 77057
		     Tel: 1-713-266-7623
		     Fax: 1-713-266-4525








	@Pause
	@System  "readme"
@EndFinish
