rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

How to remove any patch for my product

How can I remove any patch which may be applied to my MSI, prior to applying a new patch? This should work as follows:

Scenario 1:
- MSI only installed
- MSP is executed and applies immediately


Scenario 2:
- MSI + MSP is installed
- a new MSP is executed, removes the old MSP and applies afterwards.


I use AI 11.0 Enterprise.

thanks in advance
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to remove any patch for my product

Hello,

In order to achieve what you want you should add all patches you need to be removed by your current patch in the current patch project -> "Patch Details" page -> "Patches to replace" section.

Also, if you want to automatically remove all patches applied to a product, then you can create your own custom action which will enumerate all installed patches and, then will uninstall them. Please take a look on the "MsiEnumPatches function" and "MSIPATCHREMOVE property" articles.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: How to remove any patch for my product

Thanks for your reply.
Is there a way to add items to "Patches to replace" using the commandline interface?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to remove any patch for my product

Unfortunately no. Here are all possible CLI Patch Project Options.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”