home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / bin / olemess.bat < prev    next >
Encoding:
DOS Batch File  |  1995-07-11  |  994 b   |  42 lines

  1. @echo off
  2. REM Batch file to install and register OLE Messaging on Windows 95.
  3. REM Usage: olemess mstools-dir windows-dir
  4. REM        olemess e:\mstools c:\windows
  5.  
  6. if "%1"=="" goto BadParameter
  7. if "%2"=="" goto BadParameter
  8.  
  9. if NOT EXIST %1\nodebug\usa\mdisp32.exe goto BadSource
  10. if NOT EXIST %2\system\mapi32.dll goto BadDest
  11.  
  12. copy %1\nodebug\usa\mdisp32.exe %2\system >nul
  13. copy %1\nodebug\usa\mdisp32.tlb %2\system >nul
  14. copy %1\nodebug\usa\mdisp.tlb %2\system   >nul
  15.  
  16. regedit /s %1\mapi\cfg\mdisp32.reg
  17. echo.
  18. echo OLE Messaging installed
  19. echo.
  20. goto Done
  21.  
  22. :BadDest
  23. echo The WINDOWS directory parameter (%2) does not contain a MAPI installation.
  24. echo Please install MAPI before installing OLE Messaging
  25. echo.
  26. goto Done
  27.  
  28. :BadSource
  29. echo The MSTOOLS directory parameter (%1) does not contain a valid Win 32 SDK
  30. echo.
  31. goto Done
  32.  
  33. :BadParameter
  34. echo Usage: olemess mstools-directory windows-directory
  35. echo  e.g.: olemess e:\mstools c:\windows
  36. echo.
  37.  
  38. :Done
  39.  
  40.  
  41.  
  42.