[wix-users] Uninstall application programmatically using GUID in C#

Christopher Painter chrpai at iswix.com
Thu Dec 3 13:31:34 PST 2020


That works if the products are doing major upgrades.  If they do side by side installation with the same UpgradeCode then it'll be ambigious.

________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Herman van Drie via wix-users <wix-users at lists.wixtoolset.org>
Sent: Thursday, December 3, 2020 7:53 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Herman van Drie <hvandrie at outlook.com>
Subject: Re: [wix-users] Uninstall application programmatically using GUID in C#

"Upgrade Code not helpful for uninstallation" ??

Upgrade Code is essential to find any version of the product you wish you uninstall using GetRelatedProducts function.
Example: IEnumerable<ProductInstallation> relatedProducts = ProductInstallation.GetRelatedProducts(session["UpgradeCode"]);

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Abhishek Nene via wix-users
Sent: donderdag 3 december 2020 14:50
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Abhishek Nene <abhishek.nene at zycus.com>
Subject: Re: [wix-users] Uninstall application programmatically using GUID in C#

No. Upgrade Code not helpful for uninstallation. Need Product code to uninstall.

Anyway of getting the Product Code of installed application?


-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Kuch3n via wix-users
Sent: Thursday, December 3, 2020 5:55 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Kuch3n <kuch3n at protonmail.com>
Subject: Re: [wix-users] Uninstall application programmatically using GUID in C#

Hi,

maybe "UpgradeCode" is what you're searching for.

Regards


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, 3. December 2020 13:23, Abhishek Nene via wix-users <wix-users at lists.wixtoolset.org> wrote:

> Hi,
>
> I am trying to uninstall and install programmatically using C# in our VSTO add-in. Although, its msi we are creating using WIX Toolset.
>
> How to get GUID for setup project / GUID of application to uninstall application using msiexec.exe through powershell.
>
> Could not able to get exact GUID of application. (In Wix setup , Product Id = "*" does this need to be change or any other way to get exact Product Code of application which is installed in system to uninstall.)
>
> Please suggest.
>
> Regards,
> Abhishek Nene
>
> 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/

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



More information about the wix-users mailing list