But the writes silently fail. Using Process Monitor i can see that they fail with access denied. Shouldn't there at least be an error message?RequestExecutionLevel admin
SetRegView 64
WriteRegDWORD HKCR "CLSID\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\ShellFolder" "Attributes" 0xB094010C
${If} ${RunningX64}
WriteRegDWORD HKCR "Wow6432Node\CLSID\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\ShellFolder" "Attributes" 0xB094010C
${EndIf}
Turns out Administrator doesn't have write access to the keys. TrustedInstaller it is the only "user" that has access.
Is there something I'm doing wrong, or is there a bug in NSIS? Shouldn't the installer automatically be run under the TrustedInstaller account?