WiX minor update removes Windows 7 taskbar shortcut

Each upgrade to a new version of WiX for some reason removes the attached Start Menu shortcut on the taskbar. How can i fix this?

A shortcut was created using this command:

   <DirectoryRef Id="ProgramMenuFolder">
      <Component Id="GitExtensions.newstartmenu" Guid="*">
        <Shortcut
          Id="GitExtensions.newstartmenu"
          Name="$(var.ProductName)"
          Description="$(var.ProductName)"
          Icon="gitextensions.ico"
          Target="[INSTALLDIR]GitExtensions.exe"
          WorkingDirectory="INSTALLDIR"/>
        <RegistryValue
          Root="HKCU" Key="$(var.InstalledRegKey)"
          Name="GitExtensions.newstartmenu" Value="" Type="string"
          KeyPath="yes"/>
      </Component>
    </DirectoryRef>

WiX Code: https://github.com/gitextensions/gitextensions/blob/f9490e3e6e34cc2f6770fd9e1d6132cf5cfd0b0b/Setup/Product.wxs#L385-L399

The setup was built in VS2010 + WiX 3.5.

+3
source share
1 answer

, RemoveExistingProducts , . , . RemoveExistingProducts, , .

+5

All Articles