PDA

View Full Version : Determining server or not



UpWritePress
06-10-2004, 10:49 AM
Hi,

I used the function I got from this KB article.. http://support.installshield.com/kb/view.asp?articleid=Q104982

to try to see if I could prevent installation on a server machine.

When I tried it on the only server I have available for testing, the value pulled out of the registry was "LanmanNT". This is a Windows 2000 server machine.

Because the article only checked for "WinNT" and "ServerNT" I'm curious if there's anywhere I can find out all the values I will encounter so I don't prevent someone from installing when they should be able to...

Any suggestions (or better ways) would be appreciated..
Jason

Esquimaux
06-11-2004, 08:56 AM
Hi,

On top of the 2 values mentioned in the article, when checking for a server, I also check for "LanmanNT".

So far, in the past 4 years, it has never failed:

"WinNT" = Workstation
"LanmanNT" or "ServerNT" = Server

I have been using this for so long that I don't remember where I found these values.

Hope this helps.

Good luck.