Solved

Run application on Windows startup option

Posted on 2007-11-25
5
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

726 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