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

Windows 2008 Vs Vista


4 replies to this topic

felixmat

felixmat
  • Full Members
  • 18 posts

Posted 07 May 2008 - 23:42

Hi

How can I differentiate between Windows 2008 and Vista?
VersionNT and WindowsBuild values for both the OS are the same. Are there any other properties that I can use?




Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 May 2008 - 21:07

I haven't tested this but I'd expect MsiNTProductType to be 3 for Win2k8 Server (and 2 for a domain controller).

felixmat

felixmat
  • Full Members
  • 18 posts

Posted 08 May 2008 - 21:45

MsiNTProductType does help.

MsiNTProductType=1 for Vista
Values for MsiNTProductType greater than 1 for Win2K8 versions

Thanks.

m.nouryan

m.nouryan
  • Full Members
  • 23 posts

Posted 23 May 2008 - 19:04

have you tried GetSystemInfo? You can get OSMAJOR and OSMINOR versions. It uses the windows API and should do what you want.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 24 May 2008 - 09:31

GetSystemInfo is an InstallScript function. This is the forum about Basic MSI setups, and a custom action isn't needed for this.