[wix-users] How to Detect if Bundle is Being Upgraded vs Uninstalled
kristofferm2929 at gmail.com
Tue Apr 28 14:33:23 PDT 2020
Thank you for your reply. The WixBunleInstalled would be set to true in the
instances of upgrade and uninstall so I don't think this can be used to
differentiate one over the other. BOOTSTRAPPER_ACTION, according to the
documentation, is "updated during the call to IBootstrapperEngine::Plan()".
This is an issue for me because ExePackage, if I understand correctly,
executes before Plan().
On Tue, Apr 28, 2020 at 8:52 AM Edwin Castro <egcastr at gmail.com> wrote:
> Perhaps WixBundleInstalled and/or WixBundleAction would be helpful.
> The BOOTSTRAPPER_ACTION enum is defined at
> Edwin G. Castro
> On Tue, Apr 28, 2020 at 7:36 AM Kristoffer M via wix-users <
> wix-users at lists.wixtoolset.org> wrote:
>> Hello All,
>> I am using a bundle to install a couple MSI packages and some
>> prerequisites. One of the prerequisites is a program that uses
>> InstallShield to install it. The bundle uses an ExePackage element with
>> CommandLine conditions to call the installshield installer based on if
>> something else exists.
>> Installing and Uninstalling the bundle works just fine but there are
>> that occur during the upgrade process. Is there a way to detect if the
>> bundle is being upgraded vs uninstalled. I want the ExePackage to
>> do nothing during the upgrade. When using the Product element, there are
>> certain properties that can be leveraged such as 'INSTALLED', 'NOT
>> REINSTALL', 'REMOVE=ALL', ect... Are there similar properties that can be
>> used in the bundle element?
>> Thanks very much!
>> WiX Toolset Users Mailing List provided by FireGiant
More information about the wix-users