2
。由於某些原因,Wix快捷方式在卸載時不會被刪除,Wix不會刪除VS 2008中卸載的快捷方式
這是我的代碼:
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="App">
<Component Id="AppExecutable" DiskId="1" Guid="12854481-BE33-4733-8B46-FDB424057C9A">
<File Id="App1ExecutableFile" Source="$(var.RESOURCEDIR)\App.exe" KeyPath="yes">
</File>
</Component>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder" Name="PMFiles">
<Directory Id="AppShortcutDirectory" Name="App for OS">
<Component Id="App1Shortcuts" DiskId="1" Guid="">
<RegistryValue Root="HKCU" Key="[ApplicationRegistryPath]\MsiInstaller\GuestShortcutsAreInstalled" Type="string" Value="" KeyPath="yes" />
<Shortcut Id="App1ExecutableShortcut" Directory="AppShortcutDirectory"
Target="[#App1ExecutableFile]" Name="App"
WorkingDirectory="INSTALLDIR" Description="Run the App" Advertise="no" />
<RemoveFolder Id="DelteShortcutFolder1" Directory="AppShortcutDirectory" On="uninstall" />
</Component>
</Directory>
</Directory>
的感謝!
是的,它工作,但由於某些原因,「*」不起作用。 – Ezequiel 2010-11-29 13:09:36