Predefined Custom Action Detect Service & Execution - Advanced Installer Community
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Predefined Custom Action Detect Service & Execution

The documentation for this predefined custom action says:

"Since it uses installer properties, this custom action can only run as Immediate."

But when I add it in sequence I can make the execution time as deferred, commit, etc.

I'm trying to execute as "commit" right now and not seeing the AI_SERVICE_STATE property in the installer log file.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Predefined Custom Action Detect Service & Execution

One thing I don't see in the installer log is the AI_SERVICE_STATE property no matter where I invoke it from.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Predefined Custom Action Detect Service & Execution

Hi,
The documentation for this predefined custom action says:

"Since it uses installer properties, this custom action can only run as Immediate."

But when I add it in sequence I can make the execution time as deferred, commit, etc.
This seems to be an Advanced Installer issue, the "deferred", "commit" and "rollback" option should not be allowed for this custom action. A fix will be available in a future version of Advanced Installer, thank you for bringing it to our attention.
One thing I don't see in the installer log is the AI_SERVICE_STATE property no matter where I invoke it from.
This property is displayed in the log if the custom action is executed as "Immediate", but during "commit", etc installation time, the installer does not use properties.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Predefined Custom Action Detect Service & Execution

Eusebiu,

FYI.

If you "add as custom action with sequence" then initially only "Immediately" can be checked. After you move the CA to say after "Add Resources" then all Execution Time options become available.

Scott
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Predefined Custom Action Detect Service & Execution

Hi Scott,

Indeed, this happens because the custom action is placed by default under the "Searches" action group, but at that point no custom action can run as "deferred" or "commit". A custom action can run as "deferred" or "commit" only between "Preparing" and "Finish Execution" action groups.

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

Return to “Common Problems”