flcdrg / au-packages

David's Chocolatey Automatic Packages
MIT License
18 stars 54 forks source link

[sql-server-2017] Pending reboot causes installer to fail #28

Open flcdrg opened 6 years ago

flcdrg commented 6 years ago

Should detect pending reboot and fail package up front, rather than waiting for setup.exe to die

See https://gist.github.com/jasonsschin/aa70d069547edd444c0db0e919d81d2d for an example

Look at using https://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542 to detect pending reboot

jasonsschin commented 6 years ago

PS C:\Users\vagrant> Get-PendingReboot Running the suggested Pending reboot script above, results in the following output:

---- Start output ---

Computer : VM-DEV18 CBServicing : False WindowsUpdate : False CCMClientSDK : PendComputerRename : False PendFileRename : True PendFileRenVal : {\??\C:\Windows\AppCompat\Programs\Amcache.hve.tmp, !\??\C:\Windows\AppCompat\Programs\Amcache.hve} RebootPending : True

---- End output ---

This is a viable check which could be included in the package.

FRacine commented 6 years ago

I have the exact same issue. On many sccm applications we are detecting pending reboot before installing software. It is working correctly since years. Since a month we have the pending file rename you ar e showing and our applications are not installing.

Even after a reboot this poending is remove but on SCCM deployment we are getting it back.

Do you have more informations on your side?