Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Installer
Properties
Property Reference
 MsiNTProductType Property
MsiNTProductType Property

The installer sets the MsiNTProductType property for Windows NT, Windows 2000, and later operating systems. This property indicates the Windows product type.

For Windows 2000 and later operating systems, the installer sets the following values. Note that values are the same as of the wProductType field of the OSVERSIONINFOEX structure.

Value Meaning
1 Windows 2000 Professional and later
2 Windows 2000 domain controller and later
3 Windows 2000 Server and later

For operating systems earlier than Windows 2000, the installer sets the following values.

Value Meaning
1 Windows NT Workstation
2 Windows NT domain controller
3 Windows NT Server

Requirements

Version Requires Windows Installer 4.0 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003, Windows XP, and Windows 2000.

See Also

Properties


Send comments about this topic to Microsoft

Build date: 6/5/2008

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Detecting WS2K8 installed with Server Core feature...      ColbyRingeisen   |   Edit   |  

It looks like MSI doesn't natively expose the ProductType values returned by the GetProductInfo Function. [MSI team, How about adding this in 4.5?] So, the proper way to detect a Windows Server 2008 OS installed with the Server Core option would be to write a custom action that queries the API above and sets an MSI property when any of the *_CORE* values are returned by the pdwReturnedProductType parameter.


However, if creating a CA to query GetProductInfo isn't desirable, you can detect a Windows Server 2008 installed with the Server Core option by adding an AppSearch that sets a property based on the existence of the Windows Explorer user interface shell binary file "explorer.exe" in the [WindowsFolder] folder (only) and then use this property combined with the VersionNT and MsiNTProductType entries in a conditional statement as indicated below.

Detecting Explorer.exe
AppSearch Record:
OS_SUPPORTS_UI findWindowsExplorer
DrLocator Record:
findWindowsExplorer [WindowsFolder] 0
Signature Record:
findWindowsExplorer explorer.exe 5.0

Conditional Statement (true if Server Core running)
VersionNT=600 AND MsiNTProductType>1 AND NOT OS_SUPPORTS_UI

Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker