How can I add the option to install updates and restart in Windows 7?

Solution 1:

As far as I have seen, there is no option to "Install and Reboot". You'll have to manually initiate the install process, and reboot when it's finished. I've always wondered about this myself as most Updates require a restart anyway...

You can configure Windows Update to automatically download and install updates on a schedule through the Control Panel which will automatically restart your computer after they are installed. Alternatively, you can also have non-intrusive updates install immediately through Group Policy.

Solution 2:

  1. WuInstall lets you install updates then reboot. I've tried it: it works for me.

    I believe it definitely works on Windows XP, Vista, and 7. I suspect it probably also works on earlier and later Windows versions.

    The developer offers two versions. Version 1.1 is free even for commercial use: it's what I use. Newer versions are sold only in large multi-license packages. The smallest package costs USD$250: far too expensive for home use.

    By default, WuInstall installs all available updates, downloading them if needed. A FAQ entry discusses how to list or install "Important" updates only.

    For it to successfully install anything, you have to run it as administrator. I suggest you run it from an administrator command prompt.

    You can tell it to reboot your PC after installation. If you do, it shows you an informational message when the installation is done, then it reboots your PC after the chosen delay is finished. I suspect it may be impossible to cancel such an impending reboot.

    Usage example: To install all updates (including optional updates) then reboot after 60 seconds, do this. wuinstall /install /reboot 60

  2. I haven't tried them, but maybe wusforceupdate by Samuel Lambert or Portlock Windows Update Manager can also do what you want.

  3. If you have only one PC, don't bother downloading BatchPatch: it cannot do what you want. I've tried it.

P.S. Interesting fact: In Linux, the vast majority of security and functionality software updates work without rebooting. And on a server with Ksplice and a compatible version of Linux, I suspect you could apply every security update, and almost all functionality updates, and still go years without rebooting.