This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Gets Windows Product Type using Kernel32.GetProductInfo
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Jun 11, 2009
12:04 AM
OS check!
Hello,
Anybody know how to check the OS edition in Vista. For example, my application should get installed only in Vista Business , Vista Ultimate & Vista Home Basic (Not premium). How to check this? I can check the registry entry (CurrentVersion). But it does not give information about the Home basic and premium.
Is there a standard and perfect way to check the OS edition?
Thank you so much for the help.
Anybody know how to check the OS edition in Vista. For example, my application should get installed only in Vista Business , Vista Ultimate & Vista Home Basic (Not premium). How to check this? I can check the registry entry (CurrentVersion). But it does not give information about the Home basic and premium.
Is there a standard and perfect way to check the OS edition?
Thank you so much for the help.
(3) Replies
‎Jun 11, 2009
02:58 PM
You will likely need to use the GetProductInfo API provided by Windows. This API could be called from a custom action that then sets a property (if this is an MSI setup) based on the edition determined. Note that this API is only available on Windows Vista or newer.
‎Jun 19, 2009
01:26 AM
Hi,
Would it be possible to use one of the following MSI properties or both of them?
Have you tried that already?
Regards
Would it be possible to use one of the following MSI properties or both of them?
- MsiNTProductType : Indicates the Windows product type. Only available with Windows Installer 2.0 and later.
- MsiNTSuitePersonal : On Windows XP and later operating systems, the Installer sets this property to 1 (one) only if the operating system is Workstation Personal (not Professional). Only available with Windows Installer 2.0 and later.
Have you tried that already?
Regards
‎Aug 09, 2011
07:05 AM
The attached InstallScript LogSystemInfo function uses the Kernel32.GetProductInfo function to determine the Windows product type (e.g. home, professional, enterprise, ultimate, ... Windows editions).
Note that the code calls a custom WriteLogLine at the end of the function, which is not included in the sample code.
Note that the code calls a custom WriteLogLine at the end of the function, which is not included in the sample code.