Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

W 10 msiexec VersionNT


5 replies to this topic

Johannes John

Johannes John
  • Full Members
  • 223 posts

Posted 30 July 2015 - 16:00

Hello together,

 

why does the msiexec of the new W10 shows VersionNT = 603 ?

 

What's that???

 

Regards

Johannes



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 06 August 2015 - 08:34

I guess that Microsoft did this for backward compatibility...



BFealy

BFealy
  • Full Members
  • 35 posts

Posted 13 August 2015 - 18:30

As far as I can tell, it looks like the VersionNT will always be 603 from this point onward (Win 8.1/2012 and future versions) and it's intentional by MS.

 

I've had to write in a registry search for the value in 

HKEY_LOCAL_MACHINE\SOFTWARE\\Microsoft\Windows NT\CurrentVersion\CurrentMajorVersionNumber and use the value there in combination with VersionNT=603 to determine if we're running on Win 10.

 

I'm hoping there's a more elegant way to do this, but haven't found it yet.



ANo

ANo
  • Full Members
  • 179 posts

Posted 19 April 2016 - 14:57

Hello,
I run in the same problem. So I have to check the registry too.

 

But what I not understand, I have IS 2015 SP1 and the Release Notes say:
"SYSINFO.WINNT.bWin10—This is a new SYSINFO structure member.
If the operating system is Windows 10, this value is TRUE.
(This is applicable to InstallScript event-driven code; it is not applicable to custom actions.)"

 

But this does not work for me on all OS = Windows 10. The return value is always FALSE.
Can somebody recheck this behavior please?

 

Regards
André



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 April 2016 - 17:17

Works properly for me - only in a (pure) InstallScript project, no MSI whatsoever. What is your project type?



ANo

ANo
  • Full Members
  • 179 posts

Posted 28 April 2016 - 15:26

Hello Stefan,

thank you for the answer. You are right.

SYSINFO to query operating systems can be used in InstallScript projects only.

 

Sorry, it is my mistake.

 

(SYSINFO.nUserLangID can be used in a MSI project too.)

 

Thank you to recheck it.

 

Regards

André