Changeset 35273 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Dec 21, 2010 12:52:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r35100 r35273 859 859 CHECK_ERROR2_RET(ptrExtPackMgr, OpenExtPackFile(bstrTarball.raw(), ptrExtPackFile.asOutParam()), RTEXITCODE_FAILURE); 860 860 CHECK_ERROR2_RET(ptrExtPackFile, COMGETTER(Name)(bstrName.asOutParam()), RTEXITCODE_FAILURE); 861 CHECK_ERROR2_RET(ptrExtPackFile, Install(fReplace), RTEXITCODE_FAILURE); 861 ComPtr<IProgress> ptrProgress; 862 CHECK_ERROR2_RET(ptrExtPackFile, Install(fReplace, NULL, ptrProgress.asOutParam()), RTEXITCODE_FAILURE); 863 if (!ptrProgress.isNull()) 864 CHECK_ERROR2_RET(ptrProgress, WaitForCompletion(-1), RTEXITCODE_FAILURE); 862 865 RTPrintf("Successfully installed \"%lS\".\n", bstrName.raw()); 863 866 } … … 895 898 896 899 Bstr bstrName(pszName); 897 CHECK_ERROR2_RET(ptrExtPackMgr, Uninstall(bstrName.raw(), fForced), RTEXITCODE_FAILURE); 900 ComPtr<IProgress> ptrProgress; 901 CHECK_ERROR2_RET(ptrExtPackMgr, Uninstall(bstrName.raw(), fForced, NULL, ptrProgress.asOutParam()), RTEXITCODE_FAILURE); 902 if (!ptrProgress.isNull()) 903 CHECK_ERROR2_RET(ptrProgress, WaitForCompletion(-1), RTEXITCODE_FAILURE); 898 904 RTPrintf("Successfully uninstalled \"%s\".\n", pszName); 899 905 }
Note:
See TracChangeset
for help on using the changeset viewer.