home *** CD-ROM | disk | FTP | other *** search
INSTALL Professional project | 1996-03-22 | 5.0 KB | 206 lines |
- /*
- * Install Script for VirusScan
- * Version: 2.2.5 Scan for DOS
- * Build: 1
- * Updated: 11/07/95 Dmitri Orlov
- * Updated: 08/30/95 Dmitri Orlov
- * Updated: 07/14/95 Dmitri Orlov
- * Revised: 05/17/95 Kenny Liang
- */
-
- @DefineProject
- @Name = "VirusScan"
- @Version = "2.2.11"
- @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 files 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 McAfee 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 McAfee 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
-
- @If (!(@Exists("@SCANDrive:\\@SCANDir")))
- @MkDir ("@SCANDrive:\\@SCANDir")
- @EndIf
-
- @MoveCStr(01,01,31," Copying VirusScan for DOS files... ")
- @Copy("SCAN.EXE","@SCANDrive:\\@SCANDir\\*.*")
- @Copy("SCAN.DAT","@SCANDrive:\\@SCANDir\\*.*")
- @Copy("NAMES.DAT","@SCANDrive:\\@SCANDir\\*.*")
- @Copy("CLEAN.DAT","@SCANDrive:\\@SCANDir\\*.*")
-
- @DefineDisk
- @Label = "Disk #1"
- @BeginLib SCAN22CE.001
- @F VSHEML.EXE @S 33957 @O @SCANDrive:\\@SCANDir\\VSHEML.EXE
- @F WHATSNEW.TXT @S 8596 @O @SCANDrive:\\@SCANDir\\WHATSNEW.TXT
- @F CHKVSHLD.EXE @S 18949 @O @SCANDrive:\\@SCANDir\\CHKVSHLD.EXE
- @F VSHLDCRC.EXE @S 45005 @O @SCANDrive:\\@SCANDir\\VSHLDCRC.EXE
- @F PACKING.LST @S 1508 @O @SCANDrive:\\@SCANDir\\PACKING.LST
- @F VALIDATE.EXE @S 16326 @O @SCANDrive:\\@SCANDir\\VALIDATE.EXE
- @F README.1ST @S 53127 @O @SCANDrive:\\@SCANDir\\README.1ST
- @F VSHIELD.EXE @S 207739 @O @SCANDrive:\\@SCANDir\\VSHIELD.EXE
- @EndLib
- @EndDisk
-
-