开发者

Adding .NET App to Registry to Launch after Reboot to Complete Certain Actions

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 re开发者_StackOverflow社区moving it? I have a feeling that there's a dedicated registry area for reboot actions.


Yup, there is. The RunOnce key.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