Run application on Windows startup option

Hi,

I'm developing an application and I want to have an option that can be changed by the user to determine whether to run the application at startup or not.

How can I do that?

Thanks.
EEssamAsked:
Who is Participating?
 
Jaime OlivaresConnect With a Mentor Software ArchitectCommented:
Yes, you need just to save into the proper registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
Have a look to it to see what you have in your computer right now...
0
 
RedKelvinCommented:
Hi,
Write some code to enter a registry startup item.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2406374&SiteID=1

Just add it when the user selects to run at startup, and delete it, when the select to not run at startup.

RedK
0
 
Jaime OlivaresSoftware ArchitectCommented:
0
 
cookreConnect With a Mentor Commented:
The first couple of links referred to HKLM.  Since this request is user specific, the one to use is HLCU.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.