Search code examples
wixbootstrapperburnchain

HowTo put Chain Elements into own Subdiretory in Wix Bootstrapper Project


I've set the compressed element to "no", so the chained file is available for the current User which is installating the Software.

I've already searched on Wix Toolset and tried to find something in the Book they've released. But still I found no hint how to extract every element to a single Directory.

Thats my current Chain element:

<Chain>      
      <ExePackage Compressed ="no" SourceFile="Imports/vcredist_2008_x64.exe" InstallCommand="/q" InstallCondition="VersionNT64"/>
      <ExePackage Compressed ="no" SourceFile="Imports/vcredist_2008_x86.exe" InstallCommand="/q" />
      <ExePackage Compressed ="no" SourceFile="Imports/vcredist_2010_x64.exe" InstallCommand="/quiet" InstallCondition="VersionNT64"/>
      <ExePackage Compressed ="no" SourceFile="Imports/vcredist_2010_x86.exe" InstallCommand="/quiet" />
      <ExePackage Compressed ="no" SourceFile="Imports/vcredist_2012_x64.exe" InstallCommand="/quiet" InstallCondition="VersionNT64"/>
      <ExePackage Compressed ="no" SourceFile="Imports/vcredist_2012_x86.exe" InstallCommand="/quiet" />
      <ExePackage Compressed ="no" SourceFile="Imports/dotNetFx40_Full_x86_x64.exe" InstallCommand="/q /norestart /ChainingPackage FullX64Bootstrapper"/>
      <ExePackage Compressed ="no" SourceFile="Imports/dotNetFx40LP_Full_x86_x64de.exe" InstallCommand="/q /norestart /ChainingPackage FullX64ClickOnce"/>      
</Chain>

Solution

  • Use the Name attribute to specify a subdirectory.