Skip flag to merge module with WiX installer?

We have merge modules that will install PDB files when a specific conditional variable is true, but we need to set this condition.

Can I set this condition in the WiX installer and somehow transfer it to the merge module?

+3
source share
2 answers

You can set the installer properties in the merge modules using this format:

<property_name>.<module_GUID>

For instance:

CONDITION_PROPERTY.32D73316_E513_43C3_99F5_381A4B5F0A78

In your installer, you can try using a custom action to set the property used in the state of the merge module.

A custom action element might look like this:

<CustomAction Id="SetMsmProperty" Return="check" Property="CONDITION_PROPERTY.32D73316_E513_43C3_99F5_381A4B5F0A78" Value="myValue" />

InstallExecuteSequence → AppSearch, InstallExecuteSequence:

<InstallExecuteSequence>
  <Custom Action="SetMsmProperty" After="AppSearch">NOT Installed</Custom>
</InstallExecuteSequence>

wix:

+4

, . , , , , . , , " " .

0

Source: https://habr.com/ru/post/1778755/


All Articles