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

标签 java windows installanywhere

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

相关文章:

java - 有人编写过模糊日期匹配来捕获数据输入错误吗?

windows - Win7上可以多用户账户访问和操作的数据文件存放在什么地方比较好?

windows - Postgresql 拒绝连接到服务器

java - InstallAnywhere 向导的自动测试

uninstallation - InstallAnywhere - 卸载 Java 错误 : java. lang.IllegalArgumentException:没有 ID = 的产品

python - python popen可以捕获子进程的子进程的交互式输出

java - Java 中枚举中的 null

java - 如何获取 Json 数组中的元素并将内容放入数组列表中?

java - 一个数据库单元格中的多个日期

windows 命令行 多个命令