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

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

@Memory = 489			/* Amount of memory in K 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 POWERON has been found. */
	@Integer		@PowerOnFound = 0
							/* An internally set variable to indicate if SUPERPCK has been found. */
	@Integer		@SuperFound = 0
							/* An internally set variable to indicate if PCKSPL has been found. */
	@Integer		@PckSplFound = 0
							/* An internally set variable to indicate if PCKKEY has been found. */
	@Integer		@PckKeyFound = 0
							/* An internally set variable to indicate if PCKSCRN has been found. */
	@Integer		@PckScrnFound = 0
							/* An internally set variable to indicate if PCKRAMD has been found. */
	@Integer		@PckRamDFound = 0
							/* An internally set variable to indicate if KEYSAVE has been found. */
	@Integer		@KeySaveFound = 0
@EndVars

							/* Find the WinMaster 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"	

/*------------------------------- 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 < 2500000)
   @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 2,500,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
     programs are 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.
		
		
     If you are using a subdirectory system and are also using the DOS PATH
     command, you probably want to modify your PATH so that it includes
     the subdirectory you want to use for @Name.
     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 POWERON and POWEROFF batch files and
      the @Name programs without changing to the 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 POWERON and POWEROFF batch files and
      the @Name programs without changing to the 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 POWERON and POWEROFF batch files and
      the @Name programs without changing to the 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
      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 ----------------------------------*/

