Installer for add EXE into Windows Service - Advanced Installer Community
sergio.mancastroppa
Posts: 5
Joined: Wed Jun 21, 2017 8:36 am

Installer for add EXE into Windows Service

Hi,
i have the trial 30 days product and i try to make an example of installer for add a custom EXE into the windows service.

The installer check correctly Prerequisite, and add correctly the service into windows service with given name and link my test EXE file corretly.

Type start: Automatic;

But when it start give an ERROR 1053

Error 1053: "The service did not respond in a timely fashion" when attempting to start, stop or pause a service

I do not understand of can i modify my installer for run correctly.

Hope someone help me.
Attachments
Test_Install_PKNET2_FIncantieri_Ambiente_Test.aip
(37.4 KiB) Downloaded 448 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installer for add EXE into Windows Service

Hello and welcome to our forum,

Please note that you could use the control operations from "Services page" to start the service. In this case you don't need to use Start Service/ Stop Service custom actions. If you want to start the service at install you should check "Start" option from "On install" action on Service control properties.

By the way, can you please tell us if you can install and start the service outside the installer, manually? For testing purposes you can try to use the Windows SC.exe built-in tool.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sergio.mancastroppa
Posts: 5
Joined: Wed Jun 21, 2017 8:36 am

Re: Installer for add EXE into Windows Service

hi,
i check your suggest, i try put Service start when install finish ACTION --> ON INSTALL --> START i rebuild all.

And change LUNCH CONDITIONS --> RUN ONLY IF USER HAS ADMINISTRATOR PRIVILEGES.

The user that lunch installer is a local ADMINISTRATOR.

When installer start the service I have another error:

"Verify that you have sufficient privileges to start system services”"

the insaller can not finish and not see service into Windows Service list panel.

Any suggest?
Attachments
Test_Install_PKNET2_FIncantieri_Ambiente_Test.aip
(37.4 KiB) Downloaded 606 times
sergio.mancastroppa
Posts: 5
Joined: Wed Jun 21, 2017 8:36 am

Re: Installer for add EXE into Windows Service

attach log installer error.
Attachments
MSIc0a6c.LOG
(565.93 KiB) Downloaded 410 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installer for add EXE into Windows Service

Hello,

Can you please tell us if you can manually install and start your Windows service on the related machine and confirm that it works? For testing purposes you can try to use the Windows SC.exe built-in tool.

Also, can you please tell me if there is any useful information in the Windows Event Viewer about this error? Maybe there are some missing dependencies. You can also try to start manually the service after it is installed.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sergio.mancastroppa
Posts: 5
Joined: Wed Jun 21, 2017 8:36 am

Re: Installer for add EXE into Windows Service

hi,
when i use the installer without start process on install ACTION --> ON INSTALL --> START with blank option the service is installed correctly but can start, first my post.

Any suggest?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installer for add EXE into Windows Service

Hello,

Are you able to start the process manually after the installation?

Also, does it work as expected (install service, start service) when you install it from command line, outside the installer?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sergio.mancastroppa
Posts: 5
Joined: Wed Jun 21, 2017 8:36 am

Re: Installer for add EXE into Windows Service

Are you able to start the process manually after the installation?

when i try i have the error: Error 1053: "The service did not respond in a timely fashion" when attempting to start, stop or pause a service

Also, does it work as expected (install service, start service) when you install it from command line, outside the installer?

i need try it, but i do not understand why the installer done work fine and create my entry in windows process list but when it start have the Error 1053.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installer for add EXE into Windows Service

Hello Sergio,

This may happen if there is an error in StartService function implementation of your service application or if there are some missing dependencies of your service on current machine. This is why my colleague recommended you to try install and start manually the service outside the setup package. To make sure there is no outside problem involved. To manually test the service install and start operations you can use the SC.exe tool.

Let us know if this helped.

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

Return to “Common Problems”