We are using WiX for our windows installation.
We were supporting major upgrade without any issues until recently.
I was asked to change the shortcut name as we changed our product name. So i changed it.
After a major upgrade, 2 shortcuts are being displayed instead of one.
The beauty is while we are installing all the feature migrated in same machine ,it deleted the old shortcut properly it seems.
But when we are installing one of the features (webserver feature ) in (webserver) machine, 2 shortcuts appear.
I verified that the shortcut component is also added in webserver feature.
<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 maintain old shortcut (If old shortcut is clicked it is not working)? How to avoid this?