为什么卸载后不会删除"开始"菜单快捷方式?

0 windows-installer wix

当我安装.msi文件时,我在开始菜单和桌面上生成快捷方式,但是当我卸载桌面快捷方式时,会删除但是开始菜单.我的代码是吼叫.请帮我解决我的问题.我花了差不多一天的时间.

<Directory Id="ProgramMenuFolder">
   <Directory Id="ProgramMenuSubfolder" Name="Kiosk">
      <Component Id="ApplicationShortcuts" Guid="12345678-1234-1234-1234-333333333333">
         <Shortcut Id="ApplicationShortcut1" Name="Kiosk" Description="Solusoft Product" Target="[INSTALLDIR]AMP\1.0.0.0\mpkiosk.exe" WorkingDirectory="INSTALLDIR"/>
         <RegistryValue Root="HKCU" Key="Software\Kiosk" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
         <RemoveFolder Id="ApplicationShortcut1" On="uninstall"/>
      </Component>
   </Directory>
</Directory>
Run Code Online (Sandbox Code Playgroud)

小智 6

在我的情况下,在组件上,我有GUID ="*"并且没有删除shorcuts.

我使用了一个硬编码的GUID,如:Guid ="cc509cb7-c1a1-46cf-8c62-7cbb0017783c",并删除了快捷方式.

问候.