Service failed to start, but user account is an admin - Advanced Installer Community
AndreG
Posts: 57
Joined: Tue Jun 10, 2014 11:41 am

Service failed to start, but user account is an admin

I just ran into an issue with one of the installers I maintain, where the service installed and configured during the setup process cannot be started. The setup throws a message stating "Service 'CountIT' (CountIT) failed to start. Verify that you have sufficient privileges to start system services.", yet this same problem comes up whether I run the setup normally or with "right-click > run as admin". This is happening on a Windows 7 Pro x64 machine, which (in my testing on other similar machines) has installed successfully every time, whether explicitly choosing to "run as admin" or not.

Checking the log output for the setup process, I see the following key lines (line numbers included for context):

Code: Select all

54:  MSI (c) (DC:5C) [09:09:48:902]: Product installation will be elevated because user is admin and product is being installed per-machine.

382: MSI (s) (A0:A0) [09:10:01:033]: MSI_LUA: Credential prompt not required, user is an admin

390: MSI (s) (A0:A0) [09:10:01:034]: Note: 1: 2262 2: AdminProperties 3: -2147287038 
391: MSI (s) (A0:A0) [09:10:01:034]: Machine policy value 'DisableMsi' is 0
392: MSI (s) (A0:A0) [09:10:01:034]: Machine policy value 'AlwaysInstallElevated' is 0
393: MSI (s) (A0:A0) [09:10:01:034]: User policy value 'AlwaysInstallElevated' is 0
394: MSI (s) (A0:A0) [09:10:01:034]: Product installation will be elevated because user is admin and product is being installed per-machine.
395: MSI (s) (A0:A0) [09:10:01:034]: Running product '{8BE56A00-0C91-4672-9F68-6DC230D627BF}' with elevated privileges: Product is assigned.
I did notice a different error after these lines, though I'm not sure whether or not it's related to this issue:

Code: Select all

747: MSI (s) (A0:A0) [09:10:03:265]: SECREPAIR: Failed to open the file:C:\Users\mleroux\AppData\Roaming\Nortech International\CountIT 3.131.3\install\disk1.cab for computing its hash. Error:2
748: MSI (s) (A0:A0) [09:10:03:265]: SECUREREPAIR: Failed to CreateContentHash of the file: disk1.cab: for computing its hash. Error: 2
A bit further along the process, the following error is thrown:

Code: Select all

1775: MSI (s) (A0:A0) [09:14:13:229]: Product: CountIT -- Error 1920. Service 'CountIT' (CountIT) failed to start.  Verify that you have sufficient privileges to start system services.
Yet, even after the failure message, I still see the following property values:

Code: Select all

2378: Property(S): AdminUser = 1
2379: Property(S): MsiTrueAdminUser = 1
I've attached the log file as generated by the "/L*V <outputfile>" runtime parameter. Please could someone take a look and see if there's any indication of the issue here? I've looked through it myself, but I'm not sure what exactly to look for, so I may be missing something seemingly obvious here.
Attachments
CountIT 3.131.3-RC1 Setup.log
(522.34 KiB) Downloaded 368 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Service failed to start, but user account is an admin

Hello,

There might be an issue with your service implementation. Can you please manually test (outside of the installation package) the service install and start operations and let us know if they succeed? If not, you should try to troubleshoot your service in order to find the problem.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AndreG
Posts: 57
Joined: Tue Jun 10, 2014 11:41 am

Re: Service failed to start, but user account is an admin

I'll try installing the service manually to see what happens, but I'm quite certain this will work just fine..

I can tell you it's not even getting to the point of launching our custom service - I know this because our service creates a few directories and has some logging output in the initialisation method, and none of these steps are happening. This is also unique to one computer, so far all other machines I've tested it on worked perfectly straight off the bat.
AndreG
Posts: 57
Joined: Tue Jun 10, 2014 11:41 am

Re: Service failed to start, but user account is an admin

Unfortunately I'm going to have to continue with this in the morning - the person who's computer this is happening on has already left for the day. I'll post back in this thread as soon as I have more information.
AndreG
Posts: 57
Joined: Tue Jun 10, 2014 11:41 am

Re: Service failed to start, but user account is an admin

I feel like a real tool now... I tend to overlook the obvious things a bit too quickly, but this morning I discovered the computer in question only had JRE8 installed and our application isn't compatible with that. After installing JRE7 as static, the setup completed successfully and the services started up without any problems.

Sorry about that and thanks for trying to help Daniel, it's always appreciated. :)
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Service failed to start, but user account is an admin

:) You're always welcome. I'm glad you got things sorted out.

Just let us know anytime we can assist you.

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

Return to “Common Problems”