C # autorun automatically adds the application to the startup folder

Is it possible that C # autorun will automatically add the application to the startup folder. Now I can download and install the C # application using autorun, but the application does not load automatically when windows are reloaded. How to do it?

+3
source share
3 answers

You can use it:

RegistryKey rkey = 
    Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run");
rkey.SetValue("YourApplicationName", Application.ExecutablePath);
+4
source

If you want to run some applications <I suggest you switch to Windows Services :)

+1
source

Active Setup, , HKLM

Active Setup is a Microsoft installation technology used to download and install versions 4-6 for Internet Explorer. It was designed to selectively download and install signed Internet Explorer components over the Internet. This significantly reduced the amount of data downloaded, as well as the time required to update. Active Setup can also resume partially completed downloads from where they were interrupted.

0
source

Source: https://habr.com/ru/post/1776253/


All Articles