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.
Computer name?
4 posts
i guess it is
ReadRegStr $0 "HKLM" "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" "DefaultDomainName"
Computer Name?
Thank you but does your code not get the Domain name? I was looking for the Computer Name.
Originally posted by YathoshoYathosho,
i guess it is
ReadRegStr $0 "HKLM" "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" "DefaultDomainName"
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
Correct registry path in flizebogen post.
2. GetComputerName() Win API call to kernel32.dll using System plugin