Execution sequence issue - Advanced Installer Community
Novak
Posts: 3
Joined: Thu Feb 18, 2016 5:05 pm

Execution sequence issue

Hello,

I have problem related to execution sequence in Advance installer.

1. For first problem I did found workaround, but for mu understanding this is wrong way. I will explain.
1.1 I have creation of SQL database implemented in "SQL Database->CustomConnection->Execution of SQL Script.
1.2 I have custom action that executes process from temp folder.
This process have configuration file that have some value that needs to be replace, among other it has connection string properties.

If I put this action before finish stage it fails, because 1.1 (creation of db did no happen).
If I put this action after finish stage it works.

2. I have some custom installation properties (under install parameters) that have default values, for example MY_PROP = "somedefaultvalue"
I have some files inside application folder structure for which I perform "text file update". Here I replace some values with the values of properties. For example: I replace occurance of <MY_PROP> with value of MY_PROP
I custom action that need to set the value of MY_PROP.
Again the same problem:
If I put this action before finish stage it fails, because it seems that those properties are not defined before "finish" stage. But if I put it after "finish" stage, it executes but updates the property too late, bacause "text file update" seems to be already done.

Can you please help with this issues?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Execution sequence issue

Hello and welcome to Advanced Installer forums,

When adding a custom action into your package you can define the exact moment of execution for it. The custom action can be scheduled after any desired standard action from both Custom Actions and Table Editor pages.
For details, please take a look on the Setting the custom action sequence video which may be useful to you.

Note that the files are copied on the target machine on the deferred phase, when the system is being modified.

Please let me know if you need any help to implement your installation scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”