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.
Prevent installation if pending reboot or updates are in progress
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Prevent installation if pending reboot or updates are in progress
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.
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
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
Re: Prevent installation if pending reboot or updates are in progress
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.
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.
Who is online
Users browsing this forum: No registered users and 54 guests