home *** CD-ROM | disk | FTP | other *** search
/ Freesoft 1997 March / Freesoft_1997-03_cd.bin / recenz / 079 / INSTALL.BAT < prev    next >
DOS Batch File  |  1997-02-19  |  8KB  |  272 lines

  1. rem This batch file does an errorlevel check for VirusScan.  It will
  2. rem not install the product unless all checks are passed.  If an
  3. rem error is encountered during the scan, it will be reported.
  4.  
  5. cls
  6. @echo off
  7. echo.
  8. echo Now SCANNING your memory and your local drives before INSTALLING,
  9. echo please wait...
  10. echo.
  11.  
  12. SCAN /ADL /NOBREAK
  13.  
  14. if errorlevel 100 goto error100
  15. if errorlevel 19 goto error19
  16. if errorlevel 18 goto error18
  17. if errorlevel 17 goto error17
  18. if errorlevel 16 goto error16
  19. if errorlevel 15 goto error15
  20. if errorlevel 14 goto error14
  21. if errorlevel 13 goto error13
  22. if errorlevel 12 goto error12
  23. if errorlevel 11 goto error11
  24. if errorlevel 10 goto error10
  25. if errorlevel 9 goto error9
  26. if errorlevel 8 goto error8
  27. if errorlevel 7 goto error7
  28. if errorlevel 6 goto error6
  29. if errorlevel 5 goto error5
  30. if errorlevel 4 goto error4
  31. if errorlevel 3 goto error3
  32. if errorlevel 2 goto error2
  33. if errorlevel 1 goto error1
  34. if errorlevel 0 goto install
  35.  
  36. echo.
  37. echo An error occurred during installation.  Please contact
  38. echo McAfee Associates Technical Support for assistance.
  39. goto end
  40.  
  41. :install
  42. if exist inst.exe goto DiskOk
  43. goto install
  44. :DiskOk
  45. inst
  46. goto end
  47.  
  48. :error100
  49. echo.
  50. echo ***  WARNING  ***                 ***  OPERATING SYSTEM ERROR  ***
  51. echo ***  ERROR # 100
  52. echo.
  53. echo Operating system error; Scan adds 100 to the original error number.
  54. echo Please contact McAfee Associates Technical Support for assistance.
  55. pause
  56. goto end
  57.  
  58. :error19
  59. echo.
  60. echo ***  WARNING  ***                               ***  RESERVED  ***
  61. echo ***  ERROR # 19
  62. echo.
  63. echo Please contact McAfee Associates Technical Support for assistance.
  64. pause
  65. goto end
  66.  
  67. :error18
  68. echo.
  69. echo ***  WARNING  ***                             ***  FILE ERROR  ***
  70. echo ***  ERROR # 18
  71. echo.
  72. echo A validated file has been modified (/CF or /CV options).
  73. echo Please refer to your documentation or contact McAfee Associates
  74. echo Technical Support for assistance.
  75. pause
  76. goto end
  77.  
  78. :error17
  79. echo.
  80. echo ***  WARNING  ***                          ***  COMMAND ERROR  ***
  81. echo *** ERROR # 17
  82. echo.
  83. echo No drive, directory or file was specified; nothing to scan.
  84. echo Please refer to your documentation or contact McAfee Associates
  85. echo Technical Support for assistance.
  86. pause
  87. goto end
  88.  
  89. :error16
  90. echo.
  91. echo ***  WARNING  ***                           ***  ACCESS ERROR  ***
  92. echo ***  ERROR # 16
  93. echo.
  94. echo An error occurred while accessing a specified drive or file.
  95. echo Please refer to your documentation or contact McAfee Associates
  96. echo Technical Support for assistance.
  97. pause
  98. goto end
  99.  
  100. :error15
  101. echo.
  102. echo ***  WARNING  ***                      ***  SELF-CHECK FAILED  ***
  103. echo ***  ERROR # 15
  104. echo.
  105. echo VirusScan self-check failed.  It may be infected or damaged.
  106. echo Please refer to your documentation or contact McAfee Associates
  107. echo Technical Support for assistance.
  108. pause
  109. goto end
  110.  
  111. :error14
  112. echo.
  113. echo ***  WARNING  ***                        ***  DATA FILE ERROR  ***
  114. echo ***  ERROR # 14
  115. echo.
  116. echo The SCAN.DAT file is out of date; upgrade VirusScan data files.
  117. echo Please refer to your documentation or contact McAfee Associates
  118. echo Technical Support for assistance.
  119. pause
  120. goto end
  121.  
  122. :error13
  123. echo.
  124. echo ***  WARNING  ***                            ***  VIRUS FOUND  ***
  125. echo ***  ERROR # 13
  126. echo.
  127. echo One or more viruses was found in the master boot record, boot
  128. echo sector, or file(s).
  129. echo Please refer to your documentation or contact McAfee Associates
  130. echo Technical Support for assistance.
  131. pause
  132. goto end
  133.  
  134. :error12
  135. echo.
  136. echo ***  WARNING  ***                            ***  VIRUS FOUND  ***
  137. echo ***  ERROR # 12
  138. echo.
  139. echo An error occurred while attempting to remove a virus, such as no
  140. echo CLEAN.DAT file found, or VirusScan was unable to remove the virus.
  141. echo Please refer to your documentation or contact McAfee Associates
  142. echo Technical Support for assistance.
  143. pause
  144. goto end
  145.  
  146. :error11
  147. echo.
  148. echo ***  WARNING  ***                           *** PROGRAM ERROR  *** 
  149. echo *** ERROR # 11
  150. echo.
  151. echo An internal program communication error occurred.
  152. echo Please refer to your documentation or contact McAfee Associates
  153. echo Technical Support for assistance.
  154. pause
  155. goto end
  156.  
  157. :error10
  158. echo.
  159. echo ***  WARNING  ***                            ***  VIRUS FOUND  ***
  160. echo ***  ERROR # 10
  161. echo.
  162. echo A virus was found in memory.  You must clean the virus from your
  163. echo system before installing.
  164. echo Please refer to your documentation or contact McAfee Associates
  165. echo Technical Support for assistance.
  166. pause
  167. goto end
  168.  
  169. :error9
  170. echo.
  171. echo ***  WARNING  ***                           ***  OPTION ERROR  ***                        
  172. echo ***  ERROR # 9
  173. echo.
  174. echo Incompatible or unrecognized option(s) or option arguments(s) were
  175. echo specified in the command line.
  176. echo Please refer to your documentation or contact McAfee Associates
  177. echo Technical Support for assistance.
  178. pause
  179. goto end
  180.  
  181. :error8
  182. echo.
  183. echo ***  WARNING  ***                     ***  MISSING FILE ERROR  ***
  184. echo ***  ERROR # 8
  185. echo.
  186. echo A file required to run VirusScan, such as SCAN.DAT, is missing.
  187. echo Please refer to your documentation or contact McAfee Associates
  188. echo Technical Support for assistance.
  189. pause
  190. goto end
  191.  
  192. :error7
  193. echo.
  194. echo ***  WARNING  ***                     ***  MESSAGE FILE ERROR  ***
  195. echo ***  ERROR # 7
  196. echo.
  197. echo An error occurred in accessing an internatinal message file 
  198. echo (MCAFEE.MSG).
  199. echo Please refer to your documentation or contact McAfee Associates
  200. echo Technical Support for assistance.
  201. pause
  202. goto end
  203.  
  204. :error6
  205. echo.
  206. echo ***  WARNING  ***                          ***  PROGRAM ERROR  ***
  207. echo *** ERROR # 6
  208. echo.
  209. echo An internal program system error occurred.
  210. echo Please refer to your documentation or contact McAfee Associates
  211. echo Technical Support for assistance.
  212. pause
  213. goto end
  214.  
  215. :error5
  216. echo.
  217. echo ***  WARNING  ***              ***  INSUFFICIENT MEMORY ERROR  ***
  218. echo ***  ERROR # 5
  219. echo.
  220. echo Insufficient memory to load program or complete operation.
  221. echo Please refer to your documentation or contact McAfee Associates
  222. echo Technical Support for assistance.
  223. pause
  224. goto end
  225.  
  226. :error4
  227. echo.
  228. echo ***  WARNING  ***                     ***  DAMAGED FILE ERROR  ***
  229. echo *** ERROR # 4
  230. echo.
  231. echo An error occurred while accessing the file created with the /AF
  232. echo option.  The file has been damaged.
  233. echo Please refer to your documentation or contact McAfee Associates
  234. echo Technical Support for assistance.
  235. pause
  236. goto end
  237.  
  238. :error3
  239. echo.
  240. echo ***  WARNING  ***                      ***  DISK ACCESS ERROR  ***
  241. echo *** ERROR # 3
  242. echo.
  243. echo An error occurred while accessing a disk (reading or writing).
  244. echo Please refer to your documentation or contact McAfee Associates
  245. echo Technical Support for assistance.
  246. pause
  247. goto end
  248.  
  249. :error2
  250. echo.
  251. echo ***  WARNING  ***                     ***  CORRUPT FILE ERROR  ***
  252. echo ***  ERROR # 2
  253. echo.
  254. echo A VirusScan database (*.DAT) file is corrupted.
  255. echo Please refer to your documentation or contact McAfee Associates
  256. echo Technical Support for assistance.
  257. pause
  258. goto end
  259.  
  260. :error1
  261. echo.
  262. echo ***  WARNING  ***                      ***  FILE ACCESS ERROR  ***
  263. echo ***  ERROR # 1
  264. echo.
  265. echo An error occurred while accessing a file (reading or writing).
  266. echo Please refer to your documentation or contact McAfee Associates
  267. echo Technical Support for assistance.
  268. pause
  269.  
  270. :end
  271.  
  272.