home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Security / Security.zip / tbos707.zip / INSTALL.CMD < prev    next >
OS/2 REXX Batch file  |  1997-01-10  |  3KB  |  115 lines

  1. @echo off
  2. echo off
  3. echo        --- Thunderbyte Anti-Virus for OS2 installation ---
  4. rem       --- TbavOS2 install (c) Copyright @1996 ThunderBYTE ---
  5. echo.
  6.  
  7. rem     * Make sure that we can find the utilities in the current directory
  8. if not exist TBAVOS2.EXE goto error1
  9.  
  10. rem     * Make sure that the user specified a destination path
  11. if %1X==X goto error2
  12.  
  13. rem     * Make sure the target path exists or can be created
  14. rem if exist %1\nul goto pathexists
  15. md %1
  16. if not exist %1\nul goto error3
  17. :pathexists
  18.  
  19. rem     * Make sure user did not type something like 'C:' :-)
  20. if exist %1\CONFIG.SYS goto error5
  21.  
  22. echo Please read the License.Doc file. By using the TBAV package you
  23. echo agree with our license agreement. You can print the License.Doc
  24. echo file by typing the following command on the DOS command line:
  25. echo    Copy License.Doc Lpt1
  26. echo Press Ctrl-C to abort this installation batch file, or
  27. pause
  28.  
  29. rem     * Copy the TBAV utilities if necessary
  30. cls
  31. echo Copying files. Please wait...
  32. copy AGENTS.DOC %1>nul
  33. copy APPNOTES.DOC %1>nul
  34. copy ESASS.PGP %1>nul
  35. copy INSTALL.CMD %1>nul
  36. copy LICENSE.DOC %1>nul
  37. copy NO_VSUM.DOC %1 >nul
  38. copy REPORT.DOC %1>nul
  39. copy ORDER.FRM %1>nul
  40. copy ORDER.TXT %1>nul
  41. copy TBAV.FAQ %1>nul
  42. copy TBAVOS2.DLL %1>nul
  43. copy TBAVOS2.EXE %1>nul
  44. copy TBAVOS2.HLP %1>nul
  45. copy TBAVOS2.LNG %1>nul
  46. copy TBOS2NEW.706 %1>nul
  47. copy TBOS2NEW.707 %1>nul
  48. copy TBSCAN.SIG %1>nul
  49. copy TBSCAN.ECI %1>nul
  50. copy TBSETUP.DAT %1>nul
  51. if exist TBKEY.EXE copy TBKEY.EXE %1>nul
  52. if exist TBAV.KEY copy TBAV.KEY %1>nul
  53.  
  54. echo.
  55. echo The Thunderbyte Anti-Virus utilities have been copied to the destination
  56. echo directory. It is recommended to read the documentation of TBAV thoroughly
  57. echo and to make a customized setup. One of the advantages of the Thunderbyte
  58. echo Anti-Virus utilities is flexibility and the possibility to configure
  59. echo them to suit your needs in an optimal way.
  60. echo.
  61. goto end
  62.  
  63. :error1
  64. echo Error: Invalid program invocation!
  65. echo.
  66. echo Make sure that you invoke INSTALL.CMD in the directory where the
  67. echo TBAV utilities can be found!
  68. echo.
  69. echo Example: if the TBAV utilities can be found on drive A:, you should type:
  70. echo A: [enter]
  71. echo INSTALL [path] [enter]
  72. goto end
  73.  
  74. :error2
  75. echo Error: No destination path specified!
  76. echo.
  77. echo You have to specify the destination path for the TBAV utilities!
  78. echo Even if the utilities are already in the destination path.
  79. echo.
  80. echo Example:
  81. echo If the TBAV utilities are or should be copied to C:\TBAV, please type:
  82. echo INSTALL C:\TBAV
  83. goto end
  84.  
  85. :error3
  86. echo Error: Unable to creat destination directory %1
  87. echo.
  88. echo Make sure you enter an existing destination path or a path that can be created!
  89. goto end
  90.  
  91. :error4
  92. echo Error: Unable to copy files in directory %1
  93. echo.
  94. echo Disk full? Access denied?
  95. goto end
  96.  
  97. :error5
  98. echo Error: No target directory specified!
  99. echo.
  100. echo Make sure you enter a full destination path!
  101. echo %1 is not sufficient!
  102. echo.
  103. echo Example:
  104. echo If the TBAV utilities are or should be copied to C:\TBAV, please type:
  105. echo INSTALL C:\TBAV
  106. goto end
  107.  
  108. :flush
  109. echo.
  110. echo If you have a disk cache installed, wait a few seconds to allow the
  111. echo cache to flush the buffers, and reboot...
  112.  
  113. :end
  114.  
  115.