Changeset 80231 in vbox for trunk/src/VBox/Installer/win/Stub
- Timestamp:
- Aug 12, 2019 6:49:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/Stub/VBoxStub.cpp
r76553 r80231 584 584 return RTEXITCODE_SUCCESS; 585 585 if (uStatus == ERROR_SUCCESS_REBOOT_REQUIRED) 586 return RTEXITCODE_SUCCESS; /* we currently don't indicate this */ 586 { 587 if (g_fSilent) 588 RTMsgInfo("Reboot required (by %s)\n", pszMsi); 589 return (RTEXITCODE)uStatus; 590 } 587 591 588 592 /* … … 876 880 bool fEnableSilentCert = true; 877 881 #endif 882 bool fIgnoreReboot = false; 878 883 char szExtractPath[RTPATH_MAX] = {0}; 879 884 char szMSIArgs[_4K] = {0}; … … 906 911 { "-reinstall", 'f', RTGETOPT_REQ_NOTHING }, 907 912 { "/reinstall", 'f', RTGETOPT_REQ_NOTHING }, 913 { "--ignore-reboot", 'r', RTGETOPT_REQ_NOTHING }, 908 914 { "--verbose", 'v', RTGETOPT_REQ_NOTHING }, 909 915 { "-verbose", 'v', RTGETOPT_REQ_NOTHING }, … … 975 981 break; 976 982 983 case 'r': 984 fIgnoreReboot = true; 985 break; 986 977 987 case 'V': 978 988 ShowInfo("Version: %d.%d.%d.%d", … … 997 1007 "--path - Sets the path of the extraction directory\n" 998 1008 "--reinstall - Forces VirtualBox to get re-installed\n" 1009 "--ignore-reboot - Don't set exit code to 3010 if a reboot is required\n" 999 1010 "--silent - Enables silent mode installation\n" 1000 "--version - Print version number and exit\n\n" 1011 "--version - Print version number and exit\n" 1012 "\n" 1001 1013 "Examples:\n" 1002 1014 "%s --msiparams INSTALLDIR=C:\\VBox\n" … … 1152 1164 unsigned iPackage = 0; 1153 1165 while ( iPackage < pHeader->byCntPkgs 1154 && rcExit == RTEXITCODE_SUCCESS)1166 && (rcExit == RTEXITCODE_SUCCESS || rcExit == (RTEXITCODE)ERROR_SUCCESS_REBOOT_REQUIRED)) 1155 1167 { 1156 rcExit = ProcessPackage(iPackage, szExtractPath, 1157 szMSIArgs, fEnableLogging); 1168 RTEXITCODE rcExit2 = ProcessPackage(iPackage, szExtractPath, szMSIArgs, fEnableLogging); 1169 if (rcExit2 != RTEXITCODE_SUCCESS) 1170 rcExit = rcExit2; 1158 1171 iPackage++; 1159 1172 } … … 1193 1206 } 1194 1207 1195 return rcExit ;1196 } 1197 1208 return rcExit != (RTEXITCODE)ERROR_SUCCESS_REBOOT_REQUIRED || !fIgnoreReboot ? rcExit : RTEXITCODE_SUCCESS; 1209 } 1210
Note:
See TracChangeset
for help on using the changeset viewer.