[wix-users] How to disable append of package id to condition variables?
John Stevenson-Hoare
John.Stevenson-Hoare at ffei.co.uk
Tue Oct 23 05:35:10 PDT 2018
I am using WiX Toolset 3.11 from Visual Studio 2017 with WiX Toolset Visual Studio Extension 0.9.21.62588.
I have several WiX projects that build merge modules that are ultimately compiled in to a setup project. Many of the components in the merge modules install a file conditionally based on a property value defined as follows:
<Condition><![CDATA[(SERVER_SELECT_BUTTON=1 OR SERVER_SELECT_BUTTON=3)]]></Condition>
When I link, using light.exe, the process appends the package id to the property value so that the resulting condition in the merge module, as viewed in Orca, looks like the following:
(SERVER_SELECT_BUTTON.AED155B3_E75E_4DCF_BADD_1FC6015C6865=1 OR SERVER_SELECT_BUTTON.AED155B3_E75E_4DCF_BADD_1FC6015C6865=3)
Each merge module uses the same condition, but as the package id differs, I get many similar but clearly different conditions in the final setup project (.msi).
How can I prevent light.exe from appending the package id? My setup project needs the property parts of the conditions to be simply SERVER_SELECT_BUTTON otherwise the files are not installed.
________________________________
[FFEI_Logo_BoxOnly[1].png]<http://www.ffei.co.uk>
CONFIDENTIALITY AND DISCLAIMER NOTICE
This message and any attachment is confidential and is protected by copyright. If you are not the intended recipient, please email the sender and delete this message and any attachment from your system.
Dissemination and or copying of this email is prohibited if you are not the intended recipient. We believe, but do not warrant, that this email and any attachments are virus free. You should take full responsibility for virus checking.
No responsibility is accepted by FFEI Ltd for personal emails or emails unconnected with FFEI Limited's business.
FFEI Limited is a limited company registered in England and Wales (Registered Number: 3244452).
[Join us on Linked In]<http://www.linkedin.com/company/ffei> [Follow @FFEI_ltd] <https://twitter.com/FFEI_ltd> [FFEI YouTube Channel] <http://www.youtube.com/user/FFEIPrintTechnology>
Registered Office: The Cube, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 7DF, England.
More information about the wix-users
mailing list