au-packages icon indicating copy to clipboard operation
au-packages copied to clipboard

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

Open flcdrg opened this issue 7 years ago • 2 comments

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

flcdrg avatar May 14 '18 01:05 flcdrg

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.

jasonsschin avatar May 17 '18 00:05 jasonsschin

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?

FRacine avatar Jun 05 '18 10:06 FRacine