[vbox-dev] [PATCH] comregister: check if succeeded
Bodo
bopi at users.sourceforge.net
Mon Nov 12 03:04:43 PST 2012
===================================================================
--- a/src/VBox/Main/src-all/win/comregister.cmd (revision 43841)
+++ b/src/VBox/Main/src-all/win/comregister.cmd (working copy)
@@ -95,12 +95,49 @@
REM Do the registrations.
REM
:register
+set pause=false
+
@echo on
%_VBOX_DIR%VBoxSVC.exe /ReregServer
+ at echo off
+if %=exitcode% NEQ 0 (
+ echo Failure Reason Given is 0x%=exitcode%
+ if %=exitcode% EQU 80070005 (
+ echo maybe missing admin rights ?
+ )
+ echo check "http://msdn.microsoft.com/en-us/library/cc231196" for
description
+ set pause=true
+)
+
+ at echo on
regsvr32 /s /u %_VBOX_DIR%VBoxC.dll
+ at echo off
+if %=exitcode% NEQ 0 (
+ echo Failure Reason Given is %=exitcode%
+ if %=exitcode% EQU 5 (
+ echo maybe missing admin rights ?
+ )
+ echo check
"http://msdn.microsoft.com/en-us/library/windows/desktop/ms681381" for
description
+ set pause=true
+)
+
+
+ at echo on
regsvr32 /s %_VBOX_DIR%VBoxC.dll
@echo off
+if %=exitcode% NEQ 0 (
+ echo Failure Reason Given is %=exitcode%
+ if %=exitcode% EQU 5 (
+ echo maybe missing admin rights ?
+ )
+ echo check
"http://msdn.microsoft.com/en-us/library/windows/desktop/ms681381" for
description
+ set pause=true
+)
+if %pause% == true (
+ pause
+)
+
:end
endlocal
This Patch is contributed under the MIT license
Regards
Bodo
More information about the vbox-dev
mailing list