Kamp
Posts: 23
Joined: Wed Mar 07, 2018 8:43 am

Re: Custom action when patch is uninstall

Sat May 12, 2018 10:29 pm

Daniel wrote:The only workaround I can think of right now will be for your to create from scratch another custom action (scheduled to run on patch uninstall) which will perform the registry search and set the installer property to the search result.

Hope this helps.
Hello, Daniel!

Thank you, did exactly so.

But there was another problem. Removing the patch fails (3.7.2604 -> 3.7.5), in the log file is an error number 2762. What am I doing wrong?
In the attachments are my projects.
Attachments
Patch_3.7.26 (beta4).aip
(3.29KiB)Downloaded 280 times
AvtoUragan ver 3.7.26.4.aip
(351.03KiB)Downloaded 278 times
AvtoUragan ver 3.7.25.aip
(344.93KiB)Downloaded 292 times

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: Custom action when patch is uninstall

Tue May 15, 2018 4:30 pm

Hello,

I've tested the scenario, but I cannot replicate the behavior.

If you could isolate the behavior in a small buildable sample (.AIPs + their referenced files) which we can build and test on our side this will be great.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Kamp
Posts: 23
Joined: Wed Mar 07, 2018 8:43 am

Re: Custom action when patch is uninstall

Mon May 21, 2018 10:49 am

Daniel wrote:I've tested the scenario, but I cannot replicate the behavior.

If you could isolate the behavior in a small buildable sample (.AIPs + their referenced files) which we can build and test on our side this will be great.
https://drive.google.com/open?id=1I8H_J ... 8i8irw6BlI

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: Custom action when patch is uninstall

Wed May 23, 2018 2:23 pm

Hello,

Thank you for your sent sample. I've further tested this and replicated the error.

It seems the error is triggered by the fact that one of your custom action to be executed on patch uninstall (OTT_TR_Ini_Rollback) has the same execute sequence as the standard "InstallFinalize" action. The sequence is generated by Advanced Installer and this seems to be a limitation of our application currently. Thank you for bringing this to our attention. We will try to fix this in the future.

In the meantime you should proceed like this:

1. open the old version of your setup project and go to "Table Editor" page
2. select the "InstallExecuteSequence" table and locate the "InstallFinalize" action; set its "Sequence" field to an increased value:

Code: Select all

6524
3. open the new version of your setup project and go to "Table Editor" page
4. select the "InstallExecuteSequence" table and locate the "InstallFinalize" action; set its "Sequence" field to an increased value:

Code: Select all

6524
5. rebuild your setup projects and the patch project

Hope this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Kamp
Posts: 23
Joined: Wed Mar 07, 2018 8:43 am

Re: Custom action when patch is uninstall

Wed May 23, 2018 3:37 pm

Daniel wrote:2. select the "InstallExecuteSequence" table and locate the "InstallFinalize" action; set its "Sequence" field to an increased value:

Code: Select all

6524
Is it necessary to do this in the old project? Exe file of the old project has long been sent to customers and installed.

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: Custom action when patch is uninstall

Tue May 29, 2018 4:55 pm

Hello,

If you already released the old setup project, then as another workaround you can change the action sequence of your "OTT_TR_Ini_Rollback" action to be lower than the one of the "InstallFinalize" action in your old setup project.

Here are the steps to proceed with:

1. open the new version of your setup project and go to "Table Editor" page
2. select the "InstallExecuteSequence" table and locate the "OTT_TR_Ini_Rollback" action; set its "Sequence" field to a decreased value:

Code: Select all

6510
3. locate the "AI_DATA_SETTER_10" action; set its "Sequence" field to a decreased value:

Code: Select all

6509
4. rebuild your new setup project and your patch project

Hope this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: Custom action when patch is uninstall

Mon Sep 09, 2019 9:14 am

Hello,

"Run when patch is uninstalled" flag is not set for sibling CustomActionData action issue was fixed in version 16.3 of Advanced Installer released on September 4th, 2019.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”