Solved

Run application on Windows startup option

Posted on 2007-11-25
5
314 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
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…

809 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