Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wix到任务计划程序的快捷方式以跳过UAC_Wix - Fatal编程技术网

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

Wix到任务计划程序的快捷方式以跳过UAC,wix,Wix,如何创建任务计划程序的快捷方式,例如schtasks/run/tn MyProgramSkipUAC 我的想法是添加如下内容: <Component Id="TestShortcutUAC"> <Shortcut Id="TestShortcut" Directory="DesktopFolder" Icon="icon.exe" Name="Test" Target=&qu

如何创建任务计划程序的快捷方式,例如
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:快捷方式目标错误;表:快捷方式,列:目标,键:TestShortcut


我不知道如何为我的程序实现“跳过UAC”快捷方式。手动创建时,我只需在
右键单击上下文菜单/New/Shortcut
项的位置中键入它。

您可以从应用程序中打开任务计划程序吗?使用和依赖更好的API?把它放在“工具”菜单里?