Modify RunOnce registry for originating user
Posted: Tue May 07, 2013 8:12 pm
Is it possible to make an HKCU change for the original (non-Admin) user?
Update. I am trying to RunOnce even though the installer is elevated. I found that another possibility is using HKLM RunOnce, however, when I try to set the registry as Admin, somehow HKLM RunOnce (SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce) is never written, although if I change it to HKCU it does get written (but in the Administrator's HKCU).
Can anyone shed light on this? How can I write to HKLM?
Update 2. It turns out that it is written - just redirected to Wow6432Node. Also, Standard users cannot execute from HKLM RunOnce apparently, which would explain why the startup never happens. Somehow I still need to get the HKCU for the original user. Can I do this from InstallAware directly or do I need to do a Run Program As and write a script to do the registry for HKCU?
Update. I am trying to RunOnce even though the installer is elevated. I found that another possibility is using HKLM RunOnce, however, when I try to set the registry as Admin, somehow HKLM RunOnce (SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce) is never written, although if I change it to HKCU it does get written (but in the Administrator's HKCU).
Can anyone shed light on this? How can I write to HKLM?
Update 2. It turns out that it is written - just redirected to Wow6432Node. Also, Standard users cannot execute from HKLM RunOnce apparently, which would explain why the startup never happens. Somehow I still need to get the HKCU for the original user. Can I do this from InstallAware directly or do I need to do a Run Program As and write a script to do the registry for HKCU?