Wix自定义操作如何以管理员身份运行

提问

Wix自定义操作如何以管理员身份运行

回答

如果是要让Action 用管理员的身份去执行:Impersonate="no"
<CustomAction Id='RegisterOPC' FileKey='OPCDAServerRegister.bat' ExeCommand='' Execute="deferred" Impersonate="no" Return="ignore" />

参考

https://www.cnblogs.com/stoneniqiu/p/3981644.html

posted @ 2022-12-30 10:44  东百牧码人  阅读(173)  评论(0)    收藏  举报