Page 1 of 1

getos (operatingSystemName) issue

Posted: January 29th, 2022, 11:44 am
by htuser
Dear CSPro Development Team,
Please note that getos (operatingSystemName) doesn't return the right OS, at least for Windows.
For my Windows 11 Laptop, it return Windows;10.0.
Best,

Re: getos (operatingSystemName) issue

Posted: January 30th, 2022, 3:13 pm
by sherrell
I'm running Windows 10, so I obviously can't replicate your error. It returned 10.0 for me. However, the getos() function does have a note about not always returning the right number. So, you might be encountering that issue here. From the help page for getos():
Note, however, that Windows version numbers do not necessarily match the official release numbers. For example, Windows 8.1 has a version number of 6.3.
Sherrell

Re: getos (operatingSystemName) issue

Posted: January 31st, 2022, 10:52 am
by htuser
Thanks a lot Sherell. But, i think it's very simple to be solved by the developer team...

Re: getos (operatingSystemName) issue

Posted: February 1st, 2022, 11:05 am
by sherrell
Your initial query wasn't asking if we could fix it, but rather, was the discrepancy an error or not. So, I was letting you know that there is a known discrepancy in what Microsoft returns (and they have a lot more programmers on their staff!)

We'll see what we can do to provide this information in a future release.

Sherrell

Re: getos (operatingSystemName) issue

Posted: February 2nd, 2022, 1:42 pm
by Gregory Martin
You can see a lot of programmers angry at Microsoft for keeping the version number the same: https://docs.microsoft.com/en-us/answer ... 00194.html

We may add into 7.7.1 a way a to get the build number, which will help you determine the real operating system version.

Re: getos (operatingSystemName) issue

Posted: February 2nd, 2022, 1:52 pm
by htuser
Thanks to Sherrell & Greg. Among others, I would like to display the Android CSEntry on Windows, so it was important for me to find the exact version.
Even if there's some Workaround for installing Google Play on Windows 11 Subsystem for Android, we also hope to have a CSEntry Android WSA compatible.
Best,

Re: getos (operatingSystemName) issue

Posted: February 8th, 2022, 1:35 pm
by Gregory Martin
With CSPro 7.7.1 (out today), you can use getos with a hashmap to get the build number:

https://www.csprousers.org/help/CSPro/g ... ction.html

With the build number, you can tell if it's Windows 11.