VirtualBox

Changeset 108073 in vbox for trunk


Ignore:
Timestamp:
Feb 5, 2025 2:52:01 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167366
Message:

Windows/InstallHelper: Expose VBOX_WIN_VER_MAJOR + VBOX_WIN_VER_MINOR in IsWindows10() via public properties. bugref:10762

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp

    r108072 r108073  
    11331133        {
    11341134            VBoxMsiSetProp(hModule, L"VBOX_IS_WINDOWS_10", dwMaj >= 10 ? L"1" : L"");
    1135 
     1135            VBoxMsiSetPropDWORD(hModule, L"VBOX_WIN_VER_MAJOR", dwMaj);
     1136
     1137            DWORD dwMin;
     1138            rc = VBoxMsiRegQueryDWORD(hModule, hKey, "CurrentMinorVersionNumber", &dwMin);
     1139            if (RT_SUCCESS(rc))
     1140            {
     1141                VBoxMsiSetPropDWORD(hModule, L"VBOX_WIN_VER_MINOR", dwMin);
     1142
     1143                logStringF(hModule, "IsWindows10: Detected Windows %u.%u", dwMaj, dwMin);
     1144            }
     1145            else
     1146                logStringF(hModule, "IsWindows10: Error reading CurrentMinorVersionNumber (%Rrc)", rc);
    11361147        }
    11371148        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