[wix-users] Overriding current state of an msi package in custom bootstrapper

Hoover, Jacob Jacob.Hoover at greenheck.com
Sun Aug 28 21:05:12 PDT 2016

Are these 3 applications mutually exclusive or is it a user preference as to which ones they want installed?  Also, you didn't define how they got, so I am not certain if this is a self-updating application (in which case the users selection of A1 should still remain).  

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Jayan, Veena
Sent: Sunday, August 28, 2016 8:57 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Overriding current state of an msi package in custom bootstrapper

We have a bootstrapper bundle which chains 3 individual application msi. Bootstrapper custom UI allows user to choose which application to install And based on the selection custom bootstrapper will install its msi.

Now consider the scenario.
Application, say A1 version is installed in the system. Assume bootstrapper version is also

Assume next version of bootstrapper installer with some updates is available, Assume its version is

My requirement is I should be able to uninstal A1 using the installer version
But this latest installer does not detect the msi package current state as present.
here is excerpt from the log:
Detected related package: {92482FD1-38EE-474E-B4C0-32C8FBDF9C0B}, scope: PerMachine, version:, language: 0 operation: MajorUpgrade
[29F0:04E0][2016-08-26T10:50:11]i000: In OnDetectRelatedMsiPackage  event parameters are : CCAdmin and result is None Detected package: CCAdmin, state: Absent, cached: None

[29F0:04E0][2016-08-26T10:50:22]i201: Planned package: CCAdmin, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: Unregister

Is it possible to override the current state of this msi package programatically?

My intention is to set Current State as Present, BA reques state as absent so that Bootstrapper engine will uninstall this package when I invoke Engine.Apply()

The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

More information about the wix-users mailing list