Changeset 51572 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jun 7, 2014 7:25:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/win/comregister.cmd
r49911 r51572 91 91 cd "%_SCRIPT_CURDIR%" 92 92 93 REM 94 REM Check for 64-bitness. 95 REM 96 set fIs64BitWindows=0 97 if not "%ProgramW6432%x" == "x" set fIs64BitWindows=1 98 if not "%ProgramFiles(x86)%x" == "x" set fIs64BitWindows=1 99 100 REM 101 REM Figure out the Windows version as the proxy stub requires 6.0 or later (at least for 64-bit). 102 REM 103 set WinVer=Version 4.0.1381 104 set WinVerMajor=4 105 set WinVerMinor=0 106 set WinVerBuild=1381 107 for /f "tokens=2 delims=[]" %%a in ('ver') do set WinVer=%%a 108 for /f "tokens=2,3,4 delims=. " %%a in ("%WinVer%") do ( 109 set WinVerMajor=%%a 110 set WinVerMinor=%%b 111 set WinVerBuild=%%c 112 ) 113 REM echo WinVerMajor=%WinVerMajor% WinVerMinor=%WinVerMinor% WinVerBuild=%WinVerBuild% WinVer=%WinVer% 114 115 REM 116 REM Parse arguments. 117 REM 118 set fNoProxy=0 119 if "%WinVerMajor%" LSS "6" set fNoProxy=1 120 set fUninstallOnly=0 121 122 :arg_loop 123 if "%1x" == "x" goto arg_done 124 125 if "%1" == "-u" goto arg_uninstall 126 if "%1" == "--uninstall" goto arg_uninstall 127 if "%1" == "--proxy" goto arg_proxy 128 if "%1" == "--no-proxy" goto arg_no_proxy 129 echo syntax error: Unknown option %1 130 echo usage: comregister.cmd [-u,--uninstall] [--no-proxy] [--proxy] 131 goto end 132 133 :arg_uninstall 134 set fUninstallOnly=1 135 goto arg_next 136 137 :arg_proxy 138 set fNoProxy=0 139 goto arg_next 140 141 :arg_no_proxy 142 set fNoProxy=1 143 goto arg_next 144 145 :arg_next 146 shift 147 goto arg_loop 148 :arg_done 93 149 94 150 REM 95 151 REM Do the registrations. 96 152 REM 97 if "%ProgramW6432%x" == "x" goto register_x86 98 goto register_amd64 153 @if %fIs64BitWindows% == 1 goto register_amd64 99 154 100 155 :register_x86 … … 102 157 %_VBOX_DIR%VBoxSVC.exe /UnregServer 103 158 regsvr32 /s /u %_VBOX_DIR%VBoxC.dll 104 if exist %_VBOX_DIR%VBoxProxyStub.dll%windir%\system32\regsvr32 /s /u %_VBOX_DIR%VBoxProxyStub.dll105 @if "%1" == "-u"goto end159 %windir%\system32\regsvr32 /s /u %_VBOX_DIR%VBoxProxyStub.dll 160 @if %fUninstallOnly% == 1 goto end 106 161 %_VBOX_DIR%VBoxSVC.exe /RegServer 107 162 regsvr32 /s %_VBOX_DIR%VBoxC.dll 108 @if "%1" == "--no-proxy"goto end163 @if %fNoProxy% == 1 goto end 109 164 if exist %_VBOX_DIR%VBoxProxyStub.dll %windir%\system32\regsvr32 /s %_VBOX_DIR%VBoxProxyStub.dll 110 165 @echo off … … 117 172 %windir%\syswow64\regsvr32 /s /u %_VBOX_DIR%x86\VBoxClient-x86.dll 118 173 %windir%\system32\regsvr32 /s /u %_VBOX_DIR%VBoxC.dll 119 if exist %_VBOX_DIR%VBoxProxyStub.dll%windir%\system32\regsvr32 /s /u %_VBOX_DIR%VBoxProxyStub.dll120 if exist %_VBOX_DIR%VBoxProxyStub-x86.dll%windir%\system32\regsvr32 /s /u %_VBOX_DIR%VBoxProxyStub-x86.dll121 @if "%1" == "-u"goto end174 %windir%\system32\regsvr32 /s /u %_VBOX_DIR%VBoxProxyStub.dll 175 %windir%\system32\regsvr32 /s /u %_VBOX_DIR%VBoxProxyStub-x86.dll 176 @if %fUninstallOnly% == 1 goto end 122 177 %_VBOX_DIR%VBoxSVC.exe /RegServer 123 178 %windir%\system32\regsvr32 /s %_VBOX_DIR%VBoxC.dll 124 179 %windir%\syswow64\regsvr32 /s %_VBOX_DIR%x86\VBoxClient-x86.dll 125 @if "%1" == "--no-proxy"goto end180 @if %fNoProxy% == 1 goto end 126 181 if exist %_VBOX_DIR%VBoxProxyStub.dll %windir%\system32\regsvr32 /s %_VBOX_DIR%VBoxProxyStub.dll 127 182 if exist %_VBOX_DIR%VBoxProxyStub-x86.dll %windir%\system32\regsvr32 /s %_VBOX_DIR%VBoxProxyStub-x86.dll
Note:
See TracChangeset
for help on using the changeset viewer.