PDA

View Full Version : How check if system is server ?



geppo12
01-06-2003, 03:39 PM
How can check if the sistem is Win2k Professional or server ?
In the Q105879 i found how do this with IS Developer, there is some way to do this (maybe with some custom action) with ISX 4 ?

Thanks
Ing Giuseppe Monteleone

Chandima
01-06-2003, 05:25 PM
Try the following VBScript Custom Action:

win2k = session.property("VersionNT")
winServer = session.property("MsiNTProductType")

if (win2k="500") then
if (winserver=1) then
msgbox "Win2K Professional"
end if
if (winserver=2) then
msgbox "Win2K Domain Controller"
end if
if (winserver=3) then
msgbox "Win2K Server"
end if
else
msgbox "Not Win2K"
end if