Separate shortcut from the component.

like this:

https://github.com/krab/vacuum-im-wix-installer/blob/master/Product.wxs#L20
https://github.com/krab/vacuum-im-wix-installer/blob/master/Files.wxs#L54


2013/9/4 Natalie Carr <natalie.c...@measuresoft.com>

> Hi I have this code for a shortcut. This setup is an add on for my main
> product so the code adds a shortcut to the shortcuts already installed on
> the target machine. On uninstall however the add on shortcut is never
> removed, can anyone see what I am doing wrong?
>
>
>
>        <Component Id="PIDShortcut"
> Guid="696E79B3-D417-4352-9CEE-378DEECD9295" Directory="ProgramMenuDir">
>
>               <Shortcut Id="PIDShortcut" Directory="ProgramMenuDir"
> Name="PID Controller" Icon="pid_cf.exe" IconIndex="0"
> Target="[BIN]pid_cf.exe">
>
>                      <Icon Id="pid_cf.exe"
>
> SourceFile="E:\Products\Measuresoft_SCADA\Processors\PID_Controller\Sources\
> PID_CF\res\pid_cf.ico"/>
>
>                      <ShortcutProperty
> Key="System.AppUserModel.ExcludeFromShowInNewInstall" Value="1"/>
>
>               </Shortcut>
>
>               <RemoveFolder Id='ProgramMenuDir' On='uninstall'/>
>
>               <RegistryValue Root='HKCU'
> Key='Software\ShortcutProperty\[PRODUCTNAME]' Type='string' Value='1'
> KeyPath='yes' Name='PIDShortcut'/>
>
>        </Component>
>
>
>
> Thanks
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to