/*   FILE:
 *        INSTALL.DAT
 *
 *   DESCRIPTION:
 *        This script file copies all files from the
 *        distribution disk to the drive of your choice,
 *        changes the path, autoexec.bat and config.sys files
 *        and asks if you want to view the readme files. 
 *
 */

@DefineProject
	@Name			= "Super PC-Kwik"    /* Product Textual Name:  */
	@Version		= "6.02"
	@Subdir			= "\\PCKWIK"
	@OutDrive		= C
	@Terse
@EndProject

@Memory = 460                        /* Amount of memory needed for install */

@DefineVars
							/* Define the complete default sub-directory, with drive letter. */
	@Dir			@Installdir = "@OutDrive:@Subdir"
							/* An internally set Smartdrv.sys dependant integer. */
	@Integer		@SmartdrvEXE = 0
							/* An internally set variable to indicate if the INI merge was successful. */
	@Integer		@INIMerge = 0
							/* An internally set variable to indicate if SUPERPCK has been found. */
	@Integer		@SuperFound = 0
							/* An internally set variable to indicate if DPMS services have been found. */
	@Integer	@DPMSPresent = 0
							/* An internally set variable to indicate if a CD-ROM has been found. */
	@Integer	@CDROMPresent = 0
							/* An internally set variable to hold the device name of the CD-ROM. */
/*	@Qstring	CDROMName = "" */
@EndVars

							/* Find the configuration file, via Setup.ini, Superpck.exe, */
							/*  and Poweron.bat, then set the parsed integer variable to 1. */
@FindIniFile "SUPERPCK.EXE" "SUPER.EXE" "POWERON.BAT" "AUTOEXEC.BAT" "SETUP.INI" "INIMerge"

/*---------------------------------- WARNING SCREEN ------------------------------------*/
@Display








                         Important Information!

    This installation utility installs Super PC-Kwik only. It is 
    intended for users who do NOT run Windows. 

    If you use Windows, please run SETUP.EXE from Windows. Refer 
    to the instructions on your disk or manual if you need help.

    Press the [Esc] key if you want to abort this installation.

     @Pause
@EndDisplay
/*---------------------------------- WARNING SCREEN ------------------------------------*/

/*------------------------------- SERIAL NUMBER PROMPT ---------------------------------*/
							/* Prompt for the serial number if not OEM version. */
	@GetSerial
/*------------------------------- SERIAL NUMBER PROMPT ---------------------------------*/

/*---------------------------------- OPENING SCREEN ------------------------------------*/
@Display
	@Cls
                            Install @Name
                                 Version @version

 This installation utility:

    1. Creates a subdirectory on a drive you specify.

    2. Copies all necessary files from the distribution diskette
       to the subdirectory you have chosen.

    3. Modifies your AUTOEXEC.BAT and CONFIG.SYS system files if 
       you want to automatically start all @Name programs
       using their default parameter values.


    You may press the [Esc] key at any time to abort the installation.

     @Pause
@EndDisplay
/*---------------------------------- OPENING SCREEN ------------------------------------*/

/*------------------------------ GET DESTINATION DRIVE ---------------------------------*/
@GetOutDrive
     @Cls
 On which disk drive do you want to install @Name?

















       Use the [Up Arrow] & [Down Arrow] keys to move the bar to the
       drive on which you want to install, then press the [Enter] key.
@EndOutDrive
/*------------------------------ GET DESTINATION DRIVE ---------------------------------*/

/*---------------------------- CHECK DISK SPACE AVAILABLE -------------------------------*/
@If (@DiskFree @OutDrive < 850000)
   @GetGroups
	@Cls
 There is not enough disk space to install @Name on @OutDrive:.
 Do you wish to continue?





     The drive you've selected only has @DiskFree @OutDrive bytes free.
     This installation requires 850,000 bytes.

     Select NO to exit the installation. You must start the installation
     over after freeing up space on @OutDrive:, or to select a new drive.

     Select YES if you are installing over an old version of @Name
     using the same drive and directory. The installation will continue
     and the new files will replace the previous files.



       Use the [Up Arrow] & [Down Arrow] keys to move the bar to
       your choice, then press the [Enter] key.
     @Set K = "No, I need to free disk space or select a different drive."
     @Set L = "Yes, I am installing over an old version. Continue."
   @EndGroups
@EndIf
/*-------------------------- CHECK DISK SPACE AVAILABLE ----------------------*/

