Page 1 of 1

Windows 7/8/10 but PRO as "Minimum operating system" ?

Posted: Fri May 08, 2020 8:23 am
by dcube
Hello Support,

I need to check and block installation if Windows (7,8, 8.1, or 10) is less then PRO editions or greater.

How to ?

Best regards
Paolo Botti
X11 Version

Re: Windows 7/8/10 but PRO as "Minimum operating system" ?

Posted: Fri May 08, 2020 2:01 pm
by FrancescoT
Unfortunately, it's not available a ready to use built-in method for detecting the target Windows Edition.

However, you may implement your own method (for example; with invoking a custom DLL or. EXE) around the "GetVersionEx" WINAPI. This function returns the target edition through the "OSVERSIONINFOEX" structure.
https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getversionexw

Hope this helps you.

Re: Windows 7/8/10 but PRO as "Minimum operating system" ?

Posted: Sat May 09, 2020 3:45 am
by dcube
Thanks Francesco for the answer,

I know the sysinfoapi functions in Kernel32 but honestly I would have hoped for another answer.
If we prepare our own DLL we will make it available to other users as well.

Best regards
Paolo Botti