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
2.1m questions
2.1m answers
60 comments
57.0k users