home *** CD-ROM | disk | FTP | other *** search
/ Freesoft 1997 March / Freesoft_1997-03_cd.bin / recenz / 079 / INSTALL.DAT < prev    next >
Text File  |  1997-02-19  |  5KB  |  198 lines

  1.  
  2. @DefineProject
  3.     @Name = "VirusScan"
  4.     @Version = "3.0.0"
  5.     @OutDrive = C
  6.     @Subdir = "\\MCAFEE"
  7.     @AssumeHardDisk = 1
  8. @EndProject
  9.  
  10.  
  11. @ClearOption(1001)
  12. @ClearOption(1002)
  13. @ClearOption(2001)
  14. @ClearOption(2002)
  15. @ClearOption(3001)
  16. @ClearOption(3002)
  17. @ClearOption(4001)
  18. @ClearOption(4002)
  19. @ClearOption(5000)
  20. @ClearOption(5001)
  21. @ClearOption(9000)
  22. @ClearOption(9001)
  23.  
  24. @DefineVars
  25.     @Drive @SCANDrive = C
  26.     @Dir @SCANDir = "\\MCAFEE\\VIRUSCAN"
  27. @EndVars
  28.  
  29. @Display
  30. @cls
  31.  
  32.           Welcome to McAfee VirusScan Installation!
  33.  
  34.  
  35.       This Install program will copy the VirusScan files to your
  36.      system, back-up and update your AUTOEXEC.BAT if you allow it.
  37.  
  38.  
  39.  
  40.           Thank you for evaluating McAfee VirusScan
  41.  
  42.  
  43.  
  44.  
  45.         Press Escape at any time to abort installation
  46.  
  47.      Copyright (c) 1994-1997 McAfee Associates, Inc..  All right reserved.
  48.  
  49.  
  50.                        @Pause
  51. @EndDisplay
  52.  
  53. GetAll:
  54. @ClearOption(4001)
  55. @ClearOption(4002)
  56. @GetOutDrive @SCANDrive
  57.   @suppress(A)
  58.   @suppress(B)
  59.   @Cls
  60.              VirusScan Installation Drive
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.      This allows you to specify which hard disk or partition to install
  77.      the VirusScan files on.  This includes the program and documentation
  78.      files, along with the other companion files for the program.  The
  79.      next screen will allow you to specify which directory to install
  80.      VirusScan in.
  81. @EndOutDrive
  82.  
  83. @GetSubDir @SCANDir
  84.  In which directory of your @SCANDrive drive should all VirusScan files be installed?
  85.  
  86.  
  87. @EndSubDir
  88.  
  89. @If (@Exists("@SCANDrive:\\@SCANDir\\SCAN.EXE"))
  90.   @Goto Update
  91. @EndIf
  92. @If (@Exists("@SCANDrive:\\@SCANDir\\CLEAN.EXE"))
  93.   @Goto Update
  94. @EndIf
  95. @If (@Exists("@SCANDrive:\\@SCANDir\\VSHIELD.EXE"))
  96.   @Goto Update
  97. @EndIf
  98.  
  99. @Goto SCAN_OK
  100.  
  101. Update:
  102.   @GetOption
  103.   VirusScan appears to be installed in @SCANDrive:@SCANDir.
  104.   Do you wish to update the prior version?
  105.   @Option 4001 = "Yes, Update prior version"
  106.   @Option 4002 = "No,  Select another drive"
  107.   @EndOption
  108.   @If (4002 [= @Option) @Goto GetAll  @EndIf
  109.  
  110. SCAN_OK:
  111.  
  112.  
  113. @If (@Exists("C:\\AUTOEXEC.BAT"))
  114.   @GetOption
  115.           Back-Up and Update Your AUTOEXEC.BAT File
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.   To fully install VirusScan, a few changes should be made to your
  124.   AUTOEXEC.BAT file. Your PATH statement will be updated to include the
  125.   MCAFEE directory, and VShield statements will be added to allow VShield
  126.   to load each time you reboot your machine.
  127.  
  128.   Do you want Install to do this for you?
  129.     @Option 5000 = "Yes,  Back-Up and Modify AUTOEXEC.BAT."
  130.     @Option 5001 = "No,  Save sample modification to MCAFEE.BAT."
  131.   @EndOption
  132. @else
  133. @display
  134.   The AUTOEXEC.BAT file cannot be found in your root directory.
  135.   Normal Installation would modify this file to load
  136.   VirusScan's VShield automatically when you reboot your machine
  137.  
  138.   A sample file is provided in @SCANDrive:@SCANDir\VSH.TXT
  139. @pause
  140. @enddisplay
  141. @EndIf
  142. @endif
  143.  
  144.  
  145. /*
  146.  * All information available now, go ahead and copy files
  147.  */
  148.  
  149. CompleteInstall:
  150.   @copy("C:\\AUTOEXEC.BAT","C:\\AUTOEXEC.MCF")
  151.   @If (@Exists("C:\\MCAFEE.BAT"))
  152.     @system("del C:\\MCAFEE.BAT > nul")
  153.   @endif
  154.   @system("echo REM >>  C:\\MCAFEE.BAT")
  155.   @system("echo REM This line loads McAfee VSHIELD >>  C:\\MCAFEE.BAT")
  156.   @system("echo @SCANDrive:@SCANDir\\VSHIELD >>  C:\\MCAFEE.BAT")
  157.   @system("echo REM >>  C:\\MCAFEE.BAT")
  158.   @system("type C:\\AUTOEXEC.BAT >> C:\\MCAFEE.BAT")
  159.   @system("echo REM >>  C:\\MCAFEE.BAT")
  160.   @system("echo REM This line reloads McAfee VSHIELD after any network or keyboard drivers >>  C:\\MCAFEE.BAT")
  161.   @system("echo @SCANDrive:@SCANDir\\VSHIELD /reconnect >>  C:\\MCAFEE.BAT")
  162.   @system("echo REM >>  C:\\MCAFEE.BAT")
  163.   @if (5001 [= @Option)
  164.   @else
  165.     @copy("C:\\MCAFEE.BAT","C:\\AUTOEXEC.BAT")
  166.     @setautoexec
  167.       @Overwrite
  168.       @path = "@SCANDrive:\\@SCANDir;"
  169.     @endautoexec
  170.     @copy("C:\\AUTOEXEC.BAT","C:\\MCAFEE.BAT")
  171.   @endif
  172.   
  173. @If (!(@Exists("@SCANDrive:\\@SCANDir")))
  174.   @MkDir ("@SCANDrive:\\@SCANDir")
  175. @EndIf
  176.  
  177. @MoveCStr(01,01,31," Copying VirusScan for DOS files... ")
  178. @Copy("SCAN.EXE","@SCANDrive:\\@SCANDir\\*.*")
  179. @Copy("SCAN.DAT","@SCANDrive:\\@SCANDir\\*.*")
  180. @Copy("NAMES.DAT","@SCANDrive:\\@SCANDir\\*.*")
  181. @Copy("CLEAN.DAT","@SCANDrive:\\@SCANDir\\*.*")
  182. @Copy("FILE_ID.DIZ","@SCANDrive:\\@SCANDir\\*.*")
  183.   
  184. @DefineDisk
  185.     @Label = "Disk #1"
  186.     @BeginLib SCNI300E.001
  187.         @F PACKING.LST @S 1716 @O @SCANDrive:\\@SCANDir\PACKING.LST
  188.         @F VSHLDCRC.EXE @S 44987 @O @SCANDrive:\\@SCANDir\VSHLDCRC.EXE
  189.         @F VSHIELD.EXE @S 207895 @O @SCANDrive:\\@SCANDir\VSHIELD.EXE
  190.         @F VSHEML.EXE @S 34055 @O @SCANDrive:\\@SCANDir\VSHEML.EXE
  191.         @F CHKVSHLD.EXE @S 18949 @O @SCANDrive:\\@SCANDir\CHKVSHLD.EXE
  192.         @F README.1ST @S 16024 @O @SCANDrive:\\@SCANDir\README.1ST
  193.         @F VALIDATE.EXE @S 16326 @O @SCANDrive:\\@SCANDir\VALIDATE.EXE
  194.         @F AGENTS.TXT @S 28702 @O @SCANDrive:\\@SCANDir\AGENTS.TXT
  195.         @F WHATSNEW.TXT @S 16814 @O @SCANDrive:\\@SCANDir\WHATSNEW.TXT
  196.     @EndLib
  197. @EndDisk
  198.