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
- :
- Re: SYSINFO wrong value?
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
‎Dec 07, 2010
10:11 AM
SYSINFO wrong value?
I'm using SYSINFO.WINNT.bWin7_Server2008R2 and SYSINFO.WINNT.bWinVista_Server2008 to determine if the OS is Windows 7 or Vista. I've tested it on a Win7 machine, yet it gets false for the bWin7 check and true for bWinVista. I double checked this by getting the VersionNT64 value and it's 601, which is the correct Windows 7 code. Is there a bug with SYSINFO that is giving me the incorrect operating system?
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 09, 2010
08:54 AM
Has anyone even used SYSINFO?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 14, 2010
01:20 PM
Does anyone else with Windows 7 or Vista encounter a problem when using SYSINFO to check the operating system in use?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 16, 2010
12:49 AM
I feel there is a problem in the comparison. instead of SYSINFO you can use the registries to get the OS value or Getsysteminfo or some other API's
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 20, 2010
01:01 PM
If you are running this InstallScript code as part of a custom action in an MSI project, the cause of this behavior is the AppCompat layer on Windows is lying about the OS version to the msiexec.exe process that hosts the custom action. The following article contains some additional information:
Why Custom Actions get a Windows Vista Version Lie on Windows 7
Unfortunately, we have no way to resolve this for InstallScript custom actions since the OS is causing the behavior. The best solution is to read the VersionNT/VersionNT64 properties to obtain the correct OS version.
Why Custom Actions get a Windows Vista Version Lie on Windows 7
Unfortunately, we have no way to resolve this for InstallScript custom actions since the OS is causing the behavior. The best solution is to read the VersionNT/VersionNT64 properties to obtain the correct OS version.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 21, 2010
09:00 AM
Strange, I didn't know that about Windows 7. And yes I did end up switching to VersionNT/VersionNT64 to get the correct version. Thanks.
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)