Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Uninstall using upgrade code

254 views
Skip to first unread message

hari

unread,
Feb 17, 2009, 3:08:01 PM2/17/09
to
Is there way to uninstall msis using upgrade code instead of product code?

Hari

Kalle Olavi Niemitalo

unread,
Feb 17, 2009, 4:25:51 PM2/17/09
to
hari <ha...@discussions.microsoft.com> writes:

> Is there way to uninstall msis using upgrade code instead of product code?

If you have the upgrade code, you can get the product codes with
MsiEnumRelatedProducts or Installer.RelatedProducts. Then just
loop and uninstall them one at a time.

Alternatively, you could construct an MSI package that lists
the upgrade code in the Upgrade table and then runs the
FindRelatedProducts and RemoveExistingProducts actions. This
package would not have to register itself with Windows Installer.
A one-off package like this mostly seems like unnecessary
complexity, but it might be a way to uninstall multiple packages
in one transaction even before Windows Installer 4.5.

Phil Wilson

unread,
Feb 17, 2009, 4:28:39 PM2/17/09
to
If you're willing to write some code, yes, and use MsiEnumRelatedProducts on
the UpgradeCode to get the installed ProductCode(s).
--
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972


"hari" <ha...@discussions.microsoft.com> wrote in message
news:75647CE5-29B6-4B56...@microsoft.com...

rajeshr

unread,
Mar 19, 2010, 12:57:32 AM3/19/10
to
Hi,

I want to find upgrade codes for an application might be filezilla etc
Is there a way for it in registry

Thanks,
Rajesh

Phil Wilson wrote:

If you're willing to write some code, yes, and use MsiEnumRelatedProducts on

17-Feb-09

If you're willing to write some code, yes, and use MsiEnumRelatedProducts on
the UpgradeCode to get the installed ProductCode(s).
--
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972


"hari" <ha...@discussions.microsoft.com> wrote in message
news:75647CE5-29B6-4B56...@microsoft.com...

Previous Posts In This Thread:

On Tuesday, February 17, 2009 3:08 PM
har wrote:

Uninstall using upgrade code


Is there way to uninstall msis using upgrade code instead of product code?

Hari

On Tuesday, February 17, 2009 4:25 PM
Kalle Olavi Niemitalo wrote:

Re: Uninstall using upgrade code
hari <ha...@discussions.microsoft.com> writes:


If you have the upgrade code, you can get the product codes with
MsiEnumRelatedProducts or Installer.RelatedProducts. Then just
loop and uninstall them one at a time.

Alternatively, you could construct an MSI package that lists
the upgrade code in the Upgrade table and then runs the
FindRelatedProducts and RemoveExistingProducts actions. This
package would not have to register itself with Windows Installer.
A one-off package like this mostly seems like unnecessary
complexity, but it might be a way to uninstall multiple packages
in one transaction even before Windows Installer 4.5.

On Tuesday, February 17, 2009 4:28 PM
Phil Wilson wrote:

If you're willing to write some code, yes, and use MsiEnumRelatedProducts on
If you're willing to write some code, yes, and use MsiEnumRelatedProducts on
the UpgradeCode to get the installed ProductCode(s).
--
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972


"hari" <ha...@discussions.microsoft.com> wrote in message
news:75647CE5-29B6-4B56...@microsoft.com...


Submitted via EggHeadCafe - Software Developer Portal of Choice
Measuring SharePoint Page Rendering
http://www.eggheadcafe.com/tutorials/aspnet/c0a9ac9e-53cd-442f-8981-9d5f236c2be5/measuring-sharepoint-page.aspx

Wilson, Phil

unread,
Mar 19, 2010, 6:48:54 PM3/19/10
to
For any installed MSI-based product, there is a cached MSI file in
Windows\installer. Open with Orca to see UpgradeCode in the Property table.
If you float the mouse over the .msi file it may tell you the product name.
--
Phil Wilson
The Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972


"Rajesh R" wrote in message news:20103190573...@gmail.com...

0 new messages