Read updated registry value issue: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author links.)
m (Adding new author and category links.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{|align=right
{{PageAuthor|virtlink}}
|<small>Author: [[{{ns:2}}:virtlink|virtlink]] ([[{{ns:3}}:virtlink|talk]], [[{{ns:-1}}:Contributions/virtlink|contrib]])</small>
 
|}
<br style="clear:both;">
; Issue
; Issue
: Updating/creating a registry value, and then reading it reads the wrong value or no value at all.
: Updating/creating a registry value, and then reading it reads the wrong value or no value at all.
Line 11: Line 9:
; Solution
; Solution
: Use the System plugin to invoke the [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/regflushkey.asp RegFlushKey API function].
: Use the System plugin to invoke the [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/regflushkey.asp RegFlushKey API function].
[[Category:Minor Issues]]

Latest revision as of 13:36, 24 June 2005

Author: virtlink (talk, contrib)


Issue
Updating/creating a registry value, and then reading it reads the wrong value or no value at all.
Cause
Assumption: Changes to the registry are placed in a cache. So the changes to the registry won't be visible immideately.
Solution
Use the System plugin to invoke the RegFlushKey API function.