Adding a .NET application to the registry to start after reboot to perform certain actions

If my application needs to restart the system in order to change something, and I would like it to continue automatically after rebooting, how can I add a key to the registry (more importantly, where in the registry) to start the application on the first reboot ? To be clear, I want this restart to run only once. In other words, after the computer restarts, the application starts, and the next time it boots / restarts, it does not start automatically.

If this is done by simply adding the “run at startup” key and then deleting it? I have the feeling that there is a special registry area for reboot actions.

+5
source share
1 answer

Yes there is. RunOnce.

+6
source

All Articles