Go Back   PackageDeploy Application Packaging Forums > Package Development > Application Packaging > Platformsdk MSI

Reply
 
LinkBack Thread Tools Display Modes
Old 02-17-2009, 10:01 PM   #1 (permalink)
hari
Guest
 
Posts: n/a
Default Uninstall using upgrade code

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

Hari

  Reply With Quote
Old 02-17-2009, 10:01 PM   #2 (permalink)
Phil Wilson
Guest
 
Posts: n/a
Default Re: Uninstall using upgrade code

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" <hari@discussions.microsoft.com> wrote in message
news:75647CE5-29B6-4B56-BA3F-2FD197FD1B0A@microsoft.com...
> Is there way to uninstall msis using upgrade code instead of product code?
>
> Hari
>



  Reply With Quote
Old 03-19-2010, 05:01 AM   #3 (permalink)
Rajesh R
Guest
 
Posts: n/a
Default can we find upgrade codes

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" <hari@discussions.microsoft.com> wrote in message
news:75647CE5-29B6-4B56-BA3F-2FD197FD1B0A@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 <hari@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" <hari@discussions.microsoft.com> wrote in message
news:75647CE5-29B6-4B56-BA3F-2FD197FD1B0A@microsoft.com...


Submitted via EggHeadCafe - Software Developer Portal of Choice
Measuring SharePoint Page Rendering
http://www.eggheadcafe.com/tutorials...oint-page.aspx
  Reply With Quote
Old 03-19-2010, 11:01 PM   #4 (permalink)
Wilson, Phil
Guest
 
Posts: n/a
Default Re: can we find upgrade codes

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:201031905732rajesh8487@gmail.com...
> 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" <hari@discussions.microsoft.com> wrote in message
> news:75647CE5-29B6-4B56-BA3F-2FD197FD1B0A@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 <hari@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" <hari@discussions.microsoft.com> wrote in message
> news:75647CE5-29B6-4B56-BA3F-2FD197FD1B0A@microsoft.com...
>
>
> Submitted via EggHeadCafe - Software Developer Portal of Choice
> Measuring SharePoint Page Rendering
> http://www.eggheadcafe.com/tutorials...oint-page.aspx


  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:03 PM.


vBulletin, Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
2007 - 2012 PackageDeploy.com