RichD
22nd December 2003 08:26 UTC
How do I get the hostname of the machine running the installer
Hi,
I need to be able to get the hostname of the machine running my installer application. I have seen the IPdll plugin, but can't see how I can get the hostname. Can anyone help?
Regards,
Rich.
zarged
22nd December 2003 11:05 UTC
For windows 2k or XP you can read the registry for the following key which gives the hostname:
HKLM\System\CurrentControlSet\Control\ComputerName\
Not sure of the difference between ComputerName and ActiveComputerName as they always seem to be the same.
kichik
22nd December 2003 11:38 UTC
You can also use this:
http://forums.winamp.com/showthread....light=hostname
RichD
22nd December 2003 17:25 UTC
Thanks for this - we need to work with pre-win 2k, but the second solution works for me.
Thanks,
Rich.