Changeset 93587 in vbox
- Timestamp:
- Feb 3, 2022 3:40:21 PM (3 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/UnattendedImpl.h
r93584 r93587 40 40 Utf8Str mVersion; 41 41 Utf8Str mArch; 42 Utf8Str mFlavor; 42 43 RTCList<RTCString, RTCString *> mLanguages; 43 44 Utf8Str mDefaultLanguage; -
trunk/src/VBox/Main/src-server/UnattendedImpl.cpp
r93585 r93587 197 197 const Utf8Str &WIMImage::formatName(Utf8Str &r_strName) const 198 198 { 199 /* We skip the mFlavor as it's typically part of the description already. */ 200 199 201 if (mVersion.isEmpty() && mArch.isEmpty() && mDefaultLanguage.isEmpty() && mLanguages.size() == 0) 200 202 return mName; … … 719 721 || (pElmWindows = pChild->findChildElement("Windows")) != NULL) 720 722 { 723 /* Do edition/flags before the version so it can better determin 724 the OS version enum value. Old windows version (vista) typically 725 doesn't have an EDITIONID element, so fall back on the FLAGS element 726 under IMAGE as it is pretty similar (case differences). */ 727 const ElementNode *pElmEditionId; 728 if ( (pElmEditionId = pElmWindows->findChildElement("EDITIONID")) != NULL 729 || (pElmEditionId = pElmWindows->findChildElement("editionid")) != NULL 730 || (pElmEditionId = pElmWindows->findChildElement("Editionid")) != NULL 731 || (pElmEditionId = pElmWindows->findChildElement("EditionId")) != NULL 732 || (pElmEditionId = pChild->findChildElement("FLAGS")) != NULL 733 || (pElmEditionId = pChild->findChildElement("flags")) != NULL 734 || (pElmEditionId = pChild->findChildElement("Flags")) != NULL) 735 if ( pElmEditionId->getValue() 736 && *pElmEditionId->getValue() != '\0') 737 newImage.mFlavor = pElmEditionId->getValue(); 738 721 739 const ElementNode *pElmVersion; 722 740 if ( (pElmVersion = pElmWindows->findChildElement("VERSION")) != NULL … … 740 758 parseLangaguesElement(pElmLang, newImage); 741 759 } 760 742 761 743 762 imageList.append(newImage); … … 3779 3798 fRet = false; 3780 3799 3800 if (rImage.mFlavor.isNotEmpty()) 3801 mStrDetectedOSFlavor = rImage.mFlavor; 3802 else 3803 fRet = false; 3804 3781 3805 if (rImage.mLanguages.size() > 0) 3782 3806 mDetectedOSLanguages = rImage.mLanguages;
Note:
See TracChangeset
for help on using the changeset viewer.