Your Computer Name: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author links.)
m (Adding new author and category links.)
Line 1: Line 1:
{|align=right
{{PageAuthor|VegetaSan}}
|<small>Author: [[{{ns:2}}:VegetaSan|VegetaSan]] ([[{{ns:3}}:VegetaSan|talk]], [[{{ns:-1}}:Contributions/VegetaSan|contrib]])</small>
 
|}
<br style="clear:both;">
; Made By VegetaSan :)
; Made By VegetaSan :)
; http://fire.prohosting.com/vesan
; http://fire.prohosting.com/vesan

Revision as of 14:12, 24 June 2005

Author: VegetaSan (talk, contrib)


Made By VegetaSan
)
http://fire.prohosting.com/vesan
This script will detect you Computer Name
OutFile "Your ComputerName.exe"
Name "Your ComputerName"
Caption "ComputerName"
XPStyle "on"
 
Function .onInit
ReadRegStr $0 HKLM "System\CurrentControlSet\Control\ComputerName\ActiveComputerName" "ComputerName"
StrCpy $1 $0 4 3
MessageBox MB_OK "Your ComputerName : $0" 
Quit
FunctionEnd
 
Section "-boo"
;
SectionEnd
 
; rest of script