2014-08-28 90 views
1

我正在嘗試使用bootstrap來準備安裝程序。一切正常,但我無法添加卸載應用程序的快捷方式。我試圖添加卸載快捷方式到主安裝程序,但這隻卸載文件並在控制面板中保留有關已安裝應用程序的信息。有什麼方法可以添加快捷方式來創建bootstrap卸載程序的快捷方式嗎?如何添加卸載快捷方式到Wix bootstrap?

+0

「郵件安裝程序」是什麼意思? – user145400 2014-08-28 22:55:49

+0

我拼錯它...不郵件,但主要。我知道如何在普通安裝程序中執行此操作,但如何在捆綁中執行此操作? – dnf 2014-08-29 05:36:26

+0

這裏有兩個有用的鏈接: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Burn-and-uninstall-shortcut-td7587878.html http:// windows-installer -xml-wix-toolset.687559.n2.nabble.com/WiX-Bootstrapper-Bundle-creating-uninstall-shortcut-in-program-files-td7580364.html – 2015-03-26 20:52:54

回答

-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的項目文件。

+5

我看到了這個示例,但我的問題是如何將其添加到引導程序(bundle.wxs)。上面的一個卸載文件,但在系統中保留引導安裝程序。 – dnf 2014-08-29 05:39:58

相關問題