Thank you for all your help.

Don't know how I missed it but the reason was that the folder I created in
the start menu is using a property and of course on uninstall the property
was empty so it did not know where to delete from. Silly mistake that I
missed.

-----Original Message-----
From: Phil Wilson [mailto:phildgwil...@gmail.com] 
Sent: 04 September 2013 18:21
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Shortcut not being deleted

RemoveFolder doesn't remove the folder if it contains files. It's possible
that you need to explicitly use RemoveFile to delete the shortcut, maybe in
conjunction with RemoveFolder.  Also, it wouldn't hurt to verify that the
component associated with the RemoveFolder/RemoveFile is actually being
removed (in case it's shared, permanent).

Phil Wilson


On Wed, Sep 4, 2013 at 5:23 AM, Alexey Ivanov
<alexey.iva...@gmail.com>wrote:

> oops http://support.microsoft.com/kb/223300
>
>
> 2013/9/4 Alexey Ivanov <alexey.iva...@gmail.com>
>
> > msiexec /i  yourfile.msi /L*v  c:\temp\yourinstall.log
> >
> > or enable in windows by default
> http://support.microsoft.com/kb/223300/ru
> >
> >
> > 2013/9/4 Natalie Carr <natalie.c...@measuresoft.com>
> >
> >> Hi,
> >>
> >> Thank you, done exactly the same and it still is not deleting :(
> >>
> >> -----Original Message-----
> >> From: Alexey Ivanov [mailto:alexey.iva...@gmail.com]
> >> Sent: 04 September 2013 10:50
> >> To: General discussion for Windows Installer XML toolset.
> >> Subject: Re: [WiX-users] Shortcut not being deleted
> >>
> >> Separate shortcut from the component.
> >>
> >> like this:
> >>
> >>
> >>
> https://github.com/krab/vacuum-im-wix-installer/blob/master/Product.wx
> s#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_Controll
> >> > er\So
> >> > urces\
> >> > 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.c
> >> > lktrk _______________________________________________
> >> > 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.c
> lktrk
> >> _______________________________________________
> >> 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.c
> lktrk
> >> _______________________________________________
> >> 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.c
> lktrk _______________________________________________
> 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


------------------------------------------------------------------------------
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=58041391&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