How to find out if an MSI I just installed requested a Windows reboot?

前端 未结 3 1700
别跟我提以往
别跟我提以往 2020-12-18 00:53

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

3条回答
  •  清歌不尽
    2020-12-18 01:23

    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

提交回复
热议问题