tags:

views:

42

answers:

2

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".

A short guide

Femaref
+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