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 the machine (that is, if one of the MSI's requested a reboot).
How can I detect so?
The following registry location has the information:
Key HKLM\System\CurrentControlSet\Control\Session Manager
, value PendingFileRenameOperations
Source: http://technet.microsoft.com/en-us/sysinternals/bb897556.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With