UAC提示为msi显示一个临时的随机程序名称,可以显示正确的名称吗? [英] The UAC prompt shows a temporary random Program Name for msi, can the correct name be displayed?

查看:268
本文介绍了UAC提示为msi显示一个临时的随机程序名称,可以显示正确的名称吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Windows构建一个MSI安装程序,并使用signtool签署安装程序。当我运行.msi来测试它,UAC(用户帐户控制)提示显示,询问我是否允许安装继续。这很好,但提示显示了一些字段,对于Program Name字段,它显示类似403b3.msi的内容。这不是我运行的msi的名称。



如何获得正确的程序名称?



使用/ d命令行参数与所需的程序名称执行signtool签名msi

看起来Windows安装程序创建一个msi文件的临时副本,并在运行它之前为其分配一个生成的名称。如果你不使用/ d与signtool,你会看到临时文件名,这对你的用户不是很有用。


I'm building an MSI installer for windows and sign the installer using signtool. When I run the .msi to test it, the UAC (User Account Control) prompt shows up to ask me if I want to allow the installation to proceed. That's fine, but the prompt shows a number of fields, and for the Program Name field it displays something like "403b3.msi". This is not the name of the msi I'm running.

How can I get the correct Program Name to be displayed?

解决方案

Use the /d command line argument with the required program name when executing signtool to sign the msi.

It appears that the windows installer creates a temporary copy of the msi file and assigns it a generated name before running it. If you don't use /d with signtool, you get to see the temporary filename which isn't very useful for your users.

这篇关于UAC提示为msi显示一个临时的随机程序名称,可以显示正确的名称吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