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!

litu
Posts: 71
Joined: Fri Mar 22, 2013 2:57 pm

Detecting a service

Hi,

I've read How do I detect a service? and I have a question.

How this predefined custom action will work if the services is in an intermidiate state? Starting, stopping...


Thanks,
Arnau.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detecting a service

Hello Arnau,

If the service state is in start pending, then you should get the AI_SERVICE_STATE property with the Started value. Did you encountered another behavior?

Please let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
litu
Posts: 71
Joined: Fri Mar 22, 2013 2:57 pm

Re: Detecting a service

Hi,

No, i didn't try anything yet. The problem is: if the service is correctly started, it will stop correctly. But, if the service isn't started properly, or it's in "pending start", or "starting", it will not stop easily and it may be necessary to kill the task.

Thanks anyway,
Arnau.

Return to “Building Installers”