Click here to Skip to main content
15,902,114 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi!
i am creating a desktop app, and definitely when i deploy this app, so it will be a setup.exe. what i want is to put an option in that setup so that the app automatically start at the start of windows.can somebody tells me about any article or some source code link to that i get a better idea from that.
thanks in advance
Posted

In order to make a program automatically start for all users you need to place a shortcut to your application in C:\Documents and Settings\All Users\Start Menu\Programs\Startup\.
 
Share this answer
 
Comments
saifullahiit 1-May-12 10:01am    
by start up i dont mean that it should be on start menu.
i mean its process should be start at the windows start like u see volume controle, utorrent, idm etc
BillW33 1-May-12 15:35pm    
OK, but putting the shortcut in the ...Start Menu\Programs\Startup\ folder doesn't make it appear on the Start Menu, it runs the program at startup.
That's not a good idea. "At Windows start", not at user logon, means that this would have by a Windows Service, not a desktop app.

Those two app types are work very different from each other and a Windows Service can no longer cheat putting up a user interface when a user is logged in under Windows 7 and above.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-May-12 12:09pm    
Agree, a 5.
--SA
Hi,

Using install shield to prepare your setup in that you can set option to start .exe automatically through coding or any other way. This facility is there i know but cant have the perfect way so search for it.

Thanks.
 
Share this answer
 
When deploying your application, use registry editor in setup project to set your application to start up.

Use the following link to know registry keys you need to set:

http://www.pctools.com/guides/registry/detail/109/



refer to similar post

How to develop C#.Net application that run on start up[^]


Best of luck.......
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900