Your Computer Name: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
Crdoconnor (talk | contribs) No edit summary |
m (+Category:Code Examples.) |
||
Line 26: | Line 26: | ||
; rest of script | ; rest of script | ||
</highlight-nsis> | </highlight-nsis> | ||
[[Category:Code Examples]] |
Revision as of 05:44, 3 December 2005
Author: VegetaSan (talk, contrib) |
; Made By VegetaSan :) ; http://fire.prohosting.com/vesan ; This script will detect your 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