How to make Win64 attribute as a variable in wixlib?

144 views Asked by At

We have some components in wixlib project and different installer projects reference it. The problem is Win64 attribute and several others as per my investigation can be bound only to preprocessor variable.

 <Component Id="someid" Guid="someguid" Directory="$(var.FrameworkFolder)" Win64="$(var.Platform64)">
  <File Id="somefile" Name="somename" DiskId="1" KeyPath="yes" Source="$(var.OutputFolder)\somefile"/>
</Component>

Currently, that forces us to have the library dynamically referencing ConfigVariables.wxi from the output project which is a huge restriction if we won't to have two installers in one solution for example.

May be someone knows a way to make such values injectable after wixlib is already build?

0

There are 0 answers