![]() |
|
[C#] Run C# application at Windows startup? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] Run C# application at Windows startup? (/showthread.php?tid=5894197) |
Run C# application at Windows startup? - Walkirio - Oct 11, 2018 Hello, It's all the day that I'm trying to implement a startup feature into my project. -I used Registry key: //Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run (Administrator Rights) -I used Registry key: //Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run (Administrator Rights) -I used Startup folder linked with a shortcut to my .exe location(inside %appdata%). Unfortunately, nothing worked. My operative system is: Windows 10 - PRO 1083. My project has been developed with C#. Do you know something else? I need you to figure out that issue ! 👍 Thanks in advance for your answers 🤝 RE: Run C# application at Windows startup? - 0xDEAD10CC - Oct 11, 2018 Code shell:StartupShould definitely work or you weren't doing it right, or your application is crashing. If you want it dynamic then use the registry. RE: Run C# application at Windows startup? - Walkirio - Oct 11, 2018 (Oct 11, 2018 08:21 AM)0xDEAD10CC Wrote: You were right. The problem was I/O error that freezed the software. RE: Run C# application at Windows startup? - SaefkoTeam - Oct 13, 2018 This not good way to use regedit it could easily remove ,Inject it into some of system process that run all the time. any why here how you do it Microsoft.Win32.RegistryKey key; key = Microsoft.Win32.Registry.LocalMachine.CreateSubKey("Software\\Wow6432Node\\Names"); key.SetValue("Name", "Isabella"); key.Close(); if you want to add the key to LocalMachine you must have admin right elsewhere not required RE: Run C# application at Windows startup? - 0xDEAD10CC - Oct 14, 2018 (Oct 13, 2018 09:52 AM)SaefkoTeam Wrote: This not good way to use regedit it could easily remove ,Inject it into some of system process that run all the time. And how exactly is this method any better than standard software practices for normal programs? |