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: MSI: Any possibility to find out, if msi runs on W10?
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
‎Jun 12, 2015
12:56 AM
MSI: Any possibility to find out, if msi runs on W10?
Hello,
is there any possibility to find out, if msi setup runs on W8.1 or W10 ?
How to realize it for BASIC-MSI, please ?
is there any possibility to find out, if msi setup runs on W8.1 or W10 ?
How to realize it for BASIC-MSI, please ?
(8) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 12, 2015
06:18 AM
We won't know for certain until Windows 10 actually ships, but from all indications that I've seen, Microsoft is intentionally preventing this. As of the preview we do not offer any supported way to do this. Microsoft previously started preventing custom actions from knowing the version of Windows, and is now reporting an incorrect version in VersionNT.
If you need to know the actual version, one possible workaround is to launch your MSI as a package in a Suite/Advanced UI or Advanced UI project, and pass it a command line that includes: REALVERSIONNT=[@Platform.FullVersion]. If you just need to enable or disbale your MSI from running, you can do that with a Platform condition in the suite (either as an exit condition or an eligibility condition for the package).
If you need to know the actual version, one possible workaround is to launch your MSI as a package in a Suite/Advanced UI or Advanced UI project, and pass it a command line that includes: REALVERSIONNT=[@Platform.FullVersion]. If you just need to enable or disbale your MSI from running, you can do that with a Platform condition in the suite (either as an exit condition or an eligibility condition for the package).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 12, 2015
06:22 AM
Ok. I will wait.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 20, 2015
02:19 AM
Can anyone tell me how the correct value for VersionNT in Windows 10 is now already?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 20, 2015
08:42 AM
Per VersionNT and VersionNT64, the value should be MajorVersion * 100 + MinorVersion which would calculate out to 1000. However on every preview build of Windows 10 that I've seen, the value is still the same value seen on Windows 8.1: 603; see this technet thread for external confirmation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 29, 2015
04:55 AM
Thanks for the Feedback.
I have now installed Windows 10 Enterprise x64 (Build 10240), but the value for VersionNT and VersionNT64 are still on 603 !!!
What now?
I have now installed Windows 10 Enterprise x64 (Build 10240), but the value for VersionNT and VersionNT64 are still on 603 !!!
What now?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 29, 2015
05:05 AM
Look at this key:
RegDBSetDefaultRoot ( HKEY_LOCAL_MACHINE );
szKey = "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion";
RegDBSetDefaultRoot ( HKEY_LOCAL_MACHINE );
szKey = "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion";
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 29, 2015
05:15 AM
Yes, it is 6.3.
But there ist a new DWORD-Entry CurrentMajorVersionNumber with value 10.
But there ist a new DWORD-Entry CurrentMajorVersionNumber with value 10.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 06, 2015
06:27 PM
While VersionNT, VersionNT64, & GetVersionEx are returning 603 for Windows 10, you could also look at the property WindowsBuild and check if it's >= 10240. This was the official Win 10 build.
This sounds good, but WindowsBuild is returning 9600 rather than 10240. 😞
This sounds good, but WindowsBuild is returning 9600 rather than 10240. 😞