[wix-users] Get Upgrade Code of BootStrapper Exe from Registry

Venkatesh H venh.123 at gmail.com
Thu Apr 21 21:11:03 PDT 2022

Thank you for your response Jacob. My customer has many existing installers
which are Bootstrapper Exes. These are bundling Prereqs along with the
MSIs. The requirement was to break down the Bootstrapper to individual MSIs
and remove the Prereqs completely. We will be installing / upgrading the
MSIs and not the Bootstrapper. The MSIs are getting upgraded properly.
However, the Bootstrapper entry still remains in the Add/Remove Programs
which needs to be uninstalled & removed. But since the Product ID of the
Bootstrapper can also keep changing for different versions, we are relying
on Upgrade Code to identify the Product ID and uninstall the Bootstrapper.
Since we are automating the installation / uninstallation, we need to
achieve it using PowerShell scripts. Hope this helps.

It will be great if anyone can provide a solution on how to get the upgrade
code of Bootstrapper using commands.

On Thu, Apr 21, 2022 at 9:08 PM Hoover, Jacob <Jacob.Hoover at greenheck.com>

> When you author the bundle, you can specify the upgrade code.  But the
> upgrade code doesn’t allow you to magically remove the bundle.
> You haven’t defined why you need to uninstall it from the command line,
> and why bundle.exe /uninstall isn’t sufficient.
> *From:* wix-users <wix-users-bounces at lists.wixtoolset.org> *On Behalf Of *Venkatesh
> H via wix-users
> *Sent:* Thursday, April 21, 2022 1:46 AM
> *To:* WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> *Cc:* Venkatesh H <venh.123 at gmail.com>
> *Subject:* [wix-users] Get Upgrade Code of BootStrapper Exe from Registry
> For MSI, since the Product Code keeps changing on every upgrade, we are
> relying on Upgrade Code and using WMI calls, getting the Product Code using
> the Upgrade Code and then uninstalling the MSI. We referred to the
> following articles.
> https://stackoverflow.com/questions/17936064/how-can-i-find-the-upgrade-code-for-an-installed-application-in-c/17936065#17936065
> https://stackoverflow.com/questions/46637094/how-can-i-find-the-upgrade-code-for-an-installed-msi-file/46637095#46637095
> We are using PowerShell script to run the commands.
> However, the above approach doesn't seem to be working for Bootstrapper
> EXEs. How can I get the UpgradeCode for Bootstrapper so that I can
> uninstall it using the command line? Please help. Please advise if there is
> some other way.
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
> NOTE: This email was received from an external source. Please use caution
> when opening links or attachments in the message.

More information about the wix-users mailing list