- Timestamp:
- Feb 24, 2023 7:04:45 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156030
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestSessionImplTasks.h
r98690 r98729 419 419 int addProcessArguments(ProcessArguments &aArgumentsDest, const ProcessArguments &aArgumentsSource); 420 420 int copyFileToGuest(GuestSession *pSession, RTVFS hVfsIso, Utf8Str const &strFileSource, const Utf8Str &strFileDest, bool fOptional); 421 int runFileOnGuest(GuestSession *pSession, GuestProcessStartupInfo &procInfo );421 int runFileOnGuest(GuestSession *pSession, GuestProcessStartupInfo &procInfo, bool fSilent = false); 422 422 423 423 int checkGuestAdditionsStatus(GuestSession *pSession, eOSType osType); -
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r98692 r98729 2623 2623 * @param pSession Guest session to use. 2624 2624 * @param procInfo Guest process startup info to use. 2625 * @param fSilent Whether to set progress into failure state in case of error. 2625 2626 */ 2626 int GuestSessionTaskUpdateAdditions::runFileOnGuest(GuestSession *pSession, GuestProcessStartupInfo &procInfo )2627 int GuestSessionTaskUpdateAdditions::runFileOnGuest(GuestSession *pSession, GuestProcessStartupInfo &procInfo, bool fSilent) 2627 2628 { 2628 2629 AssertPtrReturn(pSession, VERR_INVALID_POINTER); … … 2641 2642 } 2642 2643 2643 if (RT_FAILURE(vrc)) 2644 if ( RT_FAILURE(vrc) 2645 && !fSilent) 2644 2646 { 2645 2647 switch (vrc) … … 2688 2690 if (osType == eOSType_Linux) 2689 2691 { 2690 const Utf8Str ksStatusScript = Utf8Str("/ usr/sbin/rcvboxadd");2692 const Utf8Str ksStatusScript = Utf8Str("/sbin/rcvboxadd"); 2691 2693 2692 2694 /* Check if Guest Additions kernel modules were loaded. */ … … 2698 2700 procInfo.mArguments.push_back("status-kernel"); 2699 2701 2700 vrc = runFileOnGuest(pSession, procInfo );2702 vrc = runFileOnGuest(pSession, procInfo, true /* fSilent */); 2701 2703 if (RT_SUCCESS(vrc)) 2702 2704 { … … 2706 2708 procInfo.mArguments.push_back("status-user"); 2707 2709 2708 vrc = runFileOnGuest(pSession, procInfo );2710 vrc = runFileOnGuest(pSession, procInfo, true /* fSilent */); 2709 2711 if (RT_FAILURE(vrc)) 2710 2712 hrc = setProgressErrorMsg(VBOX_E_GSTCTL_GUEST_ERROR, … … 3290 3292 hrc = setProgressErrorMsg(VBOX_E_IPRT_ERROR, 3291 3293 Utf8StrFmt(tr("Automatic update of Guest Additions has failed: " 3292 "guest services were not restarted, please reinstall Guest Additions ")));3294 "guest services were not restarted, please reinstall Guest Additions manually"))); 3293 3295 } 3294 3296 else … … 3297 3299 hrc = setProgressErrorMsg(VBOX_E_IPRT_ERROR, 3298 3300 Utf8StrFmt(tr("Old guest session is still active, guest services were not restarted " 3299 "after installation, please reinstall Guest Additions ")));3301 "after installation, please reinstall Guest Additions manually"))); 3300 3302 } 3301 3303 }
Note:
See TracChangeset
for help on using the changeset viewer.