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

Condition to set for win2k server


2 replies to this topic

Hemamalini

Hemamalini
  • Members
  • 22 posts

Posted 17 July 2002 - 13:10

Hi,
 My product has to be installed only in win2k server.It should not be installed in win2k professional.
I have set a condition in as
versionNT=500 in the general Information.But my product is installed both in win2k professional and win2k server.

What is the condition i need to set for the product to install only in win2k server.

mgrove

mgrove
  • Members
  • 14 posts

Posted 17 July 2002 - 21:46

MsiNTProductType>=2 (Only avaliable in MSI 2.0)

For More info, search for MsiNTProductType in MSDN. (http://www.microsoft.com/msdn)

:D

hambone

hambone
  • Members
  • 206 posts

Posted 19 July 2002 - 16:48

you can also use the OSVersionInfoEX to obtain a lot of OS type of information.  using this structure with the GetVersionEX and VerifyVersionInfo fns. you can use the wProduct type to determine if it is a workstation, server, or domain controller.

i might be wrong ( happens a lot), but i think the MSINTProductType of 2 represents a domain controller.  i think it might be a value of 3 that represents a server....