home *** CD-ROM | disk | FTP | other *** search
- @echo off
-
- rem --- Clear all environment variables we will use.
- echo Starting registration of ObjectTeamMsRepUml.dll
-
- rem --- Figure out the Windows directory.
- if "%SystemRoot%" == "" goto CheckWinDir
- set WIN_DIR=%SystemRoot%
- goto GotWinDir
- :CheckWinDir
- if "%windir%" == "" goto NoWinDir
- set WIN_DIR=%windir%
- :GotWinDir
-
- rem --- Figure out the System directory.
- if exist %WIN_DIR%\system32 goto system32_exists
- set SYSTEM_DIR=%WIN_DIR%\system
- goto GotSystem
- :system32_exists
- set SYSTEM_DIR=%WIN_DIR%\system32
- :GotSystem
-
- rem --- Figure out where regsvr32.exe is.
- set REGSVR_DIR=%SYSTEM_DIR%
- if exist %SYSTEM_DIR%\regsvr32.exe goto GotRegSvr
- set REGSVR_DIR=%WIN_DIR%
- :GotRegSvr
-
- if "%M4_home%" == "" goto NoM4Home
- goto M4HomeAvailable
- :NoM4Home
- set M4_home=c:\ot4omt
- :M4HomeAvailable
-
- if exist "%M4_home%\contrib\ObjectTeamMsRepUml\bin\ObjectTeamMsRepUml.dll" goto GotDll
- goto NoDll
- :GotDll
- %REGSVR_DIR%\regsvr32 /s "%M4_home%\contrib\ObjectTeamMsRepUml\bin\ObjectTeamMsRepUml.dll"
- echo Registration completed
- goto done
-
- :NoDll
- echo Could not find library %M4_home%\contrib\ObjectTeamMsRepUml\bin\ObjectTeamMsRepUml.dll
- goto done
-
- :NoWinDir
- echo Unable to find Windows directory, please set the windir environment variable.
-
- :done
-
- rem --- Clear all environment variables we used.
- set SYSTEM_DIR=
- set WIN_DIR=
- set REGSVR_DIR=
-