I\'ve built a setup.exe in C# that runs several chained MSI\'s (with the /QUIET /NORESTART). At the end I\'d like to check if a reboot is needed in
To complement Vinko Vrsalovic's helfpul answer with a PowerShell command:
$rebootPending = $null -ne
(Get-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Session Manager').PendingFileRenameOperations
Note that $rebootPending equalling $true indicates that a system reboot is pending for any reason, not just due to MSI-based installations.