How To Ignore Service Failed To Start Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Debugging “service failed to start” Windows Installer error up vote 1 down vote favorite I have a simple msi written in WiX that installs a native NT service. After I have made some changes in the msi it fails at StartServices standard action with the error "service failed to start, verify you have sufficient privileges". If I press Ignore and start the service manually then it start successfully. The problem is definitely not in insufficient privileges. How can I diagnose/debug such issues? The verbose logs of the Windows Installer seem to not contain any helpful information. windows debugging service wix windows-installer share|improve this question asked Jun 2 '13 at 9:31 user835103 435728 add a comment| 2 Answers 2 active oldest votes up vote 5 down vote accepted The installer won't have any useful information because the error is only surfaced by the installer. Here's how I approach this. Comment out the ServiceControl element so the installer doesn't try to start the service. Run installer and all it to finish. Manually start the service. If the service starts, this indicates some type of race condition. One common scenario is the service has a dependency on a file being installed to the GAC or WinSXS. The installer puts these files there using the PublishAssemblies standard action. However since the GAC and WinSXS APIs don't support transational installation, PublishAssemblies waits until the commit phase to perform the work. This is after the installer attempts to start the service. Another common scenario would be if you had some custom action that was installing or configuring something that the service needed and you were doing it to late in the installation. If the service still won't start, this generally rules out race conditions. You have to profile the service itself. Use tools such a
can not post a blank message. Please type your message and try again. omegaprime56 Level 1 (4 points) iTunes Q: Apple Mobile Device Service fails to start Windows error 2 I have been successfully using iTunes 12.3.3 until I purchased a new iPhone 6s. I started getting errors when attaching my iPhone to iTunes. I followed the instruction for uninstalling iTunes per the support page. During the re-installation everything seems to progress successfully until [Service 'Apple Mobile Service' (Apple Mobile Device Service) failed to start. Verify that you have sufficient privileges to start services.] comes up. I have performed the following in attempts to fix http://stackoverflow.com/questions/16881493/debugging-service-failed-to-start-windows-installer-error the issues.1. Totally removed all traces of prior iTunes installation from computer. Computer is running Windows 7 SP1 with no issues except this new one.2. Used WinRAR to open iTunes6464.exe to .msi files.3. Used the AppleMobileDeviceSupport6464.msi to remove the Apple Mobile Device Support. It was successful. 4. Attempted to manually reload AppleMobileDeviceSupport6464.msi installation was going well until it attempted to start the service and then I continually get the https://discussions.apple.com/thread/7520258?start=0&tstart=0 same error message. If I ignore the error is seems to complete but when I attempt to start iTunes itself I get this error [Application support was not found. Application Support is required to run iTunes. Please uninstall iTunes and reinstall. Windows error 2]5. I uninstalled iTunes again and attempted to reinstall using the .msi files. Everything said it installed fine to include AppleApplicationSupport.msi until AppleMobileDeviceSupport6464.msi and again once it attempted to start the services I received the same error msg. Again if I ignore the error is seems to complete but when I attempt to start iTunes itself I get this error [Application support was not found. Application Support is required to run iTunes. Please uninstall iTunes and reinstall. Windows error 2]Needless to say I am getting very frustrated with this installation. I have a complete offsite backup of all my iTunes media as of the last 24 hours. So that is not an issue.I will appreciate all assistance in trying to get this fixed so I can use my iPhone which is now locked in an attempt to sync to iTunes. iTunes 12.3.3, Windows 7 Posted on Apr 4, 2016 3:01 AM I have this question too Close Q: Apple Mobil
jimmyliu11-21-2005, 10:56 AMHi, there, I have a basic msi project created a service and started it up in install time. But I find my installer can run sucessfully on Win2000 and start service but fail on WinXP and 2003, the failure reason is no privilege. Here https://community.flexerasoftware.com/archive/index.php?t-154140.html I have two problems: 1. When service startup failure, only option is rollback, there is no "Ignore" button there, but in my case, user should be able to ignore this error and continue, after install, manually start it. How to set this option for start service? 2. Why service startup fail on XP and 2003? Any special steps I need to do, the install user is local admin, and my service is running as "LocalSystem", I can manully start it up how to if I do not startup services during install. Any help would be appreciated. Thanks. PhilWilson11-21-2005, 05:10 PM1. If your ServiceControl action that starts the Service is set to "wait for it to complete", it will be treated as critical. Try the "wait for the SCM" option, or whatever it's called. 2. Sounds like you Service might have a dependency that isn't on the system at StartServices time, peraps a Dll, a GAC dependency maybe. jimmyliu11-21-2005, 06:28 PMThanks, Phil, after I changed to how to ignore "Wait for SCM", it works for my first problem. So at least there is an option for user to ignore start service failure. For my second issue, is it related to user account setting, do I need "Logon as a service" to start this service even though service account is "LocalSystem", I think only difference is in installer, this service is started as "LocalSystem" Windows installer account, but if I manually start it, I use my account. I don't see any other differences. Jimmy PhilWilson11-21-2005, 06:47 PMService startup failures in MSI always say something about having the right privileges even when it's nothing to do with that. If you take a log, are you seeing a 1920 or a 1921 error with some text about security? If it's the LocalSystem account you should be good to go as far as starting up the Service is concerned. You might need some kind of debugging in your Service. Do you know if the Service starts at all? If it starts up but has a missing dependency you might not get far enough to catch any diagnostics. If it's silently crashing you've just got something wrong with the Service on XP/2003. Does it start if you don't configure it with your account? If your Service tries to access the network it might be crashing with security errors, but running with your account might well work (LocalSystem usually can't access network resources). Hamilton-Scott11-22-2005, 03:45 AMEdit the login prope