0
安裝程序在桌面上創建2個快捷方式:文件(FS)和Internet快捷方式(IS)。在卸載FS
被刪除正常,但IS
仍然存在。 然後我評論FS
並測試。 現在它已成功創建並刪除。如何從桌面刪除快捷方式?
出了什麼問題?
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id="DesktopFolder" Name="Desktop"/>
<Directory Id="ProgramMenuFolder" Name="PMenu">
<Directory Id="ProgramMenuDir" Name="Advertised Shortcut" />
</Directory>
</Directory>
<DirectoryRef Id="DesktopFolder">
<Component Id="ApplicationShortcutConf" Guid="{9FF60FF5-F1A2-413F-98FB-CF7B3101F10F}">
<Shortcut Id="CompanyUtilConfigurator1"
Directory="DesktopFolder"
Advertise="no"
Name="Company Util Configurator"
WorkingDirectory="INSTALLDIR"
Icon="CompanyUtilConfiguratorIcon.exe">
</Shortcut>
<RegistryValue Root="HKCU" Key="Software\Company LLC\Company\Util" Name="installed_conf" Type="integer" Value="1" KeyPath="yes"/>
<RemoveFolder Id="DeleteShortcutFolder1"
Directory="DesktopFolder"
On="uninstall" />
</Component>
<Component Id="ApplicationShortcut" Guid="{77C005A8-63DC-43F1-9081-84157EDED0B3}">
<Condition><![CDATA[WS_SHORTCUT_NAME<>""]]></Condition>
<util:InternetShortcut
Id="Home"
Directory="DesktopFolder"
Name="Company Util" Type="url"
Target="[WS_SHORTCUT_NAME]"/>
<RemoveFolder Id="DesktopFolder2" Directory="DesktopFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\Company LLC\Company\Util" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>