Summary
Custom Action SYSINFO cannot distinguish between Operating System versionsSymptoms
When using the InstallScript system variable, SYSINFO, to determine the Operating System of the target machine, if the operating system of the target machine is Vista/Windows Server 2008 or newer, SYSINFO returns 0 for the minor version (i.e., SYSINFO.nOSMinor = 0).
One would expect SYSINFO to return zero for the minor version of the Operating System on target systems running Vista or Windows Server 2008 and to return one for the minor version of the Operating system on target systems running Windows 7 or Windows Server 2008 R2.
This is only a problem when SYSINFO is used in a Custom Action of an MSI based install. This problem does not exist if the installation package was created with an InstallScript project.
Cause
The unexpected behavior occurs because of Microsoft Windows Resource Protection shims in effect when Windows Installer (i.e., MSI) packages are executed on these operating systems.Steps To Reproduce
To reproduce this problem:
-
Add a Custom Action of type InstallScript to a Basic MSI or InstallScript MSI project.
-
In the InstallScript function, code SYSINFO.nOSMinor to retrieve the value of the operating system's minor version stored in the InstallScript SYSINFO structure system variable.
Resolution
In an MSI based installation, obtain the version of the Operating System by retrieving the value of the MSI Property, VersionNT. To retrieve this property from the MSI database, use the Windows Installer function, MsiGetProperty.
Workaround
In the rare situation where one has requirements to use the InstallScript SYSINFO to obtain this information, then the members, SYSINFO.WINNT.bWinVista, SYSINFO.nOSProductType and SYSINFO.nISOSL, can be used to determine the Operating System running on the target machine. For more details on this solution, please refer to the meaning of these members in the InstallShield Help Library article, SYSINFO.Additional Information
For more information on the InstallScript System Variable, SYSINFO, please refer to the InstallScript Language Reference section of the InstallShield Help Library at SYSINFO
For more information on the MSI Property, VersionNT, please refer to the following Microsoft articles:
For more information on using the MsiGetProperty function, please refer to the following articles:
For information about Windows Resource Protection, please refer to the Microsoft article, About Windows Resource Protection
For more information on the particular Windows Resource Protection shims affecting this behavior, please refer to the following blog on the MSDN website:
Was this helpful?
Related Articles
Gathering diagnostic tracing from a FlexNet inventory agent process on Unix-like operating systems 135Number of Views New Supported Operating Systems for Each Version of InstallShield 3Number of Views HOW TO: Launch a bat file from INSTALLDIR/SUPPORTDIR using Custom Action 24Number of Views Unable To License 64 Bit Version Of InstallAnywhere 2011 Or Later Using A Node Locked License File On 64 Bit Linux Operati… 7Number of Views Debug InstallScript Custom Action Running Deferred In System Context. 4Number of Views
Revenera Assistant - Beta
Online
Hi, I am Reva - Ask me anything.
Updates
No new updates
Chat
Home
Updates
/**/
Thanks for the feedback!
Your feedback has been saved.Rate this response:
1
2
3
4
5
Add Additional feedback ( Optional )
0/240
English
English
Language changed successfully
Something went wrong
Email sent successfully
Something went wrong
Case create successfully
Are you sure you want to cancel
the case creation?
Please select a product to submit the case.
Please select a product version to submit the case.
0/255
Upload Attachment
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to cancel the case creation?
Case closed successfully
File Upload
Maximum file size allowed is 3 MB.
File type not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
© 2026 Flexera Software. All Rights Reserved.
Case id: 00001065
Activity: Status change: 2 hours ago