home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 5 / ctrom5b.zip / ctrom5b / OS2 / VIRUS / OSC-221I / INSTALL.DAT < prev    next >
Text File  |  1995-04-20  |  8KB  |  229 lines

  1. /*
  2.  * Install script for VirusScan for OS/2 
  3.  *
  4.  * Project: VirusScan  BBS EVALUATION copy 
  5.  * Version: 2.2.1 
  6.  * Media: 1.44 MB 
  7.  * Build 1
  8.  * Last Modified 04/20/95 by Kenny Liang 
  9.  * 
  10.  */
  11.  
  12. @DefineProject
  13.     @Name = "OS2SCAN"
  14.     @Version = "2.2"
  15.   @OutDrive = C
  16.   @SubDir = "\\MCAFEE"
  17.   @AssumeHardDisk = 1
  18. @EndProject
  19.  
  20. @ClearOption(1001)
  21. @ClearOption(1002)
  22. @ClearOption(2001)
  23. @ClearOption(2002)
  24. @ClearOption(3001)
  25. @ClearOption(3002)
  26. @ClearOption(4001)
  27. @ClearOption(4002)
  28. @ClearOption(5000)
  29. @ClearOption(5001)
  30. @ClearOption(9000)
  31. @ClearOption(9001)
  32.  
  33. /* Set default installation paths */
  34. @DefineVars
  35.   @Drive @SCANDrive = C
  36.   @Dir @SCANDir = "\\MCAFEE\\OS2SCAN"
  37. @EndVars
  38.  
  39. /* Check to see if OS/2 Version is below 2.0 */
  40. @If (@OSMajor==1)
  41.   @Display
  42.     @MoveCStr(01,01,79," McAFEE ")
  43.     @MoveCStr(05,04,78," WARNING!") @MoveCStr(05,13,79,"  Installation has detected OS/2 Version 1.x installed on    ")
  44.     @MoveCStr(06,04,79,"           this system.  VirusScan for OS/2 requires OS/2 Version 2.0 ")
  45.     @MoveCStr(07,04,79,"           or higher in order to successfully run.  Please upgrade    ")
  46.     @MoveCStr(08,04,79,"           your system before installing VirusScan for OS/2.          ")
  47.     @Move(20,1)
  48.     @Pause
  49.   @Exit
  50. @EndIf
  51. // Why is there @EndDisplay here?
  52.  
  53. /* Display Title Screen */
  54. @Display
  55.   @Cls
  56.   @MoveCStr(01,17,31," Welcome to the McAfee VirusScan for OS/2 ")
  57.   @MoveCStr(02,17,31,"           Installation Program           ")
  58.   @MoveCStr(05,06,23," This program will copy VirusScan for OS/2 (OS2SCAN.EXE) onto your ")
  59.   @MoveCStr(06,06,23," IBM OS/2 2.0 or higher CPU and optionally update your CONFIG.SYS  ")
  60.   @MoveCStr(07,06,23," and AUTOEXEC.BAT files to allow you to run VirusScan for OS/2 and ")
  61.   @MoveCStr(08,06,23," use the VShield memory-resident virus-prevention program for your ")
  62.   @MoveCStr(09,06,23," DOS and WIN-OS2 sessions.                                         ")
  63.   @MoveCStr(12,06,23," Now is a good time to fill out your VirusScan registration card if")
  64.   @MoveCStr(13,06,23," you have not done so.  Thank you for purchasing McAfee VirusScan. ")
  65.   @MoveCStr(16,06,23," Press the [Esc] key at any time to stop the VirusScan installation")
  66.   @MoveCStr(18,12,23," Copyright (c) 1994,1995 McAfee Associates, Inc..  All rights reserved.")
  67.   @Move(19,01)
  68.                      @Pause
  69. @EndDisplay
  70.  
  71. /* Select VirusScan Installation Drive, Directory */
  72. GetAll:
  73. @ClearOption(4001)
  74. @ClearOption(4002)
  75. @GetOutDrive @SCANDrive
  76.   @Suppress (0,17)
  77.   @MoveCStr(01,24,31," VirusScan Installation Drive ")
  78.   @MoveCStr(05,01,23," NOTE:  Use the Up and Down")
  79.   @MoveCStr(06,01,23," Arrow keys and Enter to choose")
  80.   @MoveCStr(07,01,23," a drive.  The blinking bar is")
  81.   @MoveCStr(08,01,23," the cursor.")
  82.   @Move(16,1)
  83.      This allows you to specify the drive to install VirusScan onto.  This
  84.      includes the VirusScan program files, online documentation files, and
  85.      companion program files for VirusScan.  The next screen allows you to
  86.      specify the directory in which to install VirusScan.
  87. @EndOutDrive
  88. @GetSubDir @SCANDir
  89.   @Prompt = "Which subdirectory? ([Enter] = @SCANDir)"
  90.   @MoveCStr(01,22,31," VirusScan Installation Directory ")
  91.   @MoveCStr(03,03,23,"Into which directory on Drive @SCANDrive: should the VirusScan files be installed?")
  92.   @MoveCStr(16,38,31,"NOTE TO HPFS USERS:")
  93.   @MoveCStr(17,38,23,"Since the VShield virus-protection")
  94.   @MoveCStr(18,38,23,"program is for DOS and WIN-OS2 files")
  95.   @MoveCStr(19,38,23,"you must select a directory that can")
  96.   @MoveCStr(20,38,23,"be accessed by these programs.")
  97. @EndSubDir
  98.  
  99. /* Check for old version */
  100. @If (@Exists("@SCANDrive:\\@SCANDir\\OS2SCAN.EXE")||
  101.      @Exists("@SCANDrive:\\@SCANDir\\VSHIELD.EXE")||
  102.      @Exists("@SCANDrive:\\MCAFEE\\OS2SCAN\\VSHIELD.EXE")||
  103.      @Exists("@SCANDrive:\\MCAFEE\\OS2SCAN\\OS2SCAN.EXE")||
  104.      @Exists("@SCANDrive:\\MCAFEE\\SCANOS2\\VSHIELD.EXE")||
  105.      @Exists("@SCANDrive:\\MCAFEE\\SCANOS2\\OS2SCAN.EXE"))
  106.      
  107.   @Move(13,01)
  108.   @GetOption
  109.       VirusScan appears to be installed in @SCANDrive:@SCANDir.
  110.       Do you wish to update it to the current version?
  111.   @Option 4001 = "Yes, Update prior version"
  112.   @Option 4002 = "No,  Select another drive"
  113. @EndOption
  114. @EndIf
  115.  
  116. @If (4002 [= @Option) 
  117.   @Goto GetAll  
  118. @EndIf
  119.  
  120. SCAN_OK:
  121.  
  122. /* Update AUTOEXEC.BAT */
  123. @ClearOption(5000)
  124. @ClearOption(5001)
  125.  
  126. @If (@Exists("@BootDrive:\\AUTOEXEC.BAT"))
  127.   @GetOption
  128.     @Cls
  129.     @MoveCStr(01,24,31," Update Your AUTOEXEC.BAT File ")
  130.     @Move(13,01)
  131.     To completely install VirusScan for OS/2, changes need to be made to
  132.     your CONFIG.SYS and AUTOEXEC.BAT files.  The PATH statement will be
  133.     updated with the @SCANDrive:@SCANDir directory, and VShield will be
  134.     added to your AUTOEXEC.BAT file to provide virus protection in DOS
  135.     and WIN-OS2 sessions.
  136.     Do you want Install to do this for you?
  137.     
  138.     @Option 5000 = "Yes, modify the AUTOEXEC.BAT file"
  139.     @Option 5001 = "No, save sample modifications to MCAFEE.BAT"
  140.   @EndOption
  141. @Else
  142.   @Display
  143.     The AUTOEXEC.BAT file cannot be found on your boot drive.
  144.     Normally, the installation would modify this file to load the
  145.     VShield virus-protection program when you run DOS and WIN-OS2
  146.     programs.
  147.  
  148.     A sample file has been created as @SCANDrive:@SCANDir\.VSH.TXT
  149.                 
  150.                 @Pause
  151.   @EndDisplay
  152. @EndIf
  153.  
  154. /*
  155.  * All information available now, go ahead and copy files
  156.  */
  157.  
  158. CompleteInstall:
  159. @if (5000 [= @Option)
  160. @MoveCStr(00,01,31," Updating AUTOEXEC.BAT file... ")
  161. @MoveCStr(01,01,31," Copying VirusScan for OS/2 files... ")
  162.  
  163. @SetAutoexec
  164.   @Overwrite
  165.   @SetAppend("MCAFEE","@SCANDrive:@SCANDir;")
  166.   @Path = "@SCANDrive:\\@SCANDir;"
  167.   @Verbatim "@SCANDrive:@SCANDir\\VSHIELD.EXE"
  168. @EndAutoexec
  169. @else
  170. @MoveCStr(00,01,31," Copying VirusScan for OS/2 files... ")
  171. @if (@Exists("BootDrive:\\MCAFEE.BAT"))
  172.     @Delete("BootDrive:\\MCAFEE.BAT")
  173.   @endIf
  174. @System("ECHO REM ----- This line loads McAfee's VShield ----- >> @BootDrive:\\MCAFEE.BAT")
  175. @System("ECHO @SCANDrive:\\@SCANDir\\VSHIELD.EXE >> @BootDrive:\\MCAFEE.BAT")
  176. @System("TYPE @BootDrive:\\AUTOEXEC.BAT >> @BootDrive:\\MCAFEE.BAT")
  177. @System("ECHO REM ----- This line re-activates VShield in case it has been disabled ----- >> @BootDrive:\\MCAFEE.BAT")
  178. @System("ECHO @SCANDrive:\\@SCANDir\\VSHIELD.EXE /RECONNECT >> @BootDrive:\\MCAFEE.BAT")
  179. @endif
  180.  
  181. @If (!(@Exists("@SCANDrive:\\@SCANDir")))
  182.   @MkDir ("@SCANDrive:\\@SCANDir")
  183. @EndIf
  184.  
  185. @Copy("OS2SCAN.EXE","@SCANDrive:\\@SCANDir\\*.*")
  186. @Copy("SCAN.DAT","@SCANDrive:\\@SCANDir\\*.*")
  187. @Copy("NAMES.DAT","@SCANDrive:\\@SCANDir\\*.*")
  188. @Copy("CLEAN.DAT","@SCANDrive:\\@SCANDir\\*.*")
  189.  
  190. @DefineDisk
  191.     @Label = "Disk #1"
  192.     @BeginLib OS221E.001
  193.         @F README.1ST @S 1596 @O @SCANDrive:\@SCANDir\README.1ST
  194.         @F CLEAN.DAT @S 65427 @O @SCANDrive:\@SCANDir\CLEAN.DAT
  195.         @F NAMES.DAT @S 163860 @O @SCANDrive:\@SCANDir\NAMES.DAT
  196.         @F SCAN.DAT @S 163502 @O @SCANDrive:\@SCANDir\SCAN.DAT
  197.         @F FILE_ID.DIZ @S 164 @O @SCANDrive:\@SCANDir\FILE_ID.DIZ
  198.         @F OS2SCAN.EXE @S 251490 @O @SCANDrive:\@SCANDir\OS2SCAN.EXE
  199.         @F OS2VAL.EXE @S 51264 @O @SCANDrive:\@SCANDir\OS2VAL.EXE
  200.         @F PACKING.LST @S 2111 @O @SCANDrive:\@SCANDir\PACKING.LST
  201.         @F AGENTS.TXT @S 31772 @O @SCANDrive:\@SCANDir\AGENTS.TXT
  202.         @F COMPUSER.TXT @S 6252 @O @SCANDrive:\@SCANDir\COMPUSER.TXT
  203.         @F FILENAME.TXT @S 1956 @O @SCANDrive:\@SCANDir\FILENAME.TXT
  204.         @F LICENSE.TXT @S 22941 @O @SCANDrive:\@SCANDir\LICENSE.TXT
  205.         @F REGISTER.TXT @S 3585 @O @SCANDrive:\@SCANDir\REGISTER.TXT
  206.         @F VALIDATE.TXT @S 2987 @O @SCANDrive:\@SCANDir\VALIDATE.TXT
  207.         @F VIRUSCAN.TXT @S 240479 @O @SCANDrive:\@SCANDir\VIRUSCAN.TXT
  208.         @F VSHIELD.DAT @S 194314 @O @SCANDrive:\@SCANDir\VSHIELD.DAT
  209.         @F CHKVSHLD.EXE @S 18947 @O @SCANDrive:\@SCANDir\CHKVSHLD.EXE
  210.         @F VSHEML.EXE @S 30876 @O @SCANDrive:\@SCANDir\VSHEML.EXE
  211.         @F VSHIELD.EXE @S 206921 @O @SCANDrive:\@SCANDir\VSHIELD.EXE
  212.         @F VSHINST.EXE @S 44110 @O @SCANDrive:\@SCANDir\VSHINST.EXE
  213.         @F VSHLDCRC.EXE @S 45099 @O @SCANDrive:\@SCANDir\VSHLDCRC.EXE
  214.         @F VSHLDWIN.EXE @S 29394 @O @SCANDrive:\@SCANDir\VSHLDWIN.EXE
  215.     @EndLib
  216. @EndDisk
  217.  
  218.  
  219. AllDone:
  220. @Finish
  221.          @Name installation is now completed.
  222.  
  223. @ChDrive @SCANDrive
  224. @ChDir "@SCANDir"
  225.  
  226.                    @Pause
  227. @EndFinish
  228.  
  229.