Archive: Computer name?


Computer name?
Hi all,

I am new to NSIS and can't figure out how to get the name of the computer on which the install in running into a string variable. I will installing on MS XP and 2000 machines (servers and workstations).

Any ideas would be much appreciated.


i guess it is

ReadRegStr $0 "HKLM" "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" "DefaultDomainName"

Computer Name?

Originally posted by Yathosho
i guess it is
ReadRegStr $0 "HKLM" "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" "DefaultDomainName"
Yathosho,

Thank you but does your code not get the Domain name? I was looking for the Computer Name.

1. Forum search - http://forums.winamp.com/showthread....t=ComputerName
Correct registry path in flizebogen post.

2. GetComputerName() Win API call to kernel32.dll using System plugin