如何向Wix bootstrap添加卸载快捷方式?

时间:2014-08-28 22:52:57

标签: wix windows-installer shortcut bootstrapper wix3.6

我正在尝试使用bootstrap准备安装程序。一切正常但我没有添加卸载应用程序的快捷方式。我尝试将卸载快捷方式添加到主安装程序,但这只卸载文件并在控制面板中保留有关已安装应用程序的信息。有没有办法添加快捷方式来创建引导卸载程序的快捷方式?

1 个答案:

答案 0 :(得分:-1)

为开始菜单添加卸载快捷方式,如下所示:

<Shortcut Id="UninstallProduct"             
      Name="Uninstall My Application"
      Target="[SystemFolder]msiexec.exe"
      Arguments="/x [ProductCode]"
      Description="Uninstalls My Application" />

此示例取自http://wixtoolset.org/documentation/manual/v3/howtos/files_and_registry/create_uninstall_shortcut.html,显示完整的wix项目文件。