Prevent installation if pending reboot or updates are in progress

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

Prevent installation if pending reboot or updates are in progress

Postby digibum » Thu Jun 11, 2020 6:36 am

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: 5047
Joined: Sun Aug 22, 2010 4:28 am

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

Postby FrancescoT » Thu Jun 11, 2020 1:03 pm

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/windows/win32/wua_sdk/portal-client
https://stackoverflow.com/questions/14989145/checking-windows-updates-directly-through-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

Postby digibum » Fri Jun 12, 2020 3:35 am

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.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 28 guests