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#?
+1
A:
You can add your program to the registry, the folder would be [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
. You do this by adding a new string value, eg. "Notepad"="c:\windows\notepad.exe"
.
Femaref
2010-06-10 06:38:28
+1
A:
You will need to add the application to the HKCU\Software\Microsoft\Windows\CurrentVersion\Run
key in registry. See this for an example in C#: Managing Start-up
Giorgi
2010-06-10 06:45:30