/*---------------------------------- USE DESQVIEW --------------------------------------*/
@If ( 1 [! @Option )
  @GetOption
 Do you run Quarterdeck's DESQView?





      If you answer "Yes" and you do not currently have a PCKWIK.INI
      configuration file, INSTALL creates the file and adds the
      'ExpandedMemory = False' parameter to the Keyboard Accelerator,
      Screen Accelerator, and Print Spooler. They then load in Upper
      Memory Blocks or conventional 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 12 = " No, I do not use DESQView."
  @Option 11 = " Yes, I use DESQView."
  @EndOption
@EndIf
/*---------------------------------- USE DESQVIEW --------------------------------------*/

/*------------------------------ USE NETWORK PRINTER -----------------------------------*/
@GetOption
 Do you use a local printer (a printer connected directly to your computer)?






      If you answer "No" but print to a local printer, your printer will 
      print slowly. However, a network printer will print at normal speed.

      If you answer "No" and you do not currently have a PCKWIK.INI
      configuration file, INSTALL creates the file and adds the
      'OutputToBios = True' parameter for the Print Spooler. This forces
      the Spooler to send all output through your computer's BIOS so you
      can print to a network printer. However, if 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 22 = " Yes, I use a local printer (or no printer at all)."
  @Option 21 = " No, I use a printer which I access through a network."
@EndOption
/*------------------------------ USE NETWORK PRINTER -----------------------------------*/

/*----------------------------- INSTALL CD-ROM DRIVER-----------------------------------*/
@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.

		If you select "Yes" and are loading your CD-ROM driver high, you should
		run your memory manager's optimize program after installing Power Pak.


	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
/*----------------------------- INSTALL CD-ROM DRIVER-----------------------------------*/

/*-------------------------------- INSTALL RAM DISK ------------------------------------*/
@GetGroups
   @Cls
 Do you wish to install the PC-Kwik RAM Disk?






      @Name includes a RAM Disk that sets up a new drive using
      memory borrowed from Super PC-Kwik.  The RAM Disk 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.






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

  @Set K = "No, do not install RAM Disk driver."
  @Set I = "Yes, add the line to the CONFIG.SYS file."
  @Set J = "No, add the line to the CONFIG.NEW file."
@EndGroups
/*-------------------------------- INSTALL RAM DISK ------------------------------------*/

/*-------------------------- INSTALL KEY BUFFER EXPANDER -------------------------------*/
@If ('I' [= @Group)
  @GetGroups
     @Cls
 Do you wish to install the PC-Kwik expanded keystroke buffer?






    @Name includes KeySave, an expanded keystroke buffer
    that lets you type ahead more than DOS's 16 characters.  The KeySave
    driver can be installed by adding a line to your CONFIG.SYS file.

    If you answer "No", the line will not be added to CONFIG.SYS. To use
    KeySave later, you will need to edit CONFIG.SYS and add the driver.





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

    @Set X = "Yes, add the line to the CONFIG.SYS file."
    @Set Z = "No, do not install the KeySave driver."
  @EndGroups
@ElseIf ('J' [= @Group)
  @GetGroups
    @Cls
 Do you wish to install the PC-Kwik expanded keystroke buffer?






    @Name includes KeySave, an expanded keystroke buffer
    that lets you type ahead more than DOS's 16 characters.  The KeySave
    driver can be installed by adding a line to your CONFIG.NEW file.

    If you answer "No", the line will not be added to CONFIG.NEW. To use
    KeySave later, you will need to edit CONFIG.SYS and add the driver.





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

  @Set Y = "Yes, add the line to the CONFIG.NEW file."
  @Set Z = "No, do not install the KeySave driver."
  @EndGroups
@Else
  @GetGroups
    @Cls
 Do you wish to install the PC-Kwik expanded keystroke buffer?






    @Name includes KeySave, an expanded keystroke buffer
    that lets you type ahead more than DOS's 16 characters.  The KeySave
    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

    If you answer "No", the line will not be added to your CONFIG file.
    To use KeySave later, you will need to edit CONFIG.SYS and 
    add the driver.



  Use the [Up Arrow] & [Down Arrow] keys to move the bar to your choice,
  then press the [Enter] key. 
    @Set Z = "No, do not install the KeySave driver."
    @Set X = "Yes, add the line to the CONFIG.SYS file."
    @Set Y = "No, add the line to the CONFIG.NEW file."
  @EndGroups
@EndIf
/*-------------------------- INSTALL KEY BUFFER EXPANDER -------------------------------*/

/*----------------------------- OLD POWERON.BAT FOUND ----------------------------------*/
@If (@Exists "@OutDrive:@Subdir\\Poweron.bat")
  @GetGroups
    @Cls
 We have found a POWERON.BAT file in the destination subdirectory.
 Would you like us to overwrite this file with a new file?






	
     If you answer No your existing file is left as is.
     If you answer Yes your existing file is replaced, and a backup will
     be made called POWERON.PCK.  This will enable you to use CONVERT to
     transfer parameters previous to Power Pak v3.0 to the new parameters.




  Use the [Up Arrow] & [Down Arrow] keys to move the bar to your choice,
  then press the [Enter] key.
	
  @Set U = "No, do not overwrite the old POWERON.BAT file."
  @Set V = "Yes, make a backup copy, then overwrite the old file."
  @EndGroups
@EndIf
/*----------------------------- OLD POWERON.BAT FOUND ----------------------------------*/
	
/*------------------------ 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 POWERON.BAT TO POWERON.PCK ----------------------------*/
@If ('V' [= @Group )
  @FileCopy "@OutDrive:@Subdir\\POWERON.BAT" "@OutDrive:@Subdir\\POWERON.PCK"
  @If (@Exists "@OutDrive:@Subdir\\Poweroff.bat")
    @FileCopy "@OutDrive:@Subdir\\POWEROFF.BAT" "@OutDrive:@Subdir\\POWEROFF.PCK"
  @EndIf
@EndIf
/*----------------------- BACKUP POWERON.BAT TO POWERON.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 ('D' [= @Group || 'G' [= @Group || 'I' [= @Group || 'X' [= @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	READ.ME
	@File	DISPLAY.COM
	@BeginLib PCK_1.LIF
		@File SUPER.EXE
		@File	SUPER.SB6
		@File	SUPER.SB7
		@File	SUPER.SB8
		@File	PCKWIK.INI
		@File	PCKWIK.SYS
		@File	BENCHPCK.EXE
		@File	TESTEMM.COM
		@File	PCKMAP.EXE
		@File	SUPERWIN.EXE
		@File	SUPERWIN.HLP
		@File	PCKRAMD.SYS
		@File	SAMPLE1.INI
		@File	SAMPLE2.INI
		@File	SAMPLE3.INI
		@File	SUPER.ME
		@File	POWERPAK.ME
	@EndLib
@EndDisk

@DefineDisk
	@Label = "DISK 1"
	@BeginLib PCK_2.LIF
		@File	PCKSCRN.EXE
		@File	KEYSAVE.SYS
		@File	WINTXT.HLP
		@File	WINTXT.INI
		@File	PDISK.EXE
		@File	PDISK.OVL
		@File	PDISK.HLP
		@File	PCKPDISK.EXE
		@File	PDS.EXE
		@File	PSCOPE.EXE
		@File	PDSCHED.EXE
		@File	PDSCHED.HLP
	@EndLib
@EndDisk

@DefineDisk
	@Label = "DISK 2"
	@BeginLib PCK_3.LIF
		@File	KBSETUP.EXE
		@File	KB.HLP
		@File	KWIKBOOT.EXE
	@EndLib
@EndDisk

@DefineDisk
	@Label = "DISK 2"
	@BeginLib PCK_4.LIF
		@File	PCKSPL.EXE
		@File	PCKKEY.EXE
		@File	DHELP.EXE
		@File CONVERT.EXE
		@File CONVERT.HLP
		@File SUPERPCK.EXE
		@File PCKCDROM.SYS
		@File SAFEBOOT.EXE
		@File SWAPXEC.DRV
		@File CGASNOW.DRV
		@File CTS.TXT
	@EndLib
@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"
	@PUTSERIAL "@OutDrive:@SubDir\\KEYSAVE.SYS"
	@PUTSERIAL "@OutDrive:@SubDir\\SUPERWIN.EXE"
	@PUTSERIAL "@OutDrive:@SubDir\\PDISK.OVL"
	@PUTSERIAL "@OutDrive:@SubDir\\PCKPDISK.EXE"
	@PUTSERIAL "@OutDrive:@SubDir\\PDS.EXE"
	@PUTSERIAL "@OutDrive:@SubDir\\PDSCHED.EXE"
	@PUTSERIAL "@OutDrive:@SubDir\\KWIKBOOT.EXE"
	@PUTSERIAL "@OutDrive:@SubDir\\KBSETUP.EXE"
	@PUTSERIAL "@OutDrive:@SubDir\\CONVERT.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\\Pckscrn.com")
		@System "DEL @OutDrive:@SubDir\\Pckscrn.com"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Pckkey.com")
		@System "DEL @OutDrive:@SubDir\\Pckkey.com"
	@EndIf
	@If (@Exists "@OutDrive:@Subdir\\Pckspl.com")
		@System "DEL @OutDrive:@SubDir\\Pckspl.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 ---------------------------------*/

/*----------------------- COPY WINMASTER INI TO PCKWIK.INI -----------------------------*/
	@If ('Q' [= @Group)
		@UseOldWinMastIniAsIni "@OutDrive:@Subdir\\PCKWIK.INI"
	@EndIf
/*----------------------- COPY WINMASTER 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 old files
      parameters.





		 

		 
		 
		 
		 
		 
		 
		 		 	
		@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 ---------------------------*/

	@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"
			/* PC-Kwik OEM's */
			@CachReplace = "IOMCACHE"
			@CachReplace = "GRIDCACH"
			@CachReplace = "MHZCACHE"
			@CachReplace = "ICACHE"
			@CachReplace = "CACHE"
			@CachReplace = "FASTLANE"
			/* PC-Kwik OEM alternates for pckwik.sys */
			@CachReplace = "HPDCACHE"
			@CachReplace = "HPCACHE"
			@CachReplace = "IOMEGA"
			@CachReplace = "QSTEP"
			@CachReplace = "ASTCACHE"
			@CachReplace = "RAPID"
			/* Remove calls to PowerPak Pieces */
			@OurDeviceReplace = "KEYSAVE" "DEVICE=@OutDrive:@Subdir\\KEYSAVE.SYS" "TRUE" "KEYSAVEFOUND"
			@OurDeviceReplace = "PCKRAMD" "DEVICE=@OutDrive:@Subdir\\PCKRAMD.SYS" "TRUE" "PCKRAMDFOUND"
			@DeviceRemove = "PCKWIN" "FALSE"
			@OurDeviceReplace = "PCKWIK.SYS" "DEVICE=@OutDrive:@Subdir\\PCKWIK.SYS" "FALSE"
			@OurDeviceReplace = "PCKCDROM.SYS" "DEVICE=@OutDrive:@Subdir\\PCKCDROM.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"
			/* PC-Kwik OEM's */
			@CachReplace = "IOMCACHE"
			@CachReplace = "GRIDCACH"
			@CachReplace = "MHZCACHE"
			@CachReplace = "ICACHE"
			@CachReplace = "CACHE"
			@CachReplace = "FASTLANE"
			/* PC-Kwik OEM alternates for pckwik.sys */
			@CachReplace = "HPDCACHE"
			@CachReplace = "HPCACHE"
			@CachReplace = "IOMEGA"
			@CachReplace = "QSTEP"
			@CachReplace = "ASTCACHE"
			@CachReplace = "RAPID"
			/* Remove calls to PowerPak Pieces */
			@OurDeviceReplace = "KEYSAVE" "DEVICE=@OutDrive:@Subdir\\KEYSAVE.SYS" "TRUE" "KEYSAVEFOUND"
			@OurDeviceReplace = "PCKRAMD" "DEVICE=@OutDrive:@Subdir\\PCKRAMD.SYS" "TRUE" "PCKRAMDFOUND"
			@DeviceRemove = "PCKWIN" "FALSE"
			@OurDeviceReplace = "PCKWIK.SYS" "DEVICE=@OutDrive:@Subdir\\PCKWIK.SYS" "FALSE"
			@OurDeviceReplace = "PCKCDROM.SYS" "DEVICE=@OutDrive:@Subdir\\PCKCDROM.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"
			/* 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"
			/* Unknown */
			@CachReplace = "CACHE-AT"
			@CachReplace = "CACHE-EM"
			@CachReplace = "CACHE3"
			@CachReplace = "DCACHE"
			@CachReplace = "EMMCACHE"
			@CachReplace = "PC-CACHE"
			@CachReplace = "QCACHE"
			@CachReplace = "SCPLUS"
			@CachReplace = "LLOAD"
			/* PC-Kwik 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 */
			@DeviceRemove = "PCKSCRN" "TRUE" "PCKSCRNFOUND"
			@DeviceRemove = "PCKKEY" "TRUE" "PCKKEYFOUND"
			@DeviceRemove = "PCKSPL" "TRUE" "PCKSPLFOUND"
			@DeviceRemove = "SUPER" "TRUE" "SUPERFOUND"
			@DeviceRemove = "SUPERON" "TRUE" "SUPERFOUND"
			@DeviceRemove = "SUPERPCK" "TRUE" "SUPERFOUND"
			@OurDeviceReplace = "POWERON" "Call @OutDrive:@Subdir\\POWERON" "TRUE" "POWERONFOUND"
		@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"
			/* Unknown */
			@CachReplace = "CACHE-AT"
			@CachReplace = "CACHE-EM"
			@CachReplace = "CACHE3"
			@CachReplace = "DCACHE"
			@CachReplace = "EMMCACHE"
			@CachReplace = "PC-CACHE"
			@CachReplace = "QCACHE"
			@CachReplace = "SCPLUS"
			@CachReplace = "LLOAD"
			/* PC-Kwik 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 */
			@DeviceRemove = "PCKSCRN" "TRUE" "PCKSCRNFOUND"
			@DeviceRemove = "PCKKEY" "TRUE" "PCKKEYFOUND"
			@DeviceRemove = "PCKSPL" "TRUE" "PCKSPLFOUND"
			@DeviceRemove = "SUPER" "TRUE" "SUPERFOUND"
			@DeviceRemove = "SUPERON" "TRUE" "SUPERFOUND"
			@DeviceRemove = "SUPERPCK" "TRUE" "SUPERFOUND"
			@OurDeviceReplace = "POWERON" "Call @OutDrive:@Subdir\\POWERON" "TRUE" "POWERONFOUND"
		@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 THE RAM DISK TO CONFIG.SYS -----------------------------*/
	@If (@PckRamDFound == 0)
		@If ('I' [= @Group)
			@SetConfig
				@Overwrite
				@Device = "@OutDrive:@Subdir\\Pckramd.sys"
			@EndConfig
		@ElseIf ('J' [= @Group)
			@SetConfig
				@DiskProto
				@Device = "@OutDrive:@Subdir\\Pckramd.sys"
			@EndConfig
		@EndIf
	@EndIf
/*------------------------- ADD THE RAM DISK TO CONFIG.SYS -----------------------------*/

/*------------------- ADD THE KEY BUFFER EXPANDER TO CONFIG.SYS ------------------------*/
	@If (@KeySaveFound == 0)
		@If ('X' [= @Group)
			@SetConfig
				@Overwrite
				@AddFirstDevice = "@OutDrive:@Subdir\\KeySave.sys"
			@EndConfig
		@ElseIf ('Y' [= @Group)
			@SetConfig
				@DiskProto
				@AddFirstDevice = "@OutDrive:@Subdir\\KeySave.sys"
			@EndConfig
		@EndIf
	@EndIf
/*------------------- ADD THE KEY BUFFER EXPANDER TO 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 POWERON.BAT TO AUTOEXEC.BAT ----------------------------*/
@If (@PowerOnFound == 0)
  @If ('D' [= @Group)

    @Cls
      A "CALL POWERON.BAT" line 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 POWERON.BAT will not be executed before the environment
      loads; you must edit your AUTOEXEC.BAT to move the 
      "CALL POWERON.BAT" line	before the command that loads your 
      operating environment.




		 

		 
		 
		 			 	
		 

    @Pause
    @SetAutoexec
      @Overwrite
      @Verbatim "Call @OutDrive:@Subdir\\POWERON"
    @EndAutoexec
  @ElseIf ('E' [= @Group)

    @Cls
      A "CALL POWERON.BAT" line has been placed at the end of your
      AUTOEXEC.NEW file.  If you load Microsoft Windows or
      another operating environment in your AUTOEXEC.BAT, move this
      call to POWERON.BAT before the command that loads your 
      operating environment. 




		 

		 
		 
		 
		 

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

/*@EndSecondIntermediate*/

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

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

@Finish

/*------------------------- OVERWRITE/CREATE NEW POWERON.BAT ---------------------------*/
							/* Do overwrite POWERON.BAT. */	
	@Cls
		Making POWERON.BAT and POWEROFF.BAT Files
	@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 ( 11 [= @Option )
		@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[PCKSCRN]" "ExpandedMemory" "FALSE"
		@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[PCKKEY]" "ExpandedMemory" "FALSE"
		@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[PCKSPL1]" "ExpandedMemory" "FALSE"
		@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[PCKSPL2]" "ExpandedMemory" "FALSE"
	@EndIf
	@If ( 21 [= @Option )
		@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[PCKSPL1]" "OutputToBios" "TRUE"
		@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[PCKSPL2]" "OutputToBios" "TRUE"
	@EndIf
	@If ('U' [! @Group )
		@System "ECHO @OutDrive:@SubDir\\SUPER  >TEMP.BAT"
		@System "ECHO @OutDrive:@SubDir\\PCKSCRN  >>TEMP.BAT"
		@System "ECHO @OutDrive:@SubDir\\PCKKEY  >>TEMP.BAT"
		@System "ECHO @OutDrive:@SubDir\\PCKSPL  >>TEMP.BAT"
		@System "COPY /A TEMP.BAT POWERON.BAT >NUL"
		@System "ECHO @OutDrive:@SubDir\\PCKSPL /Unload  >TEMP.BAT"
		@System "ECHO @OutDrive:@SubDir\\PCKKEY /Unload  >>TEMP.BAT"
		@System "ECHO @OutDrive:@SubDir\\PCKSCRN /Unload  >>TEMP.BAT"
		@System "ECHO @OutDrive:@SubDir\\SUPER /Unload  >>TEMP.BAT"
		@System "COPY /A TEMP.BAT POWEROFF.BAT >NUL"
		@If (@Exists "Temp.bat")
			@System "DEL Temp.bat"
		@EndIf
	@EndIf
/*------------------------- OVERWRITE/CREATE NEW POWERON.BAT ---------------------------*/

/*------- UPDATE THE MERGED 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
		@If ('I' [= @Group || @PckRamDFound == 1)
			@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[STARTUP]" "PCKRAMD1" "TRUE"
		@Else
			@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[STARTUP]" "PCKRAMD1" "FALSE"
		@EndIf
		@UpdateIni "@OutDrive:@SubDir\\PCKWIK.INI" "[STARTUP]" "PCKRAMD2" "FALSE"
	@EndIf
/*------- UPDATE THE MERGED 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\\"
		@If (@Exists "C:\\Config.sys")
			@System "@OutDrive:@SubDir\\Display C:\\Config.sys"
		@EndIf
		@If (@Exists "C:\\Autoexec.bat")
			@System "@OutDrive:@SubDir\\Display C:\\Autoexec.bat"
		@EndIf
		@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 files 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."
  @Option 103 = "View the POWERPAK.ME file."
  @EndOption

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

/*----------------------------- DISPLAY EXITING SCREENS --------------------------------*/
							/* Display the exiting screens as all processing is complete. */
	@System "ERASE end.txt"

	@Cls
 This concludes the installation of Power Pak.
	ÿ
 Two batch files have been set up in the subdirectory you chose on the
 target drive:
     POWERON.BAT
     POWEROFF.BAT
	
 To load Power Pak, type POWERON and press [Enter].
 To unload Power Pak, type POWEROFF and press [Enter].
	
	



 If you have requested that the RAM Disk or KeySave drivers be added
 to your CONFIG.SYS file, you need to reboot for them to take effect.
 You may also need to reboot if you are installing a new version of
 Power Pak, or if you requested that POWERON be added to your
 AUTOEXEC.BAT file.

	@Pause

	@Cls
 The Power Pak v3.11 programs you just installed now use full-word
 parameters and configuration files to set options. The old,
 single-letter parameters no longer work.

 If you used Power Pak previous to version 3.0 and you have batch 
 files or command lines that load the programs, you must convert
 your old-style parameters to the new parameters.

 A conversion utility is included with Power Pak. To run it, go to
 the drive and directory in which you've installed Power Pak and type:

     CONVERT

 The conversion utility includes online help to guide you through the
 conversions.

 Please reboot your machine by typing SAFEBOOT so that your converted
 parameters and the new installation of Power Pak can be used.

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

@EndFinish

/* end of file */

