当我打开我的安装程序(我使用 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 calledcodesigningx86.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/