Detection of current version 'Windows' Operating system using Studio 5 -- sys(7) alternative
Doug Easterbrook
doug at artsman.com
Tue Nov 6 14:46:40 EST 2018
thank you Alex and Paul !!!!
Launch program was the ticket.
I ended up testing both methods and using wmic,os was a fair bit faster to get the info compared to sysinfo, so thanks for that tip.
> Launch program wmic,os get Caption,Version,BuildNumber,OSArchitecture,CSDVersion /value Returns lcOSVersion
I was able to determine, in Studio 5, if the user had win 8, 8.1, or 10 and then to make a nice dialog telling them
a) if they had to update their operating system from 32 bit to 64 bit
b) if their 64 bit operating system was too old for studio 8
c) if they needed to update from studio 5.x 32 bit to studio 8 64 bit — and to just download the installers for them
our users have two months to do get to 64 bit os and then to 64 bit studio … so this really helps guide them as to the net step, one step at a time.
this should help our support team a tremendous amount.
Doug Easterbrook
Arts Management Systems Ltd.
mailto:doug at artsman.com
http://www.artsman.com
Phone (403) 650-1978
> On Nov 5, 2018, at 7:43 PM, Alex Clay via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
>
> Hi Doug,
>
> Try this:
>
> Launch program wmic,os get Caption,Version,BuildNumber,OSArchitecture,CSDVersion /value Returns lcOSVersion
>
> This will return output similar to this with some newlines surrounding it:
>
>> BuildNumber=17134
>>
>> Caption=Microsoft Windows 10 Home
>>
>> CSDVersion=
>>
>> OSArchitecture=64-bit
>>
>> Version=10.0.17134
>
> This should be pretty each to parse. CSDVersion will display a service pack if applicable.
>
> Here are all the fields you can get from the OS class: https://docs.microsoft.com/en-us/windows/desktop/CIMWin32Prov/win32-operatingsystem <https://docs.microsoft.com/en-us/windows/desktop/CIMWin32Prov/win32-operatingsystem>
>
> Alex
>
>> On Nov 5, 2018, at 09:49, Doug Easterbrook <doug at artsman.com> wrote:
>>
>> hi all.
>>
>> I’m finalizing/testing our code to help people get over to 64 bit OS and 64 bit application and I’ve run into an issue with sys(7) on windows.
>>
>> On mac, sys(7) will tell you the version of the operating system up to the latestMacOS day. perfect.
>>
>>
>> On windows 10, I’f I’m running studio 5.2.3 runtime then sys(7) still returns 6.2 — telling me that Studio 5.2.3 thinks this is a windows 8 machine.
>>
>>
>> does anybody have any code trick handy that will tell me what the current version of the windows operating system is (using studio 5)???
>>
>>
>> all I really want to know is Windows 8 and before or Window 8.1 and later .. but it would be nice if I could get the exact version.
>>
>>
>>
>>
>>
>> Studio 8, other other hand … tells me nicely, but I need to know in studio 5 to suggest to get to studio 8.
>>
>>
>>
>>
>> Doug Easterbrook
>> Arts Management Systems Ltd.
>> mailto:doug at artsman.com
>> http://www.artsman.com
>> Phone (403) 650-1978
>>
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list