MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

custom action taking a long time

Hi,

I put in a couple of custom actions in my installer and now my installer takes over a minute to install.
(it used to take 15 seconds)

NOTE: The service MAY or MAY NOT exist on the system when the installer is run

Here are the custom actions:
Custom_Action_1.PNG
Custom_Action_1.PNG (21.03 KiB) Viewed 2902 times
Custom_Action_2.PNG
Custom_Action_2.PNG (21.02 KiB) Viewed 2902 times
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: custom action taking a long time

Hello Mike,

I assume this happens because the SC.exe tool has a retry timeout when the service is not found. In this case you can try to use our "Detect service" predefined custom action (scheduled before your actual custom actions in the sequence) and use the following condition for your stop and delete service actions:

Code: Select all

AI_SERVICE_STATE <> "Not Found"
Hope this helps.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: custom action taking a long time

Thanks... that seemed to speed things up a bit...
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: custom action taking a long time

You are always welcome Mike.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”