Hi,

 

I am creating desktop shortcut inside a Component.

After installing the product, I renamed the shortcut and performed major
upgrade.

The upgrade left me with two shortcuts (the original one and the new renamed
one). After uninstalling the product, the original shortcut was left
orphaned. I did not change the component guid as the shortcut is not
keypath.

 

Here is excerpt of my code:

 

      <Directory Id="ProgramMenuFolder" Name="Programs">

        <Directory Id="ProgramMenuDir" Name="$(var.ProductName)">

          <Component Id="Comp_ProgramMenuDir"
Guid="{66C429C9-477D-4C48-8B64-0A480F7AB472}">

            <RemoveFolder Id='ProgramMenuDir' On='uninstall' />

            <RegistryValue Root='HKCU'
Key='Software\$(var.Manufacturer)\$(var.ProductName)' Type='string' Value=''
KeyPath='yes' />

            <Shortcut Id='desktopMyWin' 

              Directory='DesktopFolder' 

              Name='$(var.ProductName) Command Prompt'

              WorkingDirectory='MyFolder' 

              Icon='MyIcon.ico' 

              Target='[%ComSpec]'

              Arguments='[SHELLARGS]'

              Advertise='no' />

         </Component>

        </Directory>

      </Directory>

 

 

Can you please help? 

 

Thank you!

 

Martin Kulov

 

Microsoft Regional Director

VS ALM MVP, MCT, INETA Speaker

 

http://www.kulov.net

Phone: (+359) 88 821 3255

 

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to