/*-------------------------- EXIT TO FREE DISK SPACE ----------------------*/
@If ('K' [= @Group)
   @Display

	@ExitError

   @EndDisplay
@EndIf
/*---------------------------- EXIT TO FREE DISK SPACE -------------------------------*/

/*---------------------------- GET DESTINATION DIRECTORY -------------------------------*/
@GetSubdir @Subdir
     @Cls
     Now you need to specify the hard disk destination subdirectory,
     the location on your disk where @Name
     is to be installed.

     If you don't know what a "subdirectory" is, you need not worry
     about it;  just press the [Enter] key at the prompt.

     To install in a different subdirectory, [Backspace] over the default
     entry and type in the name of the subdirectory you wish to use;
     press [Enter] when you are done.

     Later in this installation you have the option of adding this
     subdirectory to your PATH.

   @Prompt = " Which subdirectory? "
@EndSubdir
/*---------------------------- GET DESTINATION DIRECTORY -------------------------------*/

/*------------------------------- CHANGE AUTOEXEC.BAT ----------------------------------*/
@GetGroups
	@Cls
 Do you wish to have INSTALL change the AUTOEXEC.BAT file?








    @Name can be started each time you boot your system by
    adding a line to your AUTOEXEC.BAT file.  Or you can have INSTALL add
    a line to a file named AUTOEXEC.NEW and look at the changes we made
    to decide if you want to add this to your existing AUTOEXEC.BAT.





       Use the [Up Arrow] & [Down Arrow] keys to move the bar to
       your choice, then press the [Enter] key.
  @Set D = "Yes, add the line to the AUTOEXEC.BAT file."
  @Set E = "No, add the line to the AUTOEXEC.NEW file."
  @Set F = "No, do not add the line to the AUTOEXEC.BAT file."
@EndGroups
/*------------------------------- CHANGE AUTOEXEC.BAT ----------------------------------*/

/* ------------------------- MAKE SURE .NEW SYSTEM FILES EXIST ----------------------------------*/
        /* if .new files aren't there you get an incorrect message when updating them */
    @If ('E' [= @Group)
        @If (@Exists "c:\\config.sys")
           @FileCopy "c:\\config.sys" "c:\\Config.new"
        @EndIf
        @If (@Exists "c:\\autoexec.bat")
           @FileCopy "c:\\autoexec.bat" "c:\\Autoexec.new"
        @EndIf
    @EndIf
/* ------------------------- MAKE SURE .NEW SYSTEM FILES EXIST ----------------------------------*/


/*---------------------------- ADD PATH TO AUTOEXEC.BAT --------------------------------*/
@If ('D' [= @Group)
	@GetGroups
     @Cls
 Do you wish to have INSTALL add the name of your subdirectory to
 your PATH?






      This allows you to access the @Name programs without
      changing to the @Name subdirectory.

      Note that your PATH statement must be fewer than 128 characters.
      See your DOS manual for more information on the PATH command.





       Use the [Up Arrow] & [Down Arrow] keys to move the bar to
       your choice, then press the [Enter] key.
  @Set G = "Yes, add to the PATH in the AUTOEXEC.BAT file."
  @Set H = "No, do not add to the PATH in the AUTOEXEC.BAT file."
  @EndGroups
@ElseIf ('E' [= @Group)
  @GetGroups
  @Cls
 Do you wish to have INSTALL add the name of your subdirectory to
 your PATH?






      This allows you to access the @Name programs without
      changing to the @Name subdirectory.  

      Note that your PATH statement must be fewer than 128 characters.
      See your DOS manual for more information on the PATH command.





       Use the [Up Arrow] & [Down Arrow] keys to move the bar to
       your choice, then press the [Enter] key.
  @Set S = "Yes, add to the PATH in the AUTOEXEC.NEW file."
  @Set T = "No, do not add to the PATH in the AUTOEXEC.NEW file."
  @EndGroups
@Else
  @GetGroups
  @Cls
 Do you wish to have INSTALL add the name of your subdirectory to
 your PATH?






      This allows you to access the @Name programs without
      changing to the @Name subdirectory.

      Note that your PATH statement must be fewer than 128 characters.
      See your DOS manual for more information on the PATH command.





       Use the [Up Arrow] & [Down Arrow] keys to move the bar to
       your choice, then press the [Enter] key.
  @Set G = "Yes, add to the PATH in the AUTOEXEC.BAT file."
  @Set H = "No, do not add to the PATH in the AUTOEXEC.BAT file."
  @EndGroups
@EndIf
/*---------------------------- ADD PATH TO AUTOEXEC.BAT --------------------------------*/

/*------------------------------ USE WINDOWS 386 MODE ----------------------------------*/
@GetOption
 Do you use Microsoft Windows?







      If you answer "Yes" and you do not currently have a PCKWIK.INI
      configuration file, INSTALL creates the file and adds the
      'ExtendedMemory = True' parameter, placing the cache buffers in
      Extended memory.  If you answer "Yes" and you currently have a
      PCKWIK.INI configuration file, INSTALL preserves this old file.





       Use the [Up Arrow] & [Down Arrow] keys to move the bar to
       your choice, then press the [Enter] key.

  @Option 1 = " Yes "
  @Option 2 = " No "
@EndOption
/*------------------------------ USE WINDOWS 386 MODE ----------------------------------*/

/*----------------------------- INSTALL CD-ROM DRIVER-----------------------------------*/
@If (@CDROMPresent != 0)
@GetGroups
   @Cls
	Do you wish to install the PC-Kwik CD-ROM driver?






		@Name includes a driver to cache CD-ROM drives.  This
		driver can be installed by adding a line to your CONFIG.SYS file.  Or 
		you can have INSTALL add a line to a file named CONFIG.NEW and look at 
		the changes we made to decide if you want to add this to your existing 
		CONFIG.SYS file.


	Use the [Up Arrow] & [Down Arrow] keys to move the bar to your choice,
	then press the [Enter] key. 

	@Set A = "Yes, add the line to the CONFIG.SYS file."
	@Set B = "No, add the line to the CONFIG.NEW file."
	@Set C = "No, do not install the CD-ROM driver."
@EndGroups
@EndIf
/*----------------------------- INSTALL CD-ROM DRIVER-----------------------------------*/
/*----------------------------- INSTALL DPMS DRIVER-----------------------------------*/
@If (@DPMSPresent != 0)
@GetGroups
   @Cls
	Do you want Super PC-Kwik to minimize its use of Conventional Memory?







		Super PC-Kwik can minimize its use of Conventional Memory by using 
		Novell's DPMS technology. DPMS services are already available on 
		your system and Super PC-Kwik will use this technology unless you 
		select No.


	Use the [Up Arrow] & [Down Arrow] keys to move the bar to your choice,
	then press the [Enter] key. 

	@Set I = "Yes, let Super PC-Kwik use DPMS to minimize use of Conventional Memory."
	@Set J = "No, do NOT let Super PC-Kwik use DPMS technology."
@EndGroups
@Else
@GetGroups
   @Cls
	Do you want Super PC-Kwik to minimize its use of Conventional Memory?







		Super PC-Kwik can minimize its use of Conventional Memory by using 
		Novell's DPMS technology. The DPMS driver can be installed by adding
		a line to your CONFIG.SYS file.  Or you can have INSTALL add a line 
		to a file named CONFIG.NEW and look at the changes we made to decide 
		if you want to add this to your existing CONFIG.SYS file.


	Use the [Up Arrow] & [Down Arrow] keys to move the bar to your choice,
	then press the [Enter] key. 

	@Set M = "Yes, add the DPMS line to the CONFIG.SYS file."
	@Set N = "No, add the DPMS line to the CONFIG.NEW file."
	@Set O = "No, do not add the line for DPMS technology."
@EndGroups
@EndIf
/*----------------------------- INSTALL DPMS DRIVER-----------------------------------*/

/*------------------------ OLD PCKWIK.INI FOUND ------------------------------*/
@If (@INIMerge == 1)
	@GetGroups
		@Cls
 You are currently using a PC-Kwik configuration file on your system.
 Would you like us to merge this file with the new PCKWIK.INI?






      If you select YES, a PCKWIK.INI file with new settings is
      created and your current configuration settings are merged.

      Selecting NO either keeps your current settings or replaces
      them with new ones.

      Any existing PCKWIK.INI in the installation directory is backed
      up to PCKWIK.PCK.


       Use the [Up Arrow] & [Down Arrow] keys to move the bar to
       your choice, then press the [Enter] key.
  @Set P = "Yes, merge the current configuration file."
  @Set Q = "No, use the current configuration file without changes."
  @Set R = "No, create a new PCKWIK.INI file."
  @EndGroups
@EndIf
/*------------------------ OLD PCKWIK.INI FOUND ------------------------------*/

/*---------------------- BACKUP AUTOEXEC.BAT TO AUTOEXEC.PCK ---------------------------*/
@If ('D' [= @Group)
  @FileCopy "C:\\AUTOEXEC.BAT" "C:\\AUTOEXEC.PCK"
@EndIf
/*---------------------- BACKUP AUTOEXEC.BAT TO AUTOEXEC.PCK ---------------------------*/

/*------------------------ BACKUP CONFIG.SYS TO CONFIG.PCK -----------------------------*/
@If ('D' [= @Group)
  @FileCopy "C:\\CONFIG.SYS" "C:\\CONFIG.PCK"
@EndIf
/*------------------------ BACKUP CONFIG.SYS TO CONFIG.PCK -----------------------------*/

/*------------------------ BACKUP PCKWIK.INI TO PCKWIK.PCK -----------------------------*/
@If (@Exists "@OutDrive:@Subdir\\Pckwik.ini")
  @FileCopy "@OutDrive:@Subdir\\PCKWIK.INI" "@OutDrive:@Subdir\\PCKWIK.PCK"
@Endif
/*------------------------ BACKUP PCKWIK.INI TO PCKWIK.PCK -----------------------------*/

/*---------------------------- VIEW SYSTEM FILE CHANGES --------------------------------*/
@If ('A' [= @Group || 'D' [= @Group || 'G' [= @Group || 'I' [= @Group || 'X' [= @Group || 'M' [= @Group)
  @GetOption
    @Cls
 Would you like to view your AUTOEXEC.BAT and CONFIG.SYS files to see
 the changes that will be made?






      If you answer YES, your system files are displayed after the
      files are copied and any changes made. The files are backed 
      up to AUTOEXEC.PCK and CONFIG.PCK.







       Use the [Up Arrow] & [Down Arrow] keys to move the bar to
       your choice, then press the [Enter] key.
  @Option 301 = "Yes"
  @Option 302 = "No"
  @EndOption
@EndIf
/*---------------------------- VIEW SYSTEM FILE CHANGES --------------------------------*/

/*======================================================================================*/

							/* Copy the files from the compressed library files to the dest dir. */

@DefineDisk
	@Label = "DISK 1"
	@File	DISPLAY.COM 
	@File	SUPER.E_E 
	@File	SUPER.S_6 
	@File	SUPER.S_7 
	@File	SUPER.S_8 
	@File	SUPER.S_9 
	@File	SUPER.M__ 
	@File	PCKWIK.S_S 
	@File	PCKRAMD.S_S 
	@File	PCKCDROM.S_S 
	@File	PCKWIK.I_I 
	@File	4MBWIN.I_I 
	@File	8MBWIN.I_I 
	@File	MAXCFG.I_I 
	@File	MINCFG.I_I 
	@File	PCKWIK.I_I
	@File	DPMS.E_E 
@EndDisk

/*============================= INTERMEDIATE SECTION ===================================*/

@Intermediate

/*------------------------------ SERIALISE THE EXES ------------------------------------*/
							/* Serialise those files that need it to execute, */
							/*  if not an OEM version. */
							/* Else set the OEM bit in each file. */
		@PUTSERIAL "@OutDrive:@SubDir\\SUPER.EXE"
/*------------------------------ SERIALISE THE EXES ------------------------------------*/

/*--------------------------- DELETE OLD EXES AND BATS ---------------------------------*/
							/* Remove from the target directory any files that we now longer need. */
	@If (@Exists "@OutDrive:@Subdir\\Superpck.com")
		@System "DEL @OutDrive:@SubDir\\Superpck.com"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Pckwin.sys")
		@System "DEL @OutDrive:@SubDir\\Pckwin.sys"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Superpck.sb1")
		@System "DEL @OutDrive:@SubDir\\Superpck.sb1"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Superpck.sb2")
		@System "DEL @OutDrive:@SubDir\\Superpck.sb2"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Superpck.sb3")
		@System "DEL @OutDrive:@SubDir\\Superpck.sb3"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Superpck.sb4")
		@System "DEL @OutDrive:@SubDir\\Superpck.sb4"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Superpck.sb5")
		@System "DEL @OutDrive:@SubDir\\Superpck.sb5"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Superpck.sb6")
		@System "DEL @OutDrive:@SubDir\\Superpck.sb6"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Superpck.sb7")
		@System "DEL @OutDrive:@SubDir\\Superpck.sb7"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Superpck.sb8")
		@System "DEL @OutDrive:@SubDir\\Superpck.sb8"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Superoff.bat")
		@System "DEL @OutDrive:@SubDir\\Superoff.bat"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Superon.bat")
		@System "DEL @OutDrive:@SubDir\\Superon.bat"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\RunBench.bat")
		@System "DEL @OutDrive:@SubDir\\RunBench.bat"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\RnBnch1.bat")
		@System "DEL @OutDrive:@SubDir\\RnBnch1.bat"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\RnBnch2.bat")
		@System "DEL @OutDrive:@SubDir\\RnBnch2.bat"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Benchcnt.txt")
		@System "DEL @OutDrive:@SubDir\\Benchcnt.txt"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Benchend.txt")
		@System "DEL @OutDrive:@SubDir\\Benchend.txt"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Bencherr.txt")
		@System "DEL @OutDrive:@SubDir\\Bencherr.txt"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Bencher1.txt")
		@System "DEL @OutDrive:@SubDir\\Bencher1.txt"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Benchopt.txt")
		@System "DEL @OutDrive:@SubDir\\Benchopt.txt"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Bnchread.me")
		@System "DEL @OutDrive:@SubDir\\Bnchread.me"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Benchpck.dta")
		@System "DEL @OutDrive:@SubDir\\Benchpck.dta"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Bench.dta")
		@System "DEL @OutDrive:@SubDir\\Bench.dta"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Diskread.me")
		@System "DEL @OutDrive:@SubDir\\Diskread.me"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Keyread.me")
		@System "DEL @OutDrive:@SubDir\\Keyread.me"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Mapread.me")
		@System "DEL @OutDrive:@SubDir\\Mapread.me"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Rdskread.me")
		@System "DEL @OutDrive:@SubDir\\Rdskread.me"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Splread.me")
		@System "DEL @OutDrive:@SubDir\\Splread.me"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Scrnread.me")
		@System "DEL @OutDrive:@SubDir\\Scrnread.me"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Pdskread.me")
		@System "DEL @OutDrive:@SubDir\\Pdskread.me"
	@EndIf
/*--------------------------- DELETE OLD EXES AND BATS ---------------------------------*/
/*----------------------- RESTORE THE ORIGINAL INI TO PCKWIK.INI -----------------------------*/
	@If ('Q' [= @Group)
		@UseOldWinMastIniAsIni "@OutDrive:@Subdir\\PCKWIK.INI"
	@EndIf
/*----------------------- RESTORE THE ORIGINAL INI TO PCKWIK.INI -----------------------------*/
/*----------------------------- INI DETECTION SECTION ----------------------------------*/
				/* if the INI file merge was successful. */
@If ('P' [= @Group && @INIMerge == 1)
				/* merge the new INI file with the parsed previously found INI file. */
  @UpdateSystemAndMergeIni "@OutDrive:@Subdir\\PCKWIK.INI"
					/* If successful INI merge */
  @If (@INIMerge == 2)
    @Cls
     INSTALL successfully merged your active PC-Kwik configuration file
     with the new PCKWIK.INI file.
















	@Pause
  @Else
     @Cls
     INSTALL has found an active PC-Kwik INI configuration file on
     your system, but was unable to merge it with the new PCKWIK.INI
     configuration file due to a system error.  You must merge the
     configuration sections by hand if you wish to use the parameters
     in the old PC-Kwik INI file.













	@Pause
  @EndIf
@EndIf
/*----------------------------- INI DETECTION SECTION ----------------------------------*/

/*--------------------- DETECT STACKS AND ALTER IF NECESSARY ---------------------------*/
	@If ('D' [= @Group)
		@SetConfig
			@Overwrite
			@Stacks = 20 256
		@EndConfig
	@ElseIf ('E' [= @Group)
		@SetConfig
			@DiskProto
			@Stacks = 20 256
		@EndConfig
	@EndIf
/*--------------------- DETECT STACKS AND ALTER IF NECESSARY ---------------------------*/
/*--------------------- ADD DPMS DRIVER IF REQUESTED ---------------------------*/
	@If ('M' [= @Group)
		@SetConfig
			@Overwrite
			@Device = "@OutDrive:@SubDir\\DPMS.EXE"
		@EndConfig
	@ElseIf ('N' [= @Group)
		@SetConfig
			@DiskProto
			@Device = "@OutDrive:@SubDir\\DPMS.EXE"
		@EndConfig
	@EndIf
/*--------------------- ADD DPMS DRIVER IF REQUESTED ---------------------------*/

    	@ChDrive @OutDrive
	@ChDir "@SubDir"

/*------------------------ REMOVE ANY CONFIG.SYS COMPETITION ---------------------------*/
	@If ('D' [= @Group)
		@SetConfig
			@Overwrite
			@CachReplace = "IBMCACHE"
			/* FLASH */
			@CachReplace = "EXT"
			@CachReplace = "HIMEMFIX"
			@CachReplace = "FLASHTBL"
			/* NORTON */
			@CachReplace = "NCACHE"
			@CachReplace = "NCACHE-F"
			@CachReplace = "NCACHE-S"
			/* Compaq */
			@CachReplace = "CACHE"
			/* Unknown */
			@CachReplace = "MCACH-AT"
			@CachReplace = "MCACH-EM"
			@CachReplace = "MCACH"
			@CachReplace = "SCPLUS"
			/* Multisoft OEM's */
			@CachReplace = "IOMCACHE"
			@CachReplace = "GRIDCACH"
			@CachReplace = "MHZCACHE"
			@CachReplace = "ICACHE"
			@CachReplace = "CACHE"
			@CachReplace = "FASTLANE"
			/* Multisoft OEM alternates for pckwik.sys */
			@CachReplace = "HPDCACHE"
			@CachReplace = "HPCACHE"
			@CachReplace = "IOMEGA"
			@CachReplace = "QSTEP"
			@CachReplace = "ASTCACHE"
			@CachReplace = "RAPID"
			/* Remove calls to PowerPak Pieces */
			@DeviceRemove = "PCKWIN" "FALSE"
			@OurDeviceReplace = "PCKWIK.SYS" "DEVICE=@OutDrive:@Subdir\\PCKWIK.SYS" "FALSE"
		@EndConfig
	@ElseIf ('E' [= @Group)
		@SetConfig
			@DiskProto
			@CachReplace = "IBMCACHE"
			/* FLASH */
			@CachReplace = "EXT"
			@CachReplace = "HIMEMFIX"
			@CachReplace = "FLASHTBL"
			/* NORTON */
			@CachReplace = "NCACHE"
			@CachReplace = "NCACHE-F"
			@CachReplace = "NCACHE-S"
			/* Compaq */
			@CachReplace = "CACHE"
			/* Unknown */
			@CachReplace = "MCACH-AT"
			@CachReplace = "MCACH-EM"
			@CachReplace = "MCACH"
			@CachReplace = "SCPLUS"
			/* Multisoft OEM's */
			@CachReplace = "IOMCACHE"
			@CachReplace = "GRIDCACH"
			@CachReplace = "MHZCACHE"
			@CachReplace = "ICACHE"
			@CachReplace = "CACHE"
			@CachReplace = "FASTLANE"
			/* Multisoft OEM alternates for pckwik.sys */
			@CachReplace = "HPDCACHE"
			@CachReplace = "HPCACHE"
			@CachReplace = "IOMEGA"
			@CachReplace = "QSTEP"
			@CachReplace = "ASTCACHE"
			@CachReplace = "RAPID"
			/* Remove calls to PowerPak Pieces */
			@DeviceRemove = "PCKWIN" "FALSE"
			@OurDeviceReplace = "PCKWIK.SYS" "DEVICE=@OutDrive:@Subdir\\PCKWIK.SYS" "FALSE"
		@EndConfig
	@EndIf
/*------------------------ REMOVE ANY CONFIG.SYS COMPETITION ---------------------------*/

/*----------------------- REMOVE ANY AUTOEXEC.BAT COMPETITION --------------------------*/
	@If ('D' [= @Group)
		@SetAutoexec
			@Overwrite
			/* MICROSOFT */
			@CachReplace = "SMARTDRV"
			/* FLASH */
			@CachReplace = "FLASH"
			@CachReplace = "EXTFIND"
			@CachReplace = "SHAREEMS"
			@CachReplace = "SHAREXMS"
			/* HYPERDISK */
			@CachReplace = "HYPER286"
			@CachReplace = "HYPER386"
			@CachReplace = "HYPERDK"
			@CachReplace = "HYPERDKC"
			@CachReplace = "HYPERDKE"
			@CachReplace = "HYPERDKX"
			/* VCACHE */
			@CachReplace = "CACHE"
			/* HELIX NETROOM */
			@CachReplace = "CACHECLK"
			/* FAST! */
			@CachReplace = "FASTC"
			@CachReplace = "FASTE"
			@CachReplace = "FASTX"
			@CachReplace = "FASTX286"
			@CachReplace = "FASTX386"
			/* POWER CACHE */
			@CachReplace = "PCPFAST"
			@CachReplace = "PCPSMALL"
			/* NOW! */
			@CachReplace = "NOW!"
			/* NORTON */
			@CachReplace = "NCACHE"
			@CachReplace = "NCACHE-F"
			@CachReplace = "NCACHE-S"
			/* PolyBoost */
			@CachReplace = "386BOOST"
			@CachReplace = "DSKBOOST"
			@CachReplace = "EMMBOOST"
			@CachReplace = "EXTBOOST"
			@CachReplace = "FP3BOOST"
			@CachReplace = "FPMBOOST"
			@CachReplace = "FPXBOOST"
			@CachReplace = "FPYBOOST"
			/* Cache86 */
			@CachReplace = "C86EMS"
			@CachReplace = "C86CONV"
			@CachReplace = "C86EXTEN"
			@CachReplace = "C86"
			/* Unknown */
			@CachReplace = "CACHE-AT"
			@CachReplace = "CACHE-EM"
			@CachReplace = "CACHE3"
			@CachReplace = "DCACHE"
			@CachReplace = "EMMCACHE"
			@CachReplace = "PC-CACHE"
			@CachReplace = "QCACHE"
			@CachReplace = "SCPLUS"
			@CachReplace = "LLOAD"
			/* Multisoft OEM's */
			@CachReplace = "LEPRCACH"
			@CachReplace = "HPCACHE"
			@CachReplace = "HPDCACHE"
			@CachReplace = "QSTEP"
			@CachReplace = "FTCACHE"
			@CachReplace = "PLUSCACH"
			@CachReplace = "EVEREX"
			@CachReplace = "FASTLANE"
			@CachReplace = "ASTCACHE"
			@CachReplace = "RCACHE"
			@CachReplace = "SHAREPCK"
			@CachReplace = "DOSCACHE"
			@CachReplace = "MICROPCK"
			/* Remove calls to PowerPak Pieces */
			@OurDeviceReplace = "SUPER" "@OutDrive:@Subdir\\SUPER" "TRUE" "SUPERFOUND"
			@OurDeviceReplace = "SUPERPCK" "@OutDrive:@Subdir\\SUPER" "TRUE" "SUPERFOUND"
			@OurDeviceReplace = "SUPERON" "@OutDrive:@Subdir\\SUPER" "TRUE" "SUPERFOUND"
			@OurDeviceInsertBeforeAndUpdate = "POWERON" "@OutDrive:@Subdir\\SUPER" "TRUE" "SUPERFOUND"
		@EndAutoexec
	@ElseIf ('E' [= @Group)
		@SetAutoexec
			@DiskProto
			/* MICROSOFT */
			@CachReplace = "SMARTDRV"
			/* FLASH */
			@CachReplace = "FLASH"
			@CachReplace = "EXTFIND"
			@CachReplace = "SHAREEMS"
			@CachReplace = "SHAREXMS"
			/* HYPERDISK */
			@CachReplace = "HYPER286"
			@CachReplace = "HYPER386"
			@CachReplace = "HYPERDK"
			@CachReplace = "HYPERDKC"
			@CachReplace = "HYPERDKE"
			@CachReplace = "HYPERDKX"
			/* VCACHE */
			@CachReplace = "CACHE"
			/* FAST! */
			@CachReplace = "FASTC"
			@CachReplace = "FASTE"
			@CachReplace = "FASTX"
			@CachReplace = "FASTX286"
			@CachReplace = "FASTX386"
			/* POWER CACHE */
			@CachReplace = "PCPFAST"
			@CachReplace = "PCPSMALL"
			/* NOW! */
			@CachReplace = "NOW!"
			/* NORTON */
			@CachReplace = "NCACHE"
			@CachReplace = "NCACHE-F"
			@CachReplace = "NCACHE-S"
			/* PolyBoost */
			@CachReplace = "386BOOST"
			@CachReplace = "DSKBOOST"
			@CachReplace = "EMMBOOST"
			@CachReplace = "EXTBOOST"
			@CachReplace = "FP3BOOST"
			@CachReplace = "FPMBOOST"
			@CachReplace = "FPXBOOST"
			@CachReplace = "FPYBOOST"
			/* Cache86 */
			@CachReplace = "C86EMS"
			@CachReplace = "C86CONV"
			@CachReplace = "C86EXTEN"
			@CachReplace = "C86"
			/* Unknown */
			@CachReplace = "CACHE-AT"
			@CachReplace = "CACHE-EM"
			@CachReplace = "CACHE3"
			@CachReplace = "DCACHE"
			@CachReplace = "EMMCACHE"
			@CachReplace = "PC-CACHE"
			@CachReplace = "QCACHE"
			@CachReplace = "SCPLUS"
			@CachReplace = "LLOAD"
			/* Multisoft OEM's */
			@CachReplace = "LEPRCACH"
			@CachReplace = "HPCACHE"
			@CachReplace = "HPDCACHE"
			@CachReplace = "QSTEP"
			@CachReplace = "FTCACHE"
			@CachReplace = "PLUSCACH"
			@CachReplace = "EVEREX"
			@CachReplace = "FASTLANE"
			@CachReplace = "ASTCACHE"
			@CachReplace = "RCACHE"
			@CachReplace = "SHAREPCK"
			@CachReplace = "DOSCACHE"
			@CachReplace = "MICROPCK"
			/* Remove calls to PowerPak Pieces */
			@OurDeviceReplace = "SUPER" "@OutDrive:@Subdir\\SUPER" "TRUE" "SUPERFOUND"
			@OurDeviceReplace = "SUPERPCK" "@OutDrive:@Subdir\\SUPER" "TRUE" "SUPERFOUND"
			@OurDeviceReplace = "SUPERON" "@OutDrive:@Subdir\\SUPER" "TRUE" "SUPERFOUND"
			@OurDeviceInsertBeforeAndUpdate = "POWERON" "@OutDrive:@Subdir\\SUPER" "TRUE" "SUPERFOUND"
		@EndAutoexec
	@EndIf
/*----------------------- REMOVE ANY AUTOEXEC.BAT COMPETITION --------------------------*/

/*@EndIntermediate*/

/*======================== SECOND STAGE INTERMEDIATE SECTION ===========================*/

@SecondIntermediate

/*----------------------- DETECT BUS MASTERING IN CONFIG.SYS ---------------------------*/
	@If ('D' [= @Group)
		@SetConfig
			@Overwrite
			@RemOutLine = "SMARTDRV"
		@EndConfig

	@ElseIf ('E' [= @Group)
		@SetConfig
			@DiskProto
			@RemOutLine = "SMARTDRV"
		@EndConfig
	@EndIf
/*----------------------- DETECT BUS MASTERING IN CONFIG.SYS ---------------------------*/

/*----------------------- ADD EXTENSION TO PATH IN AUTOEXEC.BAT ------------------------*/
	@If ('G' [= @Group)
		@SetAutoexec
			@Overwrite
			@Verbatim "Path = @OutDrive:@Subdir;%PATH%"
		@EndAutoexec
	@ElseIf ('S' [= @Group)
		@SetAutoexec
			@DiskProto
			@Verbatim "Path = @OutDrive:@Subdir;%PATH%"
		@EndAutoexec
	@Else
	@EndIf
/*----------------------- ADD EXTENSION TO PATH IN AUTOEXEC.BAT ------------------------*/


/*------------------------- ADD SUPER.EXE TO AUTOEXEC.BAT ----------------------------*/
@If (@SuperFound == 0)
   @If ('D' [= @Group)
     @Cls
      A line starting Super PC-Kwik has been placed at the end of
      your AUTOEXEC.BAT file.  If you load Microsoft Windows or
      another operating environment in your AUTOEXEC.BAT, this
      call to SUPER.EXE will not be executed before the environment
      loads; you must edit your AUTOEXEC.BAT to move the SUPER
      line before the command that loads your operating environment.












      @Pause
      @SetAutoexec
        @Overwrite
        @Verbatim "@OutDrive:@Subdir\\SUPER"
      @EndAutoexec
   @ElseIf ('E' [= @Group)
     @Cls
      A line starting Super PC-Kwik has been placed at the end of
      your AUTOEXEC.NEW file.  If you load Microsoft Windows or
      another operating environment in your AUTOEXEC.BAT, this
      call to SUPER.EXE will not be executed before the environment
      loads; you must edit your AUTOEXEC.BAT to move the SUPER
      line before the command that loads your operating environment.












      @Pause
      @SetAutoexec
        @DiskProto
        @Verbatim "@OutDrive:@Subdir\\SUPER"
      @EndAutoexec
   @EndIf
@EndIf
/*------------------------- ADD SUPER.EXE TO AUTOEXEC.BAT ----------------------------*/

/*@EndSecondIntermediate*/

/*==================== SECOND STAGE INTERMEDIATE CLOSING SECTION =======================*/

/*================================ CLOSING SECTION =====================================*/

@Finish

/*-------------------------- OVERWRITE/CREATE NEW PCKWIK.INI ---------------------------*/

	@Cls
	@If ( 1 [= @Option )
		@If (@SmartdrvEXE == 1)
			@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[SUPERPCK]" "ExtendedMemory" "TRUE"
			@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[SUPERPCK]" "ReadToTrackBuffer" "TRUE"
		@Else
			@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[SUPERPCK]" "ExtendedMemory" "TRUE"
		@EndIf
	@ElseIf ( 1 [! @Option )
		@If (@SmartdrvEXE == 1)
			@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[SUPERPCK]" "ReadToTrackBuffer" "TRUE"
		@EndIf
	@EndIf
	@If ('J' [= @Group)
		@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[SUPERPCK]" "DPMS" "NO"
	@EndIf
/*-------------------------- OVERWRITE/CREATE NEW PCKWIK.INI ---------------------------*/

/*------- UPDATE THE INI FILE TO REFLECT SUPER'S AND RAMD'S INSTALLATION --------*/
	@If (@INIMerge == 2)
		@If( ('D' [= @Group) ||( @SuperFound >= 1))
			@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[STARTUP]" "SUPERPCK" "TRUE"
		@Else
			@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[STARTUP]" "SUPERPCK" "FALSE"
		@EndIf
		@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[STARTUP]" "PCKRAMD1" "FALSE"
		@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[STARTUP]" "PCKRAMD2" "FALSE"
	@EndIf
/*------- UPDATE THE INI FILE TO REFLECT SUPER'S AND RAMD'S INSTALLATION --------*/

/*-------------------------------- VIEW SYSTEM FILES -----------------------------------*/
							/* Display the startup files if required: */
	@If (301 [= @Option)
		@System "@OutDrive:"
		@System "cd\\"
		@System "If exist C:\\Config.sys @OutDrive:@SubDir\\Display C:\\Config.sys"
		@System "If exist C:\\Autoexec.bat @OutDrive:@SubDir\\Display C:\\Autoexec.bat"
		@ChDrive @OutDrive
		@ChDir "@SubDir"    
	@EndIf
/*-------------------------------- VIEW SYSTEM FILES -----------------------------------*/

/*------------------------ DELETE PPK BAT AND SYS ----------------------------*/
	@If (@Exists "C:\\AUTOEXEC.PPK")
		@System "DEL C:\\AUTOEXEC.PPK"
	@EndIf
	@If (@Exists "C:\\CONFIG.PPK")
		@System "DEL C:\\CONFIG.PPK"
	@EndIf
/*------------------------ DELETE PPK BAT AND SYS ----------------------------*/

/*------------------------ ADD FILENAMES TO MEMMAKER.INF --------------------*/
@AddToEnd "MEMMAKER.INF" "*POWERON" "1"
@AddToEnd "MEMMAKER.INF" "*SUPER" "1"
@AddToEnd "MEMMAKER.INF" "*PCKKEY" "1"
@AddToEnd "MEMMAKER.INF" "*PCKSCRN" "1"
@AddToEnd "MEMMAKER.INF" "*PCKSPL" "1"
@AddToEnd "MEMMAKER.INF" "*KEYSAVE" "1"
/*------------------------ ADD FILENAMES TO MEMMAKER.INF --------------------*/

/*-------------------------ADD CD_ROM DRIVER TO CONFIG.SYS------------------------------*/
	@If ('A' [= @Group)
		@AddCDROM "CONFIG.SYS" "@OutDrive:@SubDir\\PCKCDROM.SYS /Device="
	@ElseIf ('B' [= @Group)
		@AddCDROM "CONFIG.NEW" "@OutDrive:@SubDir\\PCKCDROM.SYS /Device="
	@EndIf
/*-------------------------ADD CD_ROM DRIVER TO CONFIG.SYS------------------------------*/

/*-------------------------------- VIEW README FILES -----------------------------------*/
	/* Display the readme menu and allow the user to select files to view. */
	@Do
		@GetOption
		@Cls
 Select the README file you want to view.















     These files contain last-minute information about @Name.
     You may view each of them now by selecting it in the list or you
     may view them after completing installation by using the DISPLAY
     utility that is included.
		@Option 101 = "Continue with INSTALL."
		@Option 102 = "View the SUPER.ME file."
		@EndOption

		@If (101 [= @Option)
		@ElseIf (102 [= @Option)
			@If (@Exists "SUPER.ME")
				@System "@OutDrive:@SubDir\\DISPLAY @OutDrive:@SubDir\\SUPER.ME"
			@EndIf
		@EndIf
		@Cls
	@While (101 [! @Option)
/*-------------------------------- VIEW README FILES -----------------------------------*/


/*----------------------------- DISPLAY EXITING SCREENS --------------------------------*/
							/* Display the exiting screens as all processing is complete. */
 @Cls


    Installation Complete.

    Thank you for using Super PC-Kwik!

    Please see the manual for further information.

    You must reboot your computer to activate Super PC-Kwik.

 @Pause
/*----------------------------- DISPLAY EXITING SCREENS --------------------------------*/

@EndFinish

/* end of file */

