home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1995 December / SOFM_Dec1995.bin / pc / os2 / os2scan / install.dat < prev    next >
Text File  |  1995-10-31  |  8KB  |  205 lines

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