It is currently September 29th, 2022, 6:49 pm

[Bug] SysInfo measure does not support Windows Server 2022

Report bugs with the Rainmeter application and suggest features.
Sixfold
Posts: 5
Joined: June 13th, 2019, 6:51 am

[Bug] SysInfo measure does not support Windows Server 2022

Post by Sixfold »

When using Rainmeter with SysInfo measure on Windows Server 2022, the meter "OS_VERSION" falsely reports "Windows Server 2016" instead of "Windows Server 2022".

Strange enough, in the "about" box, the correct server version is displayed:

Rainmeter 4.5.14.3663 (64-bit)
Language: German (1031)
Build time: 2022-09-06 13:02:36
Windows Server 2022 Standard 2009 64-bit (build 20348) - German (1031)

Regards,
Fabian
User avatar
Brian
Developer
Posts: 2512
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: [Bug] SysInfo measure does not support Windows Server 2022

Post by Brian »

Yeah, these values are retrieved in 2 different ways. One is by the API's Microsoft provides to determine the version of OS. The other is retrieved through a registry query.

So, this means we have to manually update SysInfo for newer version, while the About dialog just displays whatever is in the registry.


I updated the version checking, but I do not have a "server" build to test. Could you see if this works for you?
https://builds.rainmeter.net/test_builds/Rainmeter-4.5.15.3672-prerelease.exe

Please note, due to changes in how Microsoft reports versions, this Rainmeter version will report your Windows version a little differently. Instead of using the "ReleaseId" from the registry, it will use the "DisplayVersion" (if it exists). This is mainly because Microsoft keeps changing their release schedule. So, in your case, you won't see the 2009 as the release id, it will be 21H1 (or whatever the server versions use).

-Brian
Sixfold
Posts: 5
Joined: June 13th, 2019, 6:51 am

Re: [Bug] SysInfo measure does not support Windows Server 2022

Post by Sixfold »

Hi Brian,

I can confirm this works on a Server 2022 machine.

Thanks for the quick reply!

Regards,
Fabian
User avatar
Brian
Developer
Posts: 2512
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: [Bug] SysInfo measure does not support Windows Server 2022

Post by Brian »

Awesome. Thank you!

-Brian