需要重新启动的程序会做什么?
有时,在安装程序后,屏幕上会出现一个窗口,告诉我“要完成安装,请重新启动系统”。
现在,我只想知道程序何时需要重新启动,所以我的问题是:
程序执行哪些类型的操作需要重新启动?
Sometimes after I install a program, a window appears on the screen and tells me, "To complete the installation, restart the system".
Now, I just want to know when a program requires a reboot and so my question is:
What kinds of operations does a program do that require a reboot?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
最常见的原因之一是,如果您需要替换正在使用的文件(例如 Windows 更新的功能),那么您必须告诉系统在下次重新启动时替换它。
One of the most common reasons is if you need to replace files that are in use (such as, say, what Windows Update does), then you have to tell the system to replace it on the next reboot.
一般来说,它是替换/修改系统正在使用(并锁定)的文件,以便它们可以在启动时更新,然后再被锁定。
Generally speaking, it's to replace/modify files that are in use by the system (and locked), so they can be updated on boot, before they are locked again.
通常,当他们在 Windows 本身中安装特殊驱动程序/挂钩时,例如使用 DaemonTools 创建虚拟驱动器。它们要么需要替换正在使用的文件,要么需要重新启动以使程序合并到操作系统的内层中。
Often when they install special drivers / hooks in Windows itself, like creating a virtual drive with DaemonTools. Either they need to replace files that are in use or a reboot is needed for the program to merge in the OS's inner layers.
重新启动的主要原因是安装程序无法替换正在使用的文件。您可以查看 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\FileRenameOperations 下的注册表,看看哪些文件在重新启动后将被删除或重命名。
The main reason for a reboot is files that in use that the installer could not replace. You can look at the registry under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\FileRenameOperations and see which files will be removed or renamed after the reboot.