- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- VersionNT Property giving wrong value when we call from bootstrapper
- 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
VersionNT Property giving wrong value when we call from bootstrapper
Hi Support,
We are restricting Installer not to launch in few OS by setting property VersionNT property in launch conditions.
Ex:(Not Version9X) And (Not VersionNT=400) And (Not VersionNT=500) And (Not VersionNT=501) And (Not VersionNT=502) And (Not VersionNT=600)
Recently we have add restriction for Win7 and Win8 and we used VersionNT 601 and Version NT 602 value, it is working fine in normal installation.
Ex:(Not Version9X) And (Not VersionNT=400) And (Not VersionNT=500) And (Not VersionNT=501) And (Not VersionNT=502) And (Not VersionNT=600) And (Not VersionNT=601)
But we have client installation using a utility, we call msi from bootstrapper , in that API MsiSetInternalUI is giving VersionNT value always 602 even for Windows8.1 or Windows10 because of that our condition failing.
Help us with how to handle OS restrictions?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @Surya0152 ,
The installer sets the VersionNT property to the version number for the operating system, undefined if the operating system is not Windows NT, Windows 2000, Windows XP, Windows Vista, Windows Server 2008, or Windows 7. The value is an integer: MajorVersion * 100 + MinorVersion.
Which type of Installshield project it is?
- Based on that you can use Installation Requirements section which you would find under Project Assistant.If you can't view Project assistant tab,do enable it from View Ribbon->Project Assistant
- For Installscript project,you can use platform filtering option from General Information view
- More information you can find from:
Thanks,
Jenifer
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)