Igor Shenderchuk
Igor Shenderchuk

Reputation: 708

Install ExePackage (or MsiPackage) depending on selected features in main MSI

Here is an issue.

Need to create WiX installer which will install the main MSI and additional ExePackage or MsiPackage depending on selected feature in the main MSI.

MainMSI (feature A, feature B) -> Exe1 (only if feature A) -> Msi1 (only if feature B)

I know that WiX burn (or standard BA) processes InstallCondition before the chain starts being applied.
But is there any other way create such installer?

The variant with custom BA is inappropriate for this particular case. Actually, I want similar logic as InstallShield has, when you may assign a redistributable on a specific feature.

Upvotes: 0

Views: 530

Answers (1)

Tiny sam
Tiny sam

Reputation: 68

Installshield implement a special custom action call ISInstallPrerequisit that run after the ReadyToInstall (and thus after the Features selections) but before the ExecuteAction in the UI Sequence.

you could implement custom actions that launch your exe in the UI Sequence (Just before ExecuteAction) and use &Feature to decide to launch it or not.

Upvotes: 0

Related Questions