title: WiX Installer removes shortcut on upgrade
body: <p>I am using the WiX Toolkit v3.11 for creating setups of my software. During installation I create startmenu shortcuts with the following code:</p>
  
  <pre><code>&lt;Shortcut Id='startmenuMyProgram'
            Name='$(var.MyProgramName)'
            Directory='ProgramMenuFolder'
            WorkingDirectory='APPLICATIONFOLDER'
            Advertise='yes'
            Icon='icon.exe'&gt;
    &lt;Icon Id='icon.exe' SourceFile='$(var.Setuppath)\MyProgram.exe'/&gt;
  &lt;/Shortcut&gt;
  </code></pre>
  
  <p>In this way I also create two shortcuts for other executables. Now for the uninstall I want to remove the shortcuts.</p>
  
  <pre><code>&lt;Component Id="removeStartmenuShortcuts" Guid="803ad14a-feab-4901-b9db-2c4a1298ae8b"&gt;
    &lt;Condition&gt;(REMOVE=ALL) AND NOT (WIX_UPGRADE_DETECTED OR UPGRADINGPRODUCTCODE)&lt;/Condition&gt;
  
    &lt;RemoveFile Id="remove_startmenuProgram1" Name="startmenuMyProgram" On="uninstall" /&gt;
    &lt;RemoveFile Id="remove_startmenuProgram2" Name="startmenuMyProgram2" On="uninstall"/&gt;
    &lt;RemoveFile Id="remove_startmenuProgram3" Name="startmenuMyProgram3" On="uninstall"/&gt;
  &lt;/Component&gt;
  </code></pre>
  
  <p>This works without any problems when I uninstall the software. But the shortcuts are also removed when an update is performed. But I want to prevent this behavior, but the condition seems not to work. So all shortcuts like in the Windows task bar are removed when I do an update.</p>
  
  <p>How can I make my update progress work correctly?</p>
  
  <p>Here the behavior after update:</p>
  
  <p><a href="https://i.stack.imgur.com/nkjDw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nkjDw.png" alt="Behavior when doing an update"></a></p>
  
  <p>The group with all shortcuts in the right is missing!</p>