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

Reply via email to