Folders are only removed if they are empty at the time the action is run. 
Otherwise they are left behind.
 
Shortcuts are removed when the component creating them is uninstalled.
 
RemoveFolder is only "really" required for folders that don't have components 
"assigned" to them (as often happens with folders used with shortcuts), since a 
folder associated with a component will be erased if empty once all components 
using that folder (or any of its subfolders) have been removed.
 
A component is an "atomic" unit of installation. All of a components resources 
are all either written or erased in the same transaction (with some limited 
exceptions).
 
A feature is the "externally selectable" unit of installation. All components 
in an installed feature will be installed (or left installed), and all 
components with no remaining installed features are removed whenever any 
features have been removed.
 
> Date: Thu, 17 Oct 2013 13:50:54 +0200
> From: bginf...@kztsoftware.com
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] RemoveFolder question
> 
> Hello again,
> 
> But, using RemoveFolder inside the component, does it mean that all the
> shortcuts, if there are more than one , will be removed when uninstalled?
> In other words, they will be treated as a "group" of uninstall?
> 
> Thanks a lot for your time.
> 
> 
> 
> 
> 2013/10/17 Blair Murri <os...@live.com>
> 
> > Actions (such as RemoveFolder) must be associated with a single component
> > because components are what are installed or removed. If RemoveFolder were
> > associated with the directory itself, it would require a Component
> > attribute in order to associate the action with the controlling component,
> > and that would mean that all the resources and actions of a component would
> > no longer be (mostly) together.
> >
> > > Date: Thu, 17 Oct 2013 09:43:56 +0200
> > > From: bginf...@kztsoftware.com
> > > To: wix-users@lists.sourceforge.net
> > > Subject: [WiX-users] RemoveFolder question
> > >
> > > Hello,
> > >
> > > I have a question regarding RemoveFolder.
> > >
> > > In the following snippet, the the sentence:  <RemoveFolder Id="Utils"
> > > On="uninstall"/> is below component at the samelevel of Shortcut?
> > >
> > > Why is not at the same level of <DirectoryRef Id="Utils"> what has more
> > > sense in my opinion?
> > >
> > > Thanks a lot.
> > >
> > >
> > > <DirectoryRef Id="Utils">
> > >         <Component Id="ApplicationShortcutHTML"
> > > Guid="BCD09B03-9EA8-4FAA-B920-
> > > C04C95310E4C">
> > >             <Shortcut Id="ApplicationStartMenuShortcutHTML"
> > >                     Name="BGINFO4X - Html Report"
> > >
> > > Target="[\%]USERPROFILE[\%]\BGINFO4X\EXPORT\BGINFO4X.html"/>
> > >
> > >             <RemoveFolder Id="Utils" On="uninstall"/>
> > >             <RegistryValue Root="HKMU"
> > > Key="Software\[Manufacturer]\[ProductName]" Name="Utils" Type="integer"
> > > Value="1" KeyPath="yes" />
> > >         </Component>
> > >         <Component Id="ApplicationShortcutUnix"
> > > Guid="79B66FE6-9DA6-4918-B265-73A7772DA810">
> > >             <Shortcut Id="ApplicationStartMenuShortcutUnix"
> > >                       Name="BGINFO4X - Unix Bash Shell" Description="
> > > BGINFO4X - Unix Bash Shell"
> > >                       Target="[INSTALLDIR]BGINFO4X Bash Shell.bat"
> > > Icon="WIX_32x32.ico"
> > >                       WorkingDirectory="INSTALLDIR"/>
> > >
> > >             <RegistryValue Root="HKMU"
> > > Key="Software\[Manufacturer]\[ProductName]" Name="BGINFO4X for Windows -
> > > Unix Bash Shell" Type="integer" Value="1" KeyPath="yes" />
> > >         </Component>
> > >         <Component Id="ApplicationShortcutSqliteStudio"
> > > Guid="53D1499E-A8FB-435D-8380-EFC5462B2B62">
> > >             <Shortcut Id="ApplicationStartMenuShortcutSqliteStudio"
> > >                       Name="BGINFO4X - Sqlite Studio"
> > > Description="BGINFO4X- Sqlite Studio"
> > >                       Target="[INSTALLDIR]BGINFO4X Sqlite Studio.bat"
> > > Show="minimized"
> > >                       WorkingDirectory="INSTALLDIR"/>
> > >
> > >             <RegistryValue Root="HKMU"
> > > Key="Software\[Manufacturer]\[ProductName]" Name="BGINFO4X for Windows -
> > > Sqlite Studio" Type="integer" Value="1" KeyPath="yes" />
> > >         </Component>
> > >         <Component Id="ApplicationShortcut"
> > > Guid="240BFA0F-8BF2-45AB-A1CB-D605D2D99628">
> > >             <Shortcut Id="ApplicationStartMenuShortcut"
> > >                       Name="BGINFO4X for Windows" Description="BGINFO4X
> > for
> > > Windows"
> > >                       Target="[INSTALLDIR]BGINFO4X for Windows.bat"
> > > Icon="WIX_32x32.ico"
> > >                       WorkingDirectory="INSTALLDIR"/>
> > >             <RegistryValue Root="HKMU"
> > > Key="Software\[Manufacturer]\[ProductName]" Name="BGINFO4X for Windows"
> > > Type="integer" Value="1" KeyPath="yes" />
> > >          </Component>
> > >         <Component Id="ApplicationShortcutHidden"
> > > Guid="C0D08806-B5C4-4212-A780-05164FC7F7F7">
> > >             <Shortcut Id="ApplicationStartMenuShortcutHidden"
> > >                       Name="BGINFO4X for Windows - Hidden Console"
> > >                       Target="[INSTALLDIR]BGINFO4X for
> > > Windows-hiddenconsole.bat" Icon="WIX_32x32.ico" Show="minimized"
> > >                       WorkingDirectory="INSTALLDIR"/>
> > >             <RegistryValue Root="HKMU"
> > > Key="Software\[Manufacturer]\[ProductName]" Name="BGINFO4X for Windows -
> > > Hidden Console" Type="integer" Value="1" KeyPath="yes" />
> > >
> > >         </Component>
> > >     </DirectoryRef>
> > >
> > ------------------------------------------------------------------------------
> > > October Webinars: Code for Performance
> > > Free Intel webinars can help you accelerate application performance.
> > > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> > from
> > > the latest Intel processors and coprocessors. See abstracts and register
> > >
> > >
> > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> > > _______________________________________________
> > > WiX-users mailing list
> > > WiX-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> > ------------------------------------------------------------------------------
> > October Webinars: Code for Performance
> > Free Intel webinars can help you accelerate application performance.
> > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> > from
> > the latest Intel processors and coprocessors. See abstracts and register >
> > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
                                          
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&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