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?