Solved

Run application on Windows startup option

Posted on 2007-11-25
5
315 Views
Last Modified: 2013-12-16
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.
0
Comment
Question by:EEssam
  • 2
  • 2
5 Comments
 
LVL 22

Expert Comment

by:RedKelvin
ID: 20347448
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
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 400 total points
ID: 20347451
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
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20347478
0
 
LVL 22

Assisted Solution

by:RedKelvin
RedKelvin earned 50 total points
ID: 20347485
0
 
LVL 22

Assisted Solution

by:cookre
cookre earned 50 total points
ID: 20348252
The first couple of links referred to HKLM.  Since this request is user specific, the one to use is HLCU.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question