开发者

Digitally Signed MSI still prompts UAC

开发者 https://www.devze.com 2023-02-03 15:49 出处:网络
I have digitally signed a MSI Installer file however it still keeps prompting for a UAC. Is there a开发者_运维百科nything I need to do to prevent the UAC notification from showing up?

I have digitally signed a MSI Installer file however it still keeps prompting for a UAC. Is there a开发者_运维百科nything I need to do to prevent the UAC notification from showing up?

Thanks


Leppie is of course right. If you sign the MSI the UAC prompt does not go away (and there is no other way to do that either, short of turning off UAC). Instead the color of the prompt changes from "warning" yellow to "trustworthy" blue-green. Examples and further explanations can be found here.


Digitally signing will only ensure that the publisher in UAC prompt will be named instead of an 'unknown publisher'. If you are running msi you can require administrator to install it. If it is written in WIX then have the attribute InstallPrivileges="elevated" for the Product element. You can attach a proper manifest file elevating privileges to avoid a UAC prompt to setup.exe if you have setup.exe bootstrapper for your MSI.

Be aware that doing these things have other implications.


Only applications signed by the Microsoft Windows publisher certificate can auto-elevate i.e. most Windows system components. 3rd party apps cannot.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号