getos (operatingSystemName) issue

Discussions about CSEntry
Post Reply
htuser
Posts: 687
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

getos (operatingSystemName) issue

Post 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,
G.VOLNY, a CSProuser from Haiti, since 2004
sherrell
Posts: 407
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: getos (operatingSystemName) issue

Post 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
htuser
Posts: 687
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: getos (operatingSystemName) issue

Post by htuser »

Thanks a lot Sherell. But, i think it's very simple to be solved by the developer team...
G.VOLNY, a CSProuser from Haiti, since 2004
sherrell
Posts: 407
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: getos (operatingSystemName) issue

Post 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
Gregory Martin
Posts: 1947
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: getos (operatingSystemName) issue

Post 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.
htuser
Posts: 687
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: getos (operatingSystemName) issue

Post 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,
G.VOLNY, a CSProuser from Haiti, since 2004
Gregory Martin
Posts: 1947
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: getos (operatingSystemName) issue

Post 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.
Post Reply