home *** CD-ROM | disk | FTP | other *** search
/ PC World 1998 October / PCWorld_1998-10_cd.bin / software / prehled / komix / DATA.Z / setup.bat < prev    next >
DOS Batch File  |  1997-08-28  |  1KB  |  55 lines

  1. @echo off
  2.  
  3. rem --- Clear all environment variables we will use.
  4. echo Starting registration of ObjectTeamMsRepUml.dll
  5.  
  6. rem --- Figure out the Windows directory.
  7. if "%SystemRoot%" == "" goto CheckWinDir
  8. set WIN_DIR=%SystemRoot%
  9. goto GotWinDir
  10. :CheckWinDir
  11. if "%windir%" == "" goto NoWinDir
  12. set WIN_DIR=%windir%
  13. :GotWinDir
  14.  
  15. rem --- Figure out the System directory.
  16. if exist %WIN_DIR%\system32 goto system32_exists
  17. set SYSTEM_DIR=%WIN_DIR%\system
  18. goto GotSystem
  19. :system32_exists
  20. set SYSTEM_DIR=%WIN_DIR%\system32
  21. :GotSystem
  22.  
  23. rem --- Figure out where regsvr32.exe is.
  24. set REGSVR_DIR=%SYSTEM_DIR%
  25. if exist %SYSTEM_DIR%\regsvr32.exe goto GotRegSvr
  26. set REGSVR_DIR=%WIN_DIR%
  27. :GotRegSvr
  28.  
  29. if "%M4_home%" == "" goto NoM4Home
  30. goto M4HomeAvailable
  31. :NoM4Home
  32. set M4_home=c:\ot4omt
  33. :M4HomeAvailable
  34.  
  35. if exist "%M4_home%\modules\msrepository\bin\ObjectTeamMsRepUml.dll" goto GotDll
  36. goto NoDll
  37. :GotDll
  38. %REGSVR_DIR%\regsvr32 /s "%M4_home%\modules\msrepository\bin\ObjectTeamMsRepUml.dll"
  39. echo Registration completed
  40. goto done
  41.  
  42. :NoDll
  43. echo Could not find library %M4_home%\modules\msrepository\bin\ObjectTeamMsRepUml.dll
  44. goto done
  45.  
  46. :NoWinDir
  47. echo Unable to find Windows directory, please set the windir environment variable.
  48.  
  49. :done
  50.  
  51. rem --- Clear all environment variables we used.
  52. set SYSTEM_DIR=
  53. set WIN_DIR=
  54. set REGSVR_DIR=
  55.