/*
 * Install Script for SCAN 
 * Version: 2.2.0 for DOS EVAL VERSION  
 * Media:  3.5" 1.44MB
 * Build:  1
 * Revised:  03/30/95 by Kenny Liang
 */


@DefineProject
	@Name = "VirusScan"
	@Version = "2.2"
	@OutDrive = C
	@Subdir = "\\MCAFEE"
	@AssumeHardDisk = 1
@EndProject


@ClearOption(1001)
@ClearOption(1002)
@ClearOption(2001)
@ClearOption(2002)
@ClearOption(3001)
@ClearOption(3002)
@ClearOption(4001)
@ClearOption(4002)
@ClearOption(5000)
@ClearOption(5001)
@ClearOption(9000)
@ClearOption(9001)

@DefineVars
	@Drive @SCANDrive = C
	@Dir @SCANDir = "\\MCAFEE\\VIRUSCAN"
@EndVars

@Display
@cls

		  Welcome to McAfee VirusScan Installation


	 This Install program will copy the VirusScan files to your
	     system and update your AUTOEXEC.BAT if you allow it.



		  Thank you for purchasing McAfee VirusScan


		Press Escape at any time to abort installation




      Copyright (c) 1994,1995  McAfee Associates Inc..  All right reserved.

				     @Pause
@EndDisplay

GetAll:
@ClearOption(4001)
@ClearOption(4002)
@GetOutDrive @SCANDrive
  @suppress(A)
  @suppress(B)
  @Cls
			 VirusScan Installation Drive















     This allows you to specify which hard disk or partition to install
     the VirusScan on.  This includes the program and documentation
     files, along with the other companion files for the program.  The
     next screen will allow you to specify which directory to install
     VirusScan in.
@EndOutDrive

@GetSubDir @SCANDir
 In which directory of your @SCANDrive drive should all VirusScan files be installed?


@EndSubDir

@If (@Exists("@SCANDrive:\\@SCANDir\\SCAN.EXE"))
  @Goto Update
@EndIf
@If (@Exists("@SCANDrive:\\@SCANDir\\CLEAN.EXE"))
  @Goto Update
@EndIf
@If (@Exists("@SCANDrive:\\@SCANDir\\VSHIELD.EXE"))
  @Goto Update
@EndIf

@Goto SCAN_OK

Update:
  @GetOption
  VirusScan appears to be installed in @SCANDrive:@SCANDir.
  Do you wish to update the prior version?
  @Option 4001 = "Yes, Update prior version"
  @Option 4002 = "No,  Select another drive"
  @EndOption
  @If (4002 [= @Option) @Goto GetAll  @EndIf

SCAN_OK:


@If (@Exists("C:\\AUTOEXEC.BAT"))
  @GetOption
			Update Your AUTOEXEC.BAT File







  To fully install VirusScan, a few changes should be made to your
  AUTOEXEC.BAT file. Your PATH statement will be updated to include the
  MCAFEE directory, and VShield statements will be added to allow VShield
  to load each time you reboot your machine.

  Do you want Install to do this for you?
    @Option 5000 = "Yes, Modify AUTOEXEC.BAT"
    @Option 5001 = "No,  Save sample modification to MCAFEE.BAT"
  @EndOption
@else
@display
  The AUTOEXEC.BAT file cannot be found in your root directory.
  Normal Installation would modify this file to load
  VirusScan's VShield automatically when you reboot your machine

  A sample file is provided in @SCANDrive:@SCANDir\VSH.TXT
@pause
@enddisplay
@EndIf
@endif

/*
 * All information available now, go ahead and copy files
 */

CompleteInstall:
  @copy("C:\\AUTOEXEC.BAT","C:\\AUTOEXEC.MCF")
  @If (@Exists("C:\\MCAFEE.BAT"))
    @system("del C:\\MCAFEE.BAT > nul")
  @endif
  @system("echo REM >>  C:\\MCAFEE.BAT")
  @system("echo REM This line loads MCAFEEs VSHIELD >>  C:\\MCAFEE.BAT")
  @system("echo @SCANDrive:@SCANDir\\VSHIELD >>  C:\\MCAFEE.BAT")
  @system("echo REM >>  C:\\MCAFEE.BAT")
  @system("type C:\\AUTOEXEC.BAT >> C:\\MCAFEE.BAT")
  @system("echo REM >>  C:\\MCAFEE.BAT")
  @system("echo REM This line reloads MCAFEEs VSHIELD after your network and keyboard drivers >>  C:\\MCAFEE.BAT")
  @system("echo @SCANDrive:@SCANDir\\VSHIELD /reconnect >>  C:\\MCAFEE.BAT")
  @system("echo REM >>  C:\\MCAFEE.BAT")
  @if (5001 [= @Option)
  @else
    @copy("C:\\MCAFEE.BAT","C:\\AUTOEXEC.BAT")
    @setautoexec
      @Overwrite
      @path = "@SCANDrive:\\@SCANDir;"
    @endautoexec
    @copy("C:\\AUTOEXEC.BAT","C:\\MCAFEE.BAT")
  @endif
	      


@DefineDisk
	@Label = "Disk #1"
	@BeginLib SCAN220E.001
		@F README.1ST @S 1869 @O @SCANDrive:\@SCANDir\README.1ST
		@F CLEAN.DAT @S 64716 @O @SCANDrive:\@SCANDir\CLEAN.DAT
		@F NAMES.DAT @S 163083 @O @SCANDrive:\@SCANDir\NAMES.DAT
		@F SCAN.DAT @S 162480 @O @SCANDrive:\@SCANDir\SCAN.DAT
		@F SCAN.EXE @S 97893 @O @SCANDrive:\@SCANDir\SCAN.EXE
		@F VALIDATE.EXE @S 15958 @O @SCANDrive:\@SCANDir\VALIDATE.EXE
		@F AGENTS.TXT @S 32569 @O @SCANDrive:\@SCANDir\AGENTS.TXT
		@F COMPUSER.TXT @S 6252 @O @SCANDrive:\@SCANDir\COMPUSER.TXT
		@F FILENAME.TXT @S 1956 @O @SCANDrive:\@SCANDir\FILENAME.TXT
		@F LICENSE.TXT @S 16483 @O @SCANDrive:\@SCANDir\LICENSE.TXT
		@F REGISTER.TXT @S 9857 @O @SCANDrive:\@SCANDir\REGISTER.TXT
		@F VALIDATE.TXT @S 3560 @O @SCANDrive:\@SCANDir\VALIDATE.TXT
		@F VIRUSCAN.TXT @S 240479 @O @SCANDrive:\@SCANDir\VIRUSCAN.TXT
		@F VSHEML.EXE @S 30876 @O @SCANDrive:\@SCANDir\VSHEML.EXE
		@F VSHIELD.DAT @S 192816 @O @SCANDrive:\@SCANDir\VSHIELD.DAT
		@F CHKVSHLD.EXE @S 18953 @O @SCANDrive:\@SCANDir\CHKVSHLD.EXE
		@F VSHIELD.EXE @S 206925 @O @SCANDrive:\@SCANDir\VSHIELD.EXE
		@F VSHINST.EXE @S 44110 @O @SCANDrive:\@SCANDir\VSHINST.EXE
		@F VSHLDCRC.EXE @S 45105 @O @SCANDrive:\@SCANDir\VSHLDCRC.EXE
		@F VSHLDWIN.EXE @S 29394 @O @SCANDrive:\@SCANDir\VSHLDWIN.EXE
		@F PACKING.LST @S 1953 @O @SCANDrive:\@SCANDir\PACKING.LST
	@EndLib
@EndDisk


AllDone:


@Finish
@ChDrive @SCANDrive
@ChDir "@SCANDir"
	 Installation of @Name is now completed.
	 @Pause
@EndFinish
/* end-of-file */
