views:

116

answers:

0

In my scenario I have created two bootstrappers:

  1. With Relative Prerequisites (at the local repository).

  2. With HomeSite (download from the vendor's website).

Now I have to copy my msi file for both of the bootstrappers in two different locations. So can I just put msi at one location and use it for both the bootstrapper? As it saves hard drive space (my msi file is 30 MB).

My build file code snippet inside Target Tag is like: Here $(TargetPath) is the Absolute Path of the file which TestApp.msi

<GenerateBootstrapper
ApplicationFile="$(TargetPath)"
BootstrapperItems="@(BootstrapperFile)"
Path="C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\"
OutputPath="bin\Debug\"
ComponentsLocation="Relative"
CopyComponents="true"
Culture="en-US" />

<GenerateBootstrapper
  ApplicationFile="$(TargetPath)" 
  BootstrapperItems="@(BootstrapperFile)" 
  Path="C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\"
  ComponentsLocation="HomeSite"  
  OutputPath="bin\"
  CopyComponents="false"
  Culture="en-US" />

Is it possible to implement this scenario?

As I search on Google I found that it's a bug in WiX:

http://sourceforge.net/tracker/?func=detail&amp;aid=2795343&amp;group%5Fid=105970&amp;atid=642714