I have WPF Application. I want to give ability for user by checkbox to put App (exe file) to the windows Startup. How Can I do this programmaticaly in C#?
You will need to add the application to the HKCUSoftwareMicrosoftWindowsCurrentVersionRun key in registry. See this for an example in C#: Managing Start-up
HKCUSoftwareMicrosoftWindowsCurrentVersionRun
1.4m articles
1.4m replys
5 comments
57.0k users