Search code examples
wixburnwix3.7

Can I reference the MSI output from a WiX Setup project in my wix Bootstrapper project?


For example, I want to do this, but it generates an error:

<Chain>
  <MsiPackage SourceFile="$(var.SetupProjectWiX.TargetPath)" />
</Chain>

- where SetupProjectWiX is my MSI WiX project.

I do something similar when creating the MSI itself, and figured the above was possible. Here's the MSI creation referencing a VS project

<File Source="$(var.uCamera.TargetPath)" />

Edit:

I had not added the MSI project as a reference in the bootstrapper project - now it works like a charm :-)


Solution

  • Yes. the same project referencing and variables techniques apply to Bootstrapper projects, too.