How to make Win64 attribute as a variable in wixlib?

三世轮回 提交于 2019-12-11 10:49:45

问题


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?

来源:https://stackoverflow.com/questions/50678065/how-to-make-win64-attribute-as-a-variable-in-wixlib

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!