Windows 安装程序未知发布者

Windows Installer Unknown Publisher

我正在创建一个项目,并为 windows 创建了一个安装程序。当我单击安装程序时,我遇到一条警告,即“您是否要允许来自未知发布者的此应用程序对您的设备进行更改”。可能是出于安全原因。我不想在安装程序时看到它。我该怎么做?谢谢

您需要使用数字证书对 MSI 进行签名。 Some information on Microsoft SmartScreen and digital certificates here.

据我所知你需要一个EV-code signing certificate。 EV =>“扩展验证”。


签名过程Odd 'Program name' when installing signed msi installer

signtool.exe /d "Your Software Name"

许多 MSI 工具将此过程合并到其工具的 GUI 中(当您指向证书时会发生 auto-magically)。

Latif Uluman 使用的实际命令行(来自评论):

signtool sign /debug /fd SHA256 /tr timestamp.globalsign.com/scripts/timstamp.dll /f certificatepath /p certificateprivatekey executablepath

链接:

  • On digital signing and SmartScreen
  • What is causing to show Publisher to unknown on UAC despite signing exe using signtool