Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我的应用程序需要重新启动系统以更改某些内容,并且我希望它在重新启动后自动继续其操作,我如何将密钥添加到注册表(更重要的是,在注册表中的位置)以在第一次重启?为了清楚起见,我希望这个重启启动只发生一次。换句话说,一旦计算机重新启动,应用程序就会启动,并且在下次启动/重新启动时,它不会自动启动。
是否应该通过添加“启动时启动”键然后将其删除来完成?我感觉有一个专门用于重启操作的注册表区域。
是的,有。RunOnce 键。