[英]Set editor when UAC prompt
I'm writing a program in C # that needs administrator rights. 我正在用C#编写需要管理员权限的程序。 To do this, I added the following lines to the "app.manifest" file:
为此,我在“ app.manifest”文件中添加了以下几行:
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
The request is working properly The program has administrator rights. 该请求正常运行该程序具有管理员权限。
My problem is that on demand, the publisher is unknown and I do not know how to change it. 我的问题是,按需发行人是未知的,我不知道如何更改它。 UAC image
UAC图片
I entered my name in the assembly, but it does not change anything. 我在程序集中输入了我的名字,但没有任何改变。
Does anyone know how to change this value? 有人知道如何更改此值吗?
source: https://forum.powerbasic.com/forum/user-to-user-discussions/programming/59673-uac-message-publisher-unknown 来源: https : //forum.powerbasic.com/forum/user-to-user-discussions/programming/59673-uac-message-publisher-unknown
In the above source a similar question is asked. 在上述资源中,提出了类似的问题。 The responses indicate the use of a codesigning certificate .
响应表明使用了代码签名证书 。 There is also a mention to a how to in stackoverflow that explains how to create your own codesigning certificate: How do I create a self-signed certificate for code signing on Windows?
还提到了如何在stackoverflow中解释如何创建自己的代码签名证书: 如何为Windows上的代码签名创建自签名证书?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.