[Solved] Disable startup program in registry; [closed]

You can set a program at startup like that: private void SetStartup() { RegistryKey rk = Registry.CurrentUser.OpenSubKey (“SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run”, true); rk.SetValue(“Notepad”, “c:\windows\notepad.exe”); } Now if you want to remove it then just edit the path slightly. rk.SetValue(“Notepad”, “c:\windows\notepad.exe_”); Later on if you want to reset it, just remove the underscore. 4 solved Disable startup program in … Read more

[Solved] How do i run a program on startup? c# [closed]

As a non-admin, you can only set something to startup automatically for your own user account. You would use the per-user startup folder (or one of the HKCU registry keys) for this. FOLDERID_CommonStartup For all users, requires admin privileges to modify. Location depends on OS version and customization, but by default is either: %ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\StartUp … Read more