Archive: Startup Regisrty Entry


Startup Regisrty Entry
How can I put a string in the registry to add the exe file of my software as a startup item? (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\
CurrentVersion\Run)

Nick


http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.2.16


In Vista, however, if you want to get around the annoying security popups, use HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WIndows\CurrentVersion\RunOnce or RunOnceEx


Does RunOnce[Ex] have special access rights for all users on Vista?

You should not use RunOnce[Ex], those are for installers and whatnot, not for normal applications. Write to HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE