Why two shortcuts after major update (migration)?

We use WiX to install our windows.

We supported a major update without any problems until recently.

I was asked to change the name of the label when we changed the name of our product. So I changed it.

After a major update, 2 shortcuts will appear instead of one.

The beauty is that we install all the functions transferred on one computer and delete the old shortcut properly.

But when we install one of the functions (web server function) on the machine (web server), 2 shortcuts appear.

I checked that the shortcut component is also added to the web server function.

 <DirectoryRef Id="ProgramMenu.OrganizationName.MyProj">
          <Component Id="CoreInterface_Shortcuts" Guid="3e3c3733-9b53-42cf-a641-b5b3e3da88cf">
            <Shortcut Id="MyOrgMESUrl" Name="Home" Description="MyOrg Intuition URL" Target="[INSTALLDIR]MyOrg MES.url" WorkingDirectory="INSTALLDIR"/>
            <RemoveFolder Id="RemProgramMenu.MyOrg" Directory="ProgramMenu.MyOrg" On="uninstall"/>
            <RemoveFolder Id="RemProgramMenu.MyOrg.MyProj" Directory="ProgramMenu.MyOrg.MyProj" On="uninstall"/>
            <RegistryValue Root="HKCU" Key="Software\MyOrg\MyProj" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
          </Component>
        </DirectoryRef>

<Feature Id="WEBSERVER" Title="WEBSERVER Customized Component(s)" Level="1">
      <ComponentRef Id="CoreInterface_Shortcuts"/>
</Feature>

Why does it support the old shortcut (if you click the old shortcut, it does not work)? How to avoid this?

+5
1

. .

guid.

. :

, , . .

, , . .

, , . .

(Windows)

/ . msi. /. , .

+7

All Articles