Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to put exe file in windows Startup

Tags:

c#

windows

wpf

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#?

like image 732
Polaris Avatar asked Jun 10 '10 06:06

Polaris


People also ask

How do I add an EXE to the Start menu in Windows 10?

Open Run command box by pressing Windows logo + R keys. In the Run command field, type shell: startup and then press Enter key to open Startup folder. Copy and paste the app shortcut from the desktop to this Startup folder and the app will be added to startup.

How do I make an EXE file run at startup Windows 7?

Hold the windows and letter R key on the keyboard. In the run dialog, enter "shell:startup". In the folder, you can add any application of your choice which you'd want to run at startup. They'll be added to the list so when you access your Startup Apps, you can disable or enable them.

How do I add a program to the Start menu?

Firstly, you need to create shortcut Windows 10 for the executable file. Right click on the correct exe file. Choose Create shortcut from the pop-up menu. Give the shortcut a name which you want to see in the Start menu (you'd better remove .exe - shortcut from the name).


1 Answers

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

like image 181
Giorgi Avatar answered Oct 11 '22 18:10

Giorgi