Skip to content
⌘ NSIS Forum Archive

Problem writing to HKLM in Windows 7

4 posts

kokoroko#

Problem writing to HKLM in Windows 7

Hi,

I've got a problem running my installer on Win7. Basically I have an option to automatically start the application with system.

So I have this in my script:
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "MyApp" "$INSTDIR\myapp.exe"
Of course I have also RequestExecutionLevel admin so the setup is always run elevated.

The problem is there is nothing saved in the registry. And if I only change HKLM to HKCU it works well.

Is it not possible to write to HKLM in Windows 7?
kokoroko#
Indeed, it works well.

Remember kids: always check your HKLM\Software\Wow6432Node registry branch!
ogden_ogly#
I am having an even more bizarre problem -- some of my writes are going to wow64, and others are going to the normal location.

Anyone have any thoughts? 🙂 I'm using 2.46 and the newest registry plugin