5

If my app needs to reboot the system to change something and I'd like it to automatically continue its actions after the reboot, how can I add a key to the registry (more importantly, where in the registry) to launch the app on the first reboot? Just to be clear, I want this reboot-launch to happen only once. In other words, once the computer reboots, the app is launched, and on the next bootup/reboot, it isn't launched automatically.

Should this be done by just adding a "launch at startup" key and then removing it? I have a feeling that there's a dedicated registry area for reboot actions.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Maxim Zaslavsky
  • 17,787
  • 30
  • 107
  • 173

1 Answers1

6

Yup, there is. The RunOnce key.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536