Problem with Execute Stage Condition - Advanced Installer Community
nirs
Posts: 42
Joined: Wed Aug 13, 2014 2:46 pm

Problem with Execute Stage Condition

Hi,

I am installing a service as part of my installation.
For debugging mode I created Message Box before and after the service is installed.

I use the custom action 'Detect Service'.
When I print the AI_SERVICE_STATE value at the message box it is empty.
So I use the execute condition to debug it and I find out that wither when the service is installer or not exists, the execute stage condition:
NOT AI_SERVICE_STATE
is always true.

Any idea?

Thanks
nirs
Posts: 42
Joined: Wed Aug 13, 2014 2:46 pm

Re: Problem with Execute Stage Condition

The target machine is windows server 2003
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problem with Execute Stage Condition

Hi Nir,

Please keep in mind that a deferred custom action cannot access Windows Installer properties. You can take a look on the can't access property from vbscript which debates a similar problem.

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

Return to “Common Problems”