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
- :
- OS Versions
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 28, 2009
05:21 PM
OS Versions
How are SYSINFO.nOSMajor and SYSINFO.nOSMinor derived? Are these coming from setup.exe looking at some registry keys or probes from the Windows API? If I were to run an installer on Windows 7 would it register these values properly? One of my fellow devs is suggesting we bypass these built-ins and rely on looking up registry values manually. What is IS2009 doing to populate these SYSINFO values and how resilient is it to working with the next generation or two of Windows?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 01, 2009
03:17 PM
These values are retrieved directly from GetVersionEx. This should be fine in a pure InstallScript project, however Windows 7 will be shimming this in MSI Custom Actions to report Windows Vista. In a Basic or InstallScript MSI project, it is suggested that you reference the VersionNT property instead.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)