Prevent installation if pending reboot or updates are in progress

Got a problem you cannot solve? Try here.
Post Reply
digibum
Posts: 4
Joined: Fri Feb 10, 2017 3:29 am

Prevent installation if pending reboot or updates are in progress

Post by digibum »

One of my setup features is MSSQL Server witch requires "clean" system. That means no pending reboot or Windows updates in progress.

Is there an easy way to detect if there is pending reboot or Windows update in progress?

I have already fount registry key, but later discoverd that there are many possible registry key that can require pending reboot.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Prevent installation if pending reboot or updates are in progress

Post by FrancescoT »

For what I know, it doesn't exist an easy way for detecting if Windows update is in progress.

You may have a look at the following links:
https://docs.microsoft.com/en-us/window ... tal-client
https://stackoverflow.com/questions/149 ... rough-wsus

There is a registry key, but this should only tell if an applied Windows Update wants a reboot.
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired

Hope this helps you.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
digibum
Posts: 4
Joined: Fri Feb 10, 2017 3:29 am

Re: Prevent installation if pending reboot or updates are in progress

Post by digibum »

Thank you @FrancescoT, this is the key I'm using at the moment. Will se if this will be sufficient for producing. Otherwise I will prepare a script that will check all associated registry key.

Actualy using /SkipRules=RebootRequiredCheck switch on MSSQL setup should bypass this resctricount, but this is not allways the case. Will report back.

Thanks for now.
Post Reply