Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 29th September 2003, 12:55   #1
ICONICS2000
Member
 
Join Date: Mar 2003
Location: England, uk
Posts: 52
computer name

Does any one know how to get the computer name

thanks

Carl
ICONICS2000 is offline   Reply With Quote
Old 29th September 2003, 13:01   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
This should do it:

code:
StrCpy $1 ${NSIS_MAX_STRLEN}
System::Call "Kernel32::GetComputerNameA(t r0r0, *i r1r1)"
DetailPrint "$0"


NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump