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?把它放在“工具”菜单里?