PDA

View Full Version : Edit Registry



NewsArchive
11-22-2016, 05:37 AM
Hi All

I am wanting to include a registry entry so that the app runs when the
computer starts. I have followed the steps but when I run the install
set the registry entry is not inserted. What am I missing?

These are my settimgs:

Operation: Create/Update Key And Value

Root: HKEY_CURRENT_USER

Registry Key: SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Value Name: MyProgram

Data Type: String

Data Value: %_SB_INSTALLDIR%\MyProgram.Exe

What am I doing wrong?

Cheers
Andre

NewsArchive
11-22-2016, 05:37 AM
Andre,

>
> What am I doing wrong?
>

it's not a good idea to write a "per-user" registry setting from an elevated
running program.

Old link, but still relevant:

http://www.lindersoft.com/forums/showthread.php?20795-Reminder-Never-write-to-HKEY_CURRENT_USER-from-an-elevated-application

I think you are looking under the wrong "current user" registry branch.

Friedrich

NewsArchive
11-22-2016, 11:05 AM
Hi Friedrich

Thanks for that. It seems as though I may have had some wrong settings
as it is working now. Will test on other machines.

Cheers
Andre

NewsArchive
11-22-2016, 11:05 AM
Hi Andre,

> Thanks for that. It seems as though I may have had some wrong settings as
> it is working now. Will test on other machines.

Perfect! If you need any help, just let me know.

Friedrich

NewsArchive
11-23-2016, 03:35 AM
Thanks - will do.

Andre