Changeset 43052 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Aug 28, 2012 3:59:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r43034 r43052 150 150 { 151 151 HRESULT hr2 = mProgress->notifyComplete(hr, 152 COM_IIDOF(IGuestSession),153 GuestSession::getStaticComponentName(),154 strMsg.c_str());152 COM_IIDOF(IGuestSession), 153 GuestSession::getStaticComponentName(), 154 strMsg.c_str()); 155 155 if (FAILED(hr2)) 156 156 return hr2; … … 841 841 rc = pProcess->waitFor(ProcessWaitForFlag_Terminate, 842 842 10 * 60 * 1000 /* 10 mins Timeout */, waitRes); 843 LogFlowThisFunc(("waitFor rc=%Rrc, waitRes=%ld\n", rc, waitRes)); 843 844 if (waitRes.mResult == ProcessWaitResult_Terminate) 844 845 { … … 863 864 else 864 865 { 866 /** @todo Unify error handling. */ 865 867 if (RT_FAILURE(rc)) 868 { 866 869 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 867 870 Utf8StrFmt(GuestSession::tr("Error while waiting running %s: %Rrc"), 868 871 procInfo.mName.c_str(), rc)); 872 } 869 873 else 870 874 { 871 setProgressErrorMsg(VBOX_E_IPRT_ERROR, pProcess->errorMsg()); 875 if (pProcess->errorMsg().isEmpty()) 876 { 877 setProgressErrorMsg(VBOX_E_IPRT_ERROR, 878 Utf8StrFmt(GuestSession::tr("Running %s returned unexpectedly with status %ld"), 879 procInfo.mName.c_str(), waitRes.mResult)); 880 } 881 else 882 setProgressErrorMsg(VBOX_E_IPRT_ERROR, pProcess->errorMsg()); 872 883 rc = VERR_GENERAL_FAILURE; /* Fudge. */ 873 884 } … … 1140 1151 GuestProcessStartupInfo siInstaller; 1141 1152 siInstaller.mName = "VirtualBox Windows Guest Additions Installer"; 1153 /* Set a running timeout of 5 minutes -- the Windows Guest Additions 1154 * setup can take quite a while, so be on the safe side. */ 1155 siInstaller.mTimeoutMS = 5 * 60 * 1000; 1142 1156 siInstaller.mArguments.push_back(Utf8Str("/S")); /* We want to install in silent mode. */ 1143 1157 siInstaller.mArguments.push_back(Utf8Str("/l")); /* ... and logging enabled. */ … … 1192 1206 { 1193 1207 hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR, 1194 1195 1208 Utf8StrFmt(GuestSession::tr("Error while copying file \"%s\" to \"%s\" on the guest: %Rrc"), 1209 itFiles->strSource.c_str(), itFiles->strDest.c_str(), rc)); 1196 1210 break; 1197 1211 } … … 1226 1240 rc = runFileOnGuest(pSession, itFiles->mProcInfo); 1227 1241 if (RT_FAILURE(rc)) 1228 {1229 hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR,1230 Utf8StrFmt(GuestSession::tr("Error while running installer file \"%s\" on the guest: %Rrc"),1231 itFiles->strDest.c_str(), rc));1232 1242 break; 1233 }1234 1243 } 1235 1244
Note:
See TracChangeset
for help on using the changeset viewer.