Read updated registry value issue

From NSIS Wiki
Jump to navigationJump to search
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.