Chalaky
1st October 2004 19:15 UTC
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.
Yathosho
1st October 2004 19:21 UTC
i guess it is
ReadRegStr $0 "HKLM" "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" "DefaultDomainName"
chalaky
1st October 2004 19:32 UTC
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.
Takhir
2nd October 2004 17:20 UTC
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