Wix任务计划程序的快捷方式以跳过UAC

问题描述

如何创建任务计划程序的快捷方式,例如schtasks /run /tn MyProgramSkipUAC

我的想法是添加如下内容

<Component Id="TestShortcutUAC">
 <Shortcut Id="TestShortcut" Directory="DesktopFolder" Icon="icon.exe" Name="Test"  Target="schtasks /run /tn MyProgramSkipUAC"/>
 <RegistryValue Root="HKCU" Key="Software/MyProgram" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>

在构建过程中,出现以下错误ICE03: Bad shortcut target; Table: Shortcut,Column: Target,Key(s): TestShortcut

我不确定如何为我的程序实现“跳过UAC”快捷方式。手工创建它,我只需在项目的Right click context menu/New/Shortcut位置键入它即可。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)