VirtualBox

Changeset 43053 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Aug 28, 2012 4:39:37 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80388
Message:

Main/GuestSessionImplTasks: Exclude Windows 2000 + XP from automatic Guest Additions update due to WHQL popups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r43052 r43053  
    972972    }
    973973
     974    Utf8Str strOSVer;
    974975    eOSType osType;
    975976    if (RT_SUCCESS(rc))
     
    986987            {
    987988                osType = eOSType_Windows;
     989
     990                /*
     991                 * Determine guest OS version.
     992                 */
     993                rc = getGuestProperty(pGuest, "/VirtualBox/GuestInfo/OS/Release", strOSVer);
     994                if (RT_FAILURE(rc))
     995                {
     996                    hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED,
     997                                         Utf8StrFmt(GuestSession::tr("Unable to detected guest OS version, please update manually")));
     998                    rc = VERR_NOT_SUPPORTED;
     999                }
     1000
     1001                /* Because Windows 2000 + XP and is bitching with WHQL popups even if we have signed drivers we
     1002                 * can't do automated updates here. */
     1003                if (   RT_SUCCESS(rc)
     1004                    && (   strOSVer.contains("5.0")  /* Exclude the build number. */
     1005                        || strOSVer.contains("5.1")) /* Exclude the build number. */
     1006                   )
     1007                {
     1008                    hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED,
     1009                                             Utf8StrFmt(GuestSession::tr("Windows 2000 and XP are not supported for automatic updating due to WHQL popups, please update manually")));
     1010                    rc = VERR_NOT_SUPPORTED;
     1011                }
    9881012            }
    9891013            else if (strOSType.contains("Solaris", Utf8Str::CaseInsensitive))
     
    10901114                        bool fInstallCert = false;
    10911115
    1092                         Utf8Str strOSVer;
    1093                         rc = getGuestProperty(pGuest, "/VirtualBox/GuestInfo/OS/Release", strOSVer);
    1094                         if (   RT_SUCCESS(rc)
    1095                             && RTStrVersionCompare(strOSVer.c_str(), "5.0") >= 0) /* Only W2K an up. */
     1116                        /* Only Windows 2000 and up need certificates to be installed. */
     1117                        if (RTStrVersionCompare(strOSVer.c_str(), "5.0") >= 0)
    10961118                        {
    10971119                            fInstallCert = true;
    10981120                            LogRel(("Certificates for auto updating WHQL drivers will be installed\n"));
    1099                         }
    1100                         else if (RT_FAILURE(rc))
    1101                         {
    1102                             /* Unknown (or unhandled) Windows OS. */
    1103                             fInstallCert = true;
    1104                             LogRel(("Unknown guest Windows version detected (%s), installing certificates for WHQL drivers\n",
    1105                                     strOSVer.c_str()));
    11061121                        }
    11071122                        else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette