Changeset 107362 in vbox for trunk/src/VBox/Main/src-all/win/comregister.cmd
- Timestamp:
- Dec 18, 2024 3:40:40 PM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/win/comregister.cmd
r106061 r107362 113 113 114 114 REM 115 REM Figure out the Windows version as the proxy stub requires 6.0 or later (at least for 64-bit).116 REM117 set WinVer=Version 4.0.1381118 set WinVerMajor=4119 set WinVerMinor=0120 set WinVerBuild=1381121 for /f "tokens=2 delims=[]" %%a in ('ver') do set WinVer=%%a122 for /f "tokens=2,3,4 delims=. " %%a in ("%WinVer%") do (123 set WinVerMajor=%%a124 set WinVerMinor=%%b125 set WinVerBuild=%%c126 )127 REM echo WinVerMajor=%WinVerMajor% WinVerMinor=%WinVerMinor% WinVerBuild=%WinVerBuild% WinVer=%WinVer%128 129 REM130 115 REM Parse arguments. 131 116 REM … … 182 167 REM Unregister all first, then register them. The order matters here. 183 168 :register_amd64 184 if "%WinVerMajor%" == "5" goto register_amd64_legacy185 if not "%WinVerMajor%" == "6" goto register_amd64_not_legacy186 if not "%WinVerMinor%" == "0" goto register_amd64_not_legacy187 :register_amd64_legacy188 set s64BitProxyStub=VBoxProxyStubLegacy.dll189 goto register_amd64_begin190 :register_amd64_not_legacy191 set s64BitProxyStub=VBoxProxyStub.dll192 :register_amd64_begin193 echo s64BitProxyStub=%s64BitProxyStub%194 169 @echo on 195 170 "%_VBOX_DIR%VBoxSVC.exe" /UnregServer … … 197 172 %windir%\system32\regsvr32 /s /u "%_VBOX_DIR%VBoxC.dll" 198 173 %windir%\syswow64\regsvr32 /s /u "%_VBOX_DIR%x86\VBoxClient-x86.dll" 199 %windir%\system32\regsvr32 /s /u "%_VBOX_DIR% %s64BitProxyStub%"174 %windir%\system32\regsvr32 /s /u "%_VBOX_DIR%VBoxProxyStub.dll" 200 175 %windir%\syswow64\regsvr32 /s /u "%_VBOX_DIR%x86\VBoxProxyStub-x86.dll" 201 176 if %fUninstallOnly% == 1 goto end … … 205 180 %windir%\syswow64\regsvr32 /s "%_VBOX_DIR%x86\VBoxClient-x86.dll" 206 181 if %fNoProxy% == 1 goto end 207 if exist "%_VBOX_DIR% %s64BitProxyStub%" %windir%\system32\regsvr32 /s "%_VBOX_DIR%%s64BitProxyStub%"182 if exist "%_VBOX_DIR%VBoxProxyStub.dll" %windir%\system32\regsvr32 /s "%_VBOX_DIR%VBoxProxyStub.dll" 208 183 if exist "%_VBOX_DIR%x86\VBoxProxyStub-x86.dll" %windir%\syswow64\regsvr32 /s "%_VBOX_DIR%x86\VBoxProxyStub-x86.dll" 209 184 @echo off
Note:
See TracChangeset
for help on using the changeset viewer.