cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kenmckinney
Level 3

How do I detect Windows Server 2008 from a basic MSI?

You can't just check VersionNT because it's the same for Windows Server 2008 and Vista. Anyone know another way?

Ken
Labels (1)
0 Kudos
(2) Replies
Dan_Galender
Level 10

The MsiNTProductType property will tell if you're running on a Workstation or Server (or Domain Controller).

The condition (VersionNT = 600) And (MsiNTProductType > 1) will be true for Server 2008 but not for Vista.
0 Kudos
kenmckinney
Level 3

Thanks, that's just what I needed!

Ken
0 Kudos