gpt4 book ai didi

java - 为 Installanywhere2010 安装程序设置 UAC 'Publisher' 字段

转载 作者:可可西里 更新时间:2023-11-01 10:48:29 24 4
gpt4 key购买 nike

当我打开我的安装程序(我使用 InstallAnywhere 2010 创建)时,UAC 对话框出现,其中包含有关我的安装程序的信息。 Publisher 字段为“未知”。

如何将字段 Publisher 从未知更改为必填名称 ...

最佳答案

您需要对完成的安装程序进行数字签名。

在 InstallAnywhere 文档中,我们发现以下内容:

You can digitally sign installers on Windows if you have a valid digital certificate. Digital signatures give end users the added security that comes with knowing that an installer came from a trusted source. It also prevents your customer from seeing a “Unknown Publisher” warning when they launch installers on Windows XP Service Pack 2 and later systems. To digitally sign installers, you essentially need thre [sic] files: a .pvk file (a private key), an .spc file (the code signing certificate), and signcode.exe (the code signing tool from Microsoft). You can download signcode.exe from Microsoft’s download center. It is included in a package called codesigningx86.exe. Signcode has a GUI mode, but can also run from the command line. The command line can be as simple as:

signcode /spc myCert.spc /v mypkey.pvk "install.exe"

Signcode has numerous command-line parameters. For more information about Signcode, search for signcode.exe in the MSDN Library.

请参阅 MSDN 上有关 SignTool 实用程序的链接:http://msdn.microsoft.com/en-us/library/windows/desktop/aa387764(v=vs.85).aspx

关于java - 为 Installanywhere2010 安装程序设置 UAC 'Publisher' 字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14137819/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com