c# - 如何确定我刚安装的 MSI 是否请求 Windows 重新启动?

标签 c# windows installation windows-installer

我在 C# 中构建了一个 setup.exe,它运行多个链接的 MSI(使用 /QUIET/NORESTART)。最后,我想检查机器是否需要重启(也就是说,如果其中一个 MSI 请求重启)。

我怎样才能检测到呢?

最佳答案

以下注册表位置包含信息:

HKLM\System\CurrentControlSet\Control\Session Manager,值PendingFileRenameOperations

来源:http://technet.microsoft.com/en-us/sysinternals/bb897556.aspx

关于c# - 如何确定我刚安装的 MSI 是否请求 Windows 重新启动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1685821/

相关文章:

c# - Azure 搜索 SDK 正则表达式?

windows - 将输出中的特定字段保存到 Windows CMD 上的变量中

Windows程序员,安装到C :\Windows?是个好习惯吗

c# - NumericUpDown 中出现奇怪的 ArgumentOutOfRangeException

C# System.Windows.Forms.Timer EventHandler 未被调用

c# - WPF CheckedListBox SelectionMode ="Multiple"不在 SelectionChanged 事件上更新 SelectedIndex

windows - CreateNamedPipe() 中的 lpSecurityAttributes 需要多长时间?

c++ - 通过 Windows API 函数替换对 AfxGetInstanceHandle() 的调用

python - 在 Debian Linux 下的远程服务器机器上安装 Beautiful soup

c++ - GeoDjango GDAL 安装