【问题标题】:Windows Installer Unknown PublisherWindows Installer 未知发布者
【发布时间】:2022-02-16 03:39:43
【问题描述】:

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

【问题讨论】:

标签: windows-installer


【解决方案1】:

您需要使用数字证书签署 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 中(当您指向证书时它会自动神奇地发生)。

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

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

链接:

【讨论】:

  • 我遵循@Stein的方法。此外,我添加了一些额外的选项。我最后的命令是:signtool sign /debug /fd SHA256 /tr timestamp.globalsign.com/scripts/timstamp.dll /f certificatepath /p certificateprivatekey executablepath
  • 太好了,我更新了答案。感谢您花时间添加该详细信息。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-04-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多