Reference/ReadRegDWORD: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "=ReadRegDWORD= user_var(output) root_key sub_key name Reads a 32 bit DWORD from the registry into the user variable $x. Valid values for root_key are listed under [[Reference/...")
 
 
Line 6: Line 6:


<highlight-nsis>ReadRegDWORD $0 HKLM Software\NSIS VersionBuild</highlight-nsis>
<highlight-nsis>ReadRegDWORD $0 HKLM Software\NSIS VersionBuild</highlight-nsis>
''Command introduced with NSIS v1.50''

Latest revision as of 20:27, 4 June 2013

ReadRegDWORD

user_var(output) root_key sub_key name

Reads a 32 bit DWORD from the registry into the user variable $x. Valid values for root_key are listed under WriteRegStr. The error flag will be set and $x will be set to an empty string ("" which is 0) if the DWORD is not present. If the value is present, but is not a DWORD, it will be read as a string and the error flag will be set.

ReadRegDWORD $0 HKLM Software\NSIS VersionBuild

Command introduced with NSIS v1.50