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

1

6

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 :-)

Swash answered 22/7, 2013 at 21:23 Comment(0)
M
9

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

Meantime answered 22/7, 2013 at 23:0 Comment(3)
But when I reference the MSI package, as shown in my OP $(var.SetupProjectWiX.TargetPath), it fails to build the bootstrapper - no error that I can see in the Output :( When I reference the project using the actual path it's fine.Swash
You didn't show the project reference (i.e., text from the bootstrapper .wixproj); You did show the variable reference. The variable is not defined unless the project reference exists. Did you miss that step?Meantime
Certainly did! Thank youuuuuuuuuu!Swash

© 2022 - 2024 — McMap. All rights reserved.