Changeset 43058 in vbox for trunk/src/VBox
- Timestamp:
- Aug 29, 2012 7:47:42 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80394
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp ¶
r43028 r43058 260 260 " updateadditions\n" 261 261 " [--source <guest additions .ISO>] [--verbose]\n" 262 " [--wait-start]\n" 262 263 "\n", pcszSep1, pcszSep2); 263 264 } … … 2530 2531 Utf8Str strSource; 2531 2532 bool fVerbose = false; 2533 bool fWaitStartOnly = false; 2532 2534 2533 2535 static const RTGETOPTDEF s_aOptions[] = 2534 2536 { 2535 2537 { "--source", 's', RTGETOPT_REQ_STRING }, 2536 { "--verbose", 'v', RTGETOPT_REQ_NOTHING } 2538 { "--verbose", 'v', RTGETOPT_REQ_NOTHING }, 2539 { "--wait-start", 'w', RTGETOPT_REQ_NOTHING } 2537 2540 }; 2538 2541 … … 2554 2557 case 'v': 2555 2558 fVerbose = true; 2559 break; 2560 2561 case 'w': 2562 fWaitStartOnly = true; 2556 2563 break; 2557 2564 … … 2592 2599 RTPrintf("Using source: %s\n", strSource.c_str()); 2593 2600 2601 com::SafeArray<AdditionsUpdateFlag_T> aUpdateFlags; 2602 if (fWaitStartOnly) 2603 { 2604 aUpdateFlags.push_back(AdditionsUpdateFlag_WaitForUpdateStartOnly); 2605 if (fVerbose) 2606 RTPrintf("Preparing and waiting for Guest Additions installer to start ...\n"); 2607 } 2608 2594 2609 ComPtr<IProgress> pProgress; 2595 2596 SafeArray<AdditionsUpdateFlag_T> updateFlags; /* No flags set. */2597 2610 CHECK_ERROR(guest, UpdateGuestAdditions(Bstr(strSource).raw(), 2598 2611 /* Wait for whole update process to complete. */ 2599 ComSafeArrayAsInParam( updateFlags),2612 ComSafeArrayAsInParam(aUpdateFlags), 2600 2613 pProgress.asOutParam())); 2601 2614 if (FAILED(rc)) -
TabularUnified trunk/src/VBox/Main/idl/VirtualBox.xidl ¶
r43041 r43058 8907 8907 </const> 8908 8908 <const name="WaitForUpdateStartOnly" value="1"> 8909 <desc>Only wait for the update process being started and do not 8910 wait while peforming the actual update.</desc> 8909 <desc>Starts the regular updating process and waits until the 8910 actual Guest Additions update inside the guest was started. 8911 This can be necessary due to needed interaction with the guest 8912 OS during the installation phase.</desc> 8911 8913 </const> 8912 8914 </enum>
Note:
See TracChangeset
for help on using the changeset viewer.