Changeset 43053 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Aug 28, 2012 4:39:37 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80388
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r43052 r43053 972 972 } 973 973 974 Utf8Str strOSVer; 974 975 eOSType osType; 975 976 if (RT_SUCCESS(rc)) … … 986 987 { 987 988 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 } 988 1012 } 989 1013 else if (strOSType.contains("Solaris", Utf8Str::CaseInsensitive)) … … 1090 1114 bool fInstallCert = false; 1091 1115 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) 1096 1118 { 1097 1119 fInstallCert = true; 1098 1120 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()));1106 1121 } 1107 1122 else
Note:
See TracChangeset
for help on using the changeset viewer.