How to install a desktop shortcut (to a batch file) from a WiX-based installer that has “Run as Administrator” enabled?

。_饼干妹妹 提交于 2019-12-03 13:21:57

I'm guessing you would need a custom action and call the COM interfaces on your own. Query IShellLink (or IPersistFile?) for IShellLinkDataList, then: IShellLinkDataList->SetFlags(orgFlagsFromGetFlags|SLDF_RUNAS_USER);

Edit: Raymond has full sample code on his blog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!