RegNTProductType

Retrieves the value of the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ProductOptions\ProductType registry value. On Windows NT-based systems, this value represents the old-style Windows NT product type. This registry value is mostly important for Windows NT versions before NT4.0 with SP6; from that version onwards, more accurate product type information is available through other means.

The following values are typically encountered. Note that these are (case-insensitive) text strings and are related to the numerical values available through the MsiNTProductType variable:

Value Description
LANMANNT Server: Windows NT4 or later Server edition, but not a domain controller
SERVERNT Domain controller: Windows NT4 or later Server, configured as domain controller
WINNT Workstation: Windows NT4 Workstation, Windows 2000 Professional, XP, Vista

Usage

You can refer to it as <RegNTProductType>. In conditional expressions you can omit the brackets and use tests like RegNTProductType ~= "SERVERNT" to test for a domain controller. Note the use of the '~' prefix to make the string comparison case-insensitive.

Tip: For general Windows NT product type information, we recommend that you use the WindowsType variable, possibly in conjunction with VersionNT. You might also find the numerical values of the MsiNTProductType variable easier to use in conditional expressions than the textual values of RegNTProductType.

Related topics

MsiNTProductType, MsiNTSuiteBackOffice, MsiNTSuiteDataCenter, MsiNTSuiteEnterprise, MsiNTSuitePersonal, MsiNTSuiteSmallBusiness, MsiNTSuiteSmallBusinessRestricted, MsiNTSuiteWebServer, Version9x, VersionNT, WindowsCore, WindowsType, System information variables