我已经使用有效证书签署了我的 MSI 安装程序。 当我安装此 MSI 时,UAC 会提示并正确显示发布者名称。 但是,当我卸载 MSI UAC 时提示“Unknown Publisher”。
如果检查缓存安装程序的 C:\Windows\Installer
文件夹,但它没有证书!
那么为什么它不保留缓存安装程序的证书呢?
最佳答案
如果您在 Windows Vista(或 Windows Server 2008)上运行,这是一个 well-known behavior of Windows Installer archive .
Windows Installer strips-out embedded cabinets to save space. Unfortunately, altering the
.msi
in this way also invalidates the digital signature.
您可以通过构建不带嵌入式 cab 的 .msi
来避免这种情况;那就是让您安装的所有文件都在 .msi
本身之外。但是,如果您在 Windows 7 或更高版本上看到这一点,那将是意想不到的。
关于windows-installer - UAC 仅在卸载时提示 "Unknown Publisher",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13740996/