I am writing a registry key to HKey_Class_Root\AppID directory.
Here is my script:
WriteRegStr HKCR "AppID\myregister" "(Default)" "myregistervalue"The issue is, when I ran my NSIS script, windows process monitor (procmon.exe) showed the installer tried to open HKey_Class_Root\AppID\myregister registry key, got "NAME NOT FOUND" as return, and wrote to HKey_Current_User\Software\Classes\AppID\myregister instead.
Now when I looked in registry editor, the key was written to "HKey_Class_Root\AppID\myregister", which was the intended destination.
But when I ran the installed application, the application could not open the "HKey_Class_Root\AppID\myregister" registry key, which is inline with what windows process monitor (procmon.exe) showed during installation.
I am wondering what could possibly cause this. Any help would be appreciated.