AI 6.9.1 ent, Custom Actions queries - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

chemoinformatics
Posts: 11
Joined: Wed Mar 09, 2011 4:03 am

AI 6.9.1 ent, Custom Actions queries

Hi,

I am using Advanced Installer 6.9.1 enterprise version.

My installer requirements are

1. Install my project files
2. Install PostgreSQL (running setup file as Custom Action)
3. Install Tomcat (by copying tomcat files)
4. Run "initialize_pgdatabase.bat" (configured as Custom Action)
5. Run "initialize_tomcatwebapp.bat" (configured as Custom Action)
6. Delete a temporary directory "tempdir" before finish
7. End of my installation process.

Here are my queries and issues.

Q1. My batch files that are execute as predefined custom action should not popup windows. It should be hidden.

Q2. When my batch files are executed, the installed gui status label should display "Installing PostgreSQL 8.4", "Installing Tomcat 6" and so on as the custom actions are executed.

Q3. Now all my custom action are executed at the end of the installation. I want these to be execute after installer has copied my project files. Note: I have placed all my custom action in Target Computer->InstallUISequence->ExecuteAction.

Q4. How to delete a directory "tempdir" which was created by the installer, before the installer comes to finish screen?

Q5. During my uninstall, i want to execute 3 more batch files before the installer starts removing the files.

Thanks

RJ, Chemoinformatics
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: AI 6.9.1 ent, Custom Actions queries

Hi and welcome to the Advanced Installer Forums,
My batch files that are execute as predefined custom action should not popup windows. It should be hidden.
Here is an article from our guide that can help you with this.
When my batch files are executed, the installed gui status label should display "Installing PostgreSQL 8.4", "Installing Tomcat 6" and so on as the custom actions are executed.
Here is a thread that deals with the issue.
Now all my custom action are executed at the end of the installation. I want these to be execute after installer has copied my project files. Note: I have placed all my custom action in Target Computer->InstallUISequence->ExecuteAction.
The Windows Installer process finishes copying the files after the Install standard action in the InstallExecuteSequence so you can schedule your custom at that point.
How to delete a directory "tempdir" which was created by the installer, before the installer comes to finish screen?
You can add a "File Removal" operation for your folder from the Files and Folders Page( context menu -> "New File Operation" ). For more information please follow this user guide article.
During my uninstall, i want to execute 3 more batch files before the installer starts removing the files.
To achieve this you can follow this tutorial and schedule your custom actions before the Uninstall standard action in the InstallExecuteSequence. You should also add the following execution condition to these custom actions:

Code: Select all

REMOVE = "ALL"
As an extra related information, if you want your custom actions to execute only during the install process, you should set their execution condition to:

Code: Select all

NOT Installed
Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chemoinformatics
Posts: 11
Joined: Wed Mar 09, 2011 4:03 am

Re: AI 6.9.1 ent, Custom Actions queries

Hi,

I have my postgresql installer as custom action under InstallExecuteSequence->Install->Predefined Custom Action(Launch File).

When the installer tries to run this custom action, it executes the postgresql_8.4.1_1_windows.exe installer in slient mode with all necessary parameters. But this action fails because the postgresql installer throws error saying another installer(ie., my project installer) is in the process of installing software, try after that installer finishes it's installation.

How to overcome this problem or is there is any workaround?

Thanks

RJ, Chemoinformatics
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: AI 6.9.1 ent, Custom Actions queries

Hello,

Unfortunately, if your .EXE triggers another windows installer process you cannot schedule the custom after the Install standard action. Two windows installer processes cannot run at the same time.
The solution would be to add postgresql_8.4.1_1_windows.exe as a prerequisite or schedule the custom action after InstallFinalize with an "Asynchronous execution, do not wait for return" execution property.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”