home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / lzw40.exe / INSTALL.BAT next >
DOS Batch File  |  1993-04-27  |  3KB  |  87 lines

  1. @echo off
  2. cls
  3. echo    _________________________________________________________________________
  4. echo.
  5. echo                   Novell LANalyzer For Windows Version 2.0
  6. echo.
  7. echo                             Patch for decode DLLs
  8. echo    _________________________________________________________________________
  9. echo.
  10.  
  11. if "%1" == "" goto usage
  12. if not exist %1\l_tdgui.dll goto harddrvbad
  13. if not exist lzfw.rtp goto notininst
  14.  
  15. echo    This patch is designed to upgrade the LANalyzer For Windows decode DLLs 
  16. echo    from version 2.0 to 2.1 .
  17. echo.
  18. echo    New protocol decodes in version 2.1 include: 
  19. echo    NetWare Directory Services and NetWare Core Protocol 4.0
  20. echo.
  21. echo    PLEASE DO NOT ATTEMPT TO APPLY THE PATCH TO LANALYZER FOR WINDOWS 
  22. echo    VERSIONS OTHER THAN 2.0 .
  23. echo.
  24. yesno "Do you wish to continue? [y/n]"
  25. if errorlevel 1 goto exit
  26. echo.
  27.  
  28. :backup
  29. echo    INSTALL will overwrite the following existing LANalyzer For Windows 
  30. echo    decode DLLs:  
  31. echo                               L_TDAPI.DLL
  32. echo                               L_TDDRIV.DLL
  33. echo                               L_TDGUI.DLL
  34. echo                               L_TDLNK.DLL
  35. echo                               L_TDNW.DLL
  36. echo                               L_TDUTIL.DLL
  37. echo.
  38. echo    The above DLLs will be backed up in the subdirectory  %1\PATCHBAK
  39. echo.
  40. yesno "Do you wish to continue? [y/n]"
  41. echo.
  42. if errorlevel 1 goto exit
  43.  
  44. :backyes
  45. echo Creating %1\patchbak...
  46. mkdir %1\patchbak > NUL:
  47. patch /BACKUP:%1\patchbak  /UNDO /NOSUBDIRSEARCH /NOP %1 lzfw.rtp
  48. if errorlevel 4 goto wrongstamp
  49. echo Deleting temporary files...
  50. del %1\patchbak\lzfw.bak > NUL:
  51. goto okexit
  52.  
  53. :usage
  54. echo usage:   INSTALL "target directory containing LANalyzer For Windows 
  55. echo                   decode DLLs (Version 2.0)"
  56. echo.
  57. echo example: install c:\lzfw
  58. echo.
  59. goto exit
  60.  
  61. :harddrvbad
  62. echo LANalyzer For Windows decode DLLs do not exist in: %1
  63. echo Please invoke INSTALL using the correct directory.
  64. echo.
  65. goto usage
  66.  
  67. :notininst
  68. echo INSTALL requires the current directory to contain the relevant patch
  69. echo files. Please change the current directory to that directory.
  70. goto exit
  71.  
  72. :wrongstamp
  73. echo.
  74. echo The LANalyzer For Windows patch has failed on the existing files in
  75. echo %1 
  76. echo.    
  77. echo Please verify that the version of the existing decode DLL is 2.0 .
  78. echo.    
  79.  
  80.  
  81. :okexit
  82. echo. 
  83. echo Please update the lzfw.ini file before running LANalyzer For Windows. 
  84. echo See the README file for more details.
  85. :exit
  86.  
  87.