Service fails to start using .exe bootstrapper - Advanced Installer Community
adamdc78
Posts: 76
Joined: Wed Mar 19, 2014 7:42 pm

Service fails to start using .exe bootstrapper

The installation runs fine by using Advanced Installer's UI to Run the installer, however once built as a .exe, the service will not start.

Logs from the failed .exe run (product specific information has been obscured):

Code: Select all

MSI (s) (58:E8) [16:09:30:810]: Executing op: ActionStart(Name=StartServices,Description=Starting services,Template=Service: [1])
MSI (s) (58:E8) [16:09:30:812]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000)
MSI (s) (58:E8) [16:09:30:813]: Executing op: ServiceControl(,Name=MyServiceName,Action=1,Wait=1,)
MSI (s) (58:E0) [16:10:15:537]: I/O on thread 1552 could not be cancelled. Error: 1168
MSI (s) (58:E0) [16:10:15:537]: I/O on thread 2792 could not be cancelled. Error: 1168
MSI (s) (58:E0) [16:10:15:537]: I/O on thread 3684 could not be cancelled. Error: 1168
MSI (s) (58:E0) [16:10:15:537]: I/O on thread 2756 could not be cancelled. Error: 1168
MSI (s) (58:E0) [16:10:15:537]: I/O on thread 1704 could not be cancelled. Error: 1168
MSI (s) (58:E0) [16:10:15:537]: I/O on thread 2708 could not be cancelled. Error: 1168
MSI (s) (58:E0) [16:10:15:537]: I/O on thread 3560 could not be cancelled. Error: 1168
MSI (s) (58:E0) [16:10:15:537]: I/O on thread 4448 could not be cancelled. Error: 1168
MSI (s) (58:E0) [16:10:15:537]: I/O on thread 2660 could not be cancelled. Error: 1168
MSI (s) (58:E8) [16:10:15:538]: Product: My Product Name -- Error 1920. Service 'My Service Display Name' (MyServiceName) failed to start.  Verify that you have sufficient privileges to start system services.

Action ended 16:10:16: InstallExecute. Return value 3.
This is an upgrade of an existing installation, if that's relevant. When prompted to retry or abort, when I manually start the service it tells me that the service started and then stopped immediately and there is 0 useful information in the systems' event logs (tried two machines with the .exe).

My first hunch was that the previously installed service wasn't stopping correctly, but removing the service and rebooting didn't change the outcome.

The project is configured to install per-machine only and I'm logged in as an account with admin privileges (although not the local Administrator built-in account). This is the first time this issue has presented, but with nothing useful in any logs to help locate the source of the error, I'm hoping someone can point me in the right direction.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Service fails to start using .exe bootstrapper

Hello,

I'm not sure why you encountered this behavior.
Can you please let me know if your service is working as expected when it is installed outside the installation package (e.g. install from command line, uninstall from command line, start, stop etc )?

You can also take a look on the service 'service name' failed to start. forum thread which debates a similar subject.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
adamdc78
Posts: 76
Joined: Wed Mar 19, 2014 7:42 pm

Re: Service fails to start using .exe bootstrapper

I can install and uninstall just fine using Installutil.exe. I can start and stop using sc.

The article linked doesn't really address my situation as the service works fine under other conditions. The first 108 versions are fine, the last 4 versions have the same issue. 108 and 109 were built 74 minutes apart with very minor changes to the code base and the application works as expected when installed directly from Advanced Installer.

Thank you,

- Adam
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Service fails to start using .exe bootstrapper

Hi Adam,

If you enable the Run as admin option from the Install Parameters page, does it makes any change?

If that didn't help either, can you please send us an .AIP(project file) of an old installation package, an AIP of the upgraded project and a verbose log of the upgrade installation process to support at advancedinstaller dot com so we can investigate them? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”