Windows Installer未知发布者

问题描述

我正在创建一个项目,并且为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中(当您指向证书时,它会自动神奇地发生)。

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

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

链接: