Windows 安装程序未知发布者 [英] Windows Installer Unknown Publisher
问题描述
我正在创建一个项目,并为 Windows 安装了一个安装程序.当我单击安装程序时,我遇到一条警告,提示您是否要允许来自未知发布者的此应用程序对您的设备进行更改".可能是它的安全原因.我不想在安装程序时看到它.我该怎么做?谢谢
I am creating a project and I did an installer for windows. When I click the installer, I encounter with a warning which is "that do you want to allow this app from unknown publisher to make changes to your device". Probably the reason of it security reasons. I do not want to see it when I install my program. How can I do it? Thanks
推荐答案
您需要使用数字证书对 MSI 进行签名.此处提供有关 Microsoft SmartScreen 和数字证书的一些信息.
You need to sign the MSI with a digital certificate. Some information on Microsoft SmartScreen and digital certificates here.
据我所知您需要一个 EV 代码签名证书强>.EV =>扩展验证".
As far as I know you need an EV-code signing certificate. EV => "Extended Validation".
signtool.exe /d "Your Software Name"
许多 MSI 工具将此过程合并到其工具的 GUI 中(当您指向证书时,它会自动神奇地发生).
Many MSI tools incorporate this process inside their tools's GUI (it happens auto-magically when you point to the certificate).
Latif Uluman 使用的实际命令行(来自评论):
Actual command line used by Latif Uluman (from comments):
signtool sign /debug /fd SHA256 /tr timestamp.globalsign.com/scripts/timstamp.dll /f certificatepath /p certificateprivatekey executablepath
链接:
这篇关于Windows 安装程序未知发布者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!