[wix-users] Bootstrapper - Change

Ondrej Krc-Jediny ondro.krc at gmail.com
Tue Jun 21 06:14:51 PDT 2016


So I removed ADDLOCAL, REMOVE and REINSTALL from MsiPackage properties and
handle everything via OnPlanMsiFeature. My .msi is being run now. Thank you
for your suggestions.

On Sun, Jun 19, 2016 at 3:13 PM, Ondrej Krc-Jediny <ondro.krc at gmail.com>
wrote:

> @sampat: yes, I have enablefeatureselection=yes, as can be seen in my
> first email.
>
> @bob: thanks for the suggestion, I'll look into it. But my main problem
> now is the fact that the .msi isn't being run by the bootstrapper at all.
>
> Dňa sobota, 18. júna 2016 sampat magi <ssmcs060 at gmail.com> napísal(a):
>
> Do you have enablefeatureselection="yes" in bundle?
>>
>> Regards
>> Sampat
>> On 17-Jun-2016 9:19 pm, "Bob Arnson" <bob at firegiant.com> wrote:
>>
>> > MSI features must be handled in OnPlanMsiFeature, not via properties.
>> See
>> > bug https://github.com/wixtoolset/issues/issues/5294.
>> >
>> > -----Original Message-----
>> > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
>> Behalf
>> > Of Ondrej Krc-Jediny
>> > Sent: Friday, 17 June, 2016 08:30
>> > To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
>> > Subject: [wix-users] Bootstrapper - Change
>> >
>> > I have a managed bootstrapper application where I try to implement
>> > Change/Repair/Remove functionality (my .msi support all of them).
>> > I'm having problem with the feature Change functionality. After user
>> > selects/deselect features in my BA, I try to run:
>> >
>> > bootstrapApp.Engine.Plan(LaunchAction.Modify);
>> >
>> > but the .msi is never run, probably because of 'execute: None' - log:
>> >
>> > Planned package: instmsi, state: Present, default requested: Present, ba
>> > requested: Present, execute: None, rollback: None, cache: No, uncache:
>> No,
>> > dependency: Register
>> >
>> > As already pointed out in this thread -
>> >
>> >
>> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-modify-MSI-from-the-custom-bootstrapper-td7585752.html
>> > -
>> >
>> > in the PlanPackageBegin event, the RequestState is already Present and
>> > execute ActionState is not modifiable.
>> >
>> > It does the same when I try
>> >
>> > bootstrapApp.Engine.Plan(LaunchAction.Install);
>> >
>> > My MsiPackageElement looks like this
>> >
>> > <MsiPackage EnableFeatureSelection="yes"
>> SuppressSignatureVerification="no"
>> > SourceFile="installer.msi" Id="instmsi">
>> >   <MsiProperty Name="ADDLOCAL" Value="[FEATURES]"/>
>> >   <MsiProperty Name="REMOVE" Value="[FEATURES_REMOVE]"/>
>> >   <MsiProperty Name="REINSTALL" Value="[FEATURES_REINSTALL]"/>
>> > </MsiPackage>
>> >
>> > For the Change functionality, I fill the ADDLOCAL and REMOVE variables
>> > accordingly.
>> >
>> > I don't want to run LaunchAction.Repair, because it re-installs already
>> > installed features (which is not how the .msi Change behaves).
>> >
>> > Is there any way to ensure that my .msi is run in such case?
>> > Thank You
>> >
>> > ____________________________________________________________________
>> > WiX Toolset Users Mailing List provided by FireGiant
>> > http://www.firegiant.com/
>> >
>> > ____________________________________________________________________
>> > 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