Henrique Mesquita
Posts: 20
Joined: Thu Apr 27, 2023 12:22 pm

Custom Actions Not Executing in Silent Installation Mode

Hello,

I have a "suite installation" with several applications where I use custom actions that are executed before the installation of the child applications, as follows:

Image

When I perform the installation via the interface, everything works fine. However, when I run the installation silently (via command line), the custom action is not executed.

Is this behavior normal? If so, is there a way to work around it?
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Custom Actions Not Executing in Silent Installation Mode

Hello Henrique,

Are you able to reproduce this issue using our latest version 22.0? We had some issues in the past, but after the prerequisite redesign this should work as expected.

If not, can you please send us the .AIP (setup project) file and an installation log by email to support at advancedinstaller dot com so we can further test and investigate this?

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Henrique Mesquita
Posts: 20
Joined: Thu Apr 27, 2023 12:22 pm

Re: Custom Actions Not Executing in Silent Installation Mode

Hello, Liviu

We are using version 20.7.1. We cannot upgrade to version 22.0 due to this incident:

viewtopic.php?p=134532#p134532

Where properties are not passed to "child" applications if the installation is silent.

Given these points, is it still necessary to provide the requested evidence?

Best regards,
Henrique Mesquita
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Custom Actions Not Executing in Silent Installation Mode

Hello Henrique,

Thank you for the details.

I checked in our bug tracking tool and it looks like the other issue has been fixed in v22.0.

Can you try building your setup with our latest version and see if both problems are solved?

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Henrique Mesquita
Posts: 20
Joined: Thu Apr 27, 2023 12:22 pm

Re: Custom Actions Not Executing in Silent Installation Mode

Hello,

Thank you for your response.

For the incident related to this topic, we managed to achieve what we needed in a different way. I appreciate your support.

Regarding the other incident (viewtopic.php?p=134532#p134532), we tested using version 22.0, but the issue persists. In command-line installations, the properties are not being passed to the "child" applications.

We can continue with the other topic if necessary.

Thank you in advance.
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Custom Actions Not Executing in Silent Installation Mode

Hello Henrique,

This is quite strange.

Can you please send us the updated .AIP (setup project) file and an installation log by email to support at advancedinstaller dot com?

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Henrique Mesquita
Posts: 20
Joined: Thu Apr 27, 2023 12:22 pm

Re: Custom Actions Not Executing in Silent Installation Mode

Good morning,

I apologize for the delay in responding. We created a new testing project using version 22.0 of Advanced Installer, and the incident mentioned in the topic viewtopic.php?p=134532#p134532 is still occurring as previously noted.

In the testing project, a new main app was created with a prerequisite. When updating the application via the interface, the incident does not occur, and both applications are updated successfully. However, if the update is performed via command line, the property information is not passed to the prerequisite, resulting in the prerequisite not being updated—only the main application is updated.

In parallel with this response, I am sending an email with the evidence as instructed, with the title from the previous topic, and I will mention this as well.

Thank you in advance.
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Custom Actions Not Executing in Silent Installation Mode

Hi Henrique,

Please note that the "feature-based" prerequisite (during main package) behavior has changed starting with Advanced Installer 20.9 as follows:
- if the main package is MSI and it is installed silently, the "feature-based" prerequisite is installed after the main package
- if the main package is EXE and it is installed silently, the "feature-based" prerequisite is installed before the main package because it is installed by the Bootstrapper

Hence, in order for the "APPDIR" property to be passed from the EXE main package to the prerequisite during a silent installation, you need to put that prerequisite to be installed "after the main package", otherwise the "APPDIR" property will not be available when the "feature-based" prerequisite is installed.

Can you try to move the prerequisite "after the main package" and see if it is installed correctly?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Henrique Mesquita
Posts: 20
Joined: Thu Apr 27, 2023 12:22 pm

Re: Custom Actions Not Executing in Silent Installation Mode

Hi Eusebiu,

Thank you for the explanations regarding the installation flow; I understand how it works now. However, unfortunately, the incident continues to occur even after configuring the prerequisite to run after the installation of the main package.

Image

Upon reviewing the installation logs, the incident is caused by the same reason: the prerequisite is not receiving the value of the APPDIR property, and consequently, it is not being updated.

I have emailed the update logs and the .aip file from the new tests after the requested changes.

This thread we are discussing pertains to the incident of custom actions not being executed before the prerequisites, which was mentioned as being fixed in version 22.0. We have not tested this yet, as we need to ensure that the silent update via command line works correctly before. To keep the topics coherent with their titles, we can continue support in the other thread if you prefer.

If you agree, please feel free to reply to this message directly in the other thread, and I’ll leave the link here for anyone experiencing the same incident to easily locate it: viewtopic.php?p=134532#p134532

We can return to this once we conduct the test for the custom action before the installation of the prerequisite.

Thank you in advance for your assistance.
Best regards,
Henrique Mesquita
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Custom Actions Not Executing in Silent Installation Mode

Hello Henrique,

I've replied to the "FAILURE TO UPDATE VIA COMMAND LINE AFTER VERSION 20.7.1" thread with a solution for your problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”