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?
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 key has the information:
HKLM\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations
Source: http://technet.microsoft.com/en-us/sysinternals/bb897556.aspx