[wix-users] Control of the feature set for a MsiPackage
Helge Kruse
Helge.Kruse at gmx.net
Tue Jul 18 11:03:39 PDT 2023
Hello Nir,
Currently I have only the .WXS with the snippet shown in my mail.
Do your links mean, I have to write a bootstrapper application in C#?
Best regards,
Helge
On 18.07.2023 15:14, Nir Bar via wix-users wrote:
> https://wixtoolset.org/docs/schema/wxs/msipackage/#attributesAttribute @EnableFeatureSelectionIn the BA, override https://wixtoolset.org/docs/api/wixtoolset.mba.core/bootstrapperapplication/#onplanmsifeature_args--Nir BarWiX Expert ---- On Tue, 18 Jul 2023 15:04:42 +0300 wix-users at lists.wixtoolset.org wrote ----Hello,
>
> I have to install two MSI packages. One MSI is for x86 and the other for
> x64. I authored a bundle with a custom UI that contains a checkbox cb1.
> With the following chain, cb1 controls the feature set of the x86 MSI to
> be installed. If cb1 is not checked, the ProductFeature shall be
> installed. If cb1 is checked, all features shall be installed.
>
> <Chain>
> <MsiPackage SourceFile="X86.msi" InstallCondition="cb1 = 0" >
> <MsiProperty Name="ADDLOCAL" Value="ProductFeature"/>
> </MsiPackage>
> <MsiPackage Id="SetupAll" SourceFile="X86.msi"
> InstallCondition="cb1 = 1" />
> <MsiPackage SourceFile="X64.msi" InstallCondition="VersionNT64" />
> </Chain>
>
> This worked with WiX 3.x, but the migration to WiX 4 fails with the error:
> The 'ADDLOCAL' MsiProperty is controlled by the
> bootstrapper and cannot be authored.
>
> How can I control the feature set for a MsiPackage in WiX 4?
>
> Best regards,
> Helge
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list