Error Installing Windows Service Using Installutil.exe
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 Install Windows Service created in Visual Studio up vote 86 down vote favorite 24 When I create a new Windows Service in Visual Studio 2010, I get the message stating to use InstallUtil and net start to run the service. I have tried the following steps: Create new project File -> New -> Project -> Windows Service Project Name: TestService Build project as is (Service1 constructor, OnStart, OnStop) Open command prompt, run "C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe" TestService.exe Run net start TestService. Output of step 4 Running a transacted installation. Beginning the Install phase of the installation. See the contents of the log file for the C:\Users\myusername\Documents\Visual Studio 2010\Projects\TestService\TestService\obj\x86\Debug\TestService.exe assembly's progress. The file is located at C:\Users\myusername\Documents\Visual Studio 2010\Projects\Tes tService\TestService\obj\x86\Debug\TestService.InstallLog. Installing assembly 'C:\Users\myusername\Documents\Visual Studio 2010\Projects\TestS ervice\TestService\obj\x86\Debug\TestService.exe'. Affected parameters are: logtoconsole = logfile = C:\Users\myusername\Documents\Visual Studio 2010\Projects\TestService\T estService\obj\x86\Debug\TestService.InstallLog assemblypath = C:\Users\myusername\Documents\Visual Studio 2010\Projects\TestServ ice\TestService\obj\x86\Debug\TestService.
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 Windows Service http://stackoverflow.com/questions/7922105/install-windows-service-created-in-visual-studio Install Ends in Rollback up vote 26 down vote favorite 4 When I try to install a Windows service: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil I get, what looks to be, some success messages and some failure messages. Part way down: An exception occurred during the Install phase. System.ComponentModel.Win32Exception: The specified service has been marked for deletion At the end: The Rollback phase completed successfully. The transacted install has http://stackoverflow.com/questions/18499605/windows-service-install-ends-in-rollback completed. The installation failed, and the rollback has been performed. The service is given an entry in the Services applet, but it is marked as "Disabled". When I attempt to change it to another state, I get a "marked for deletion" error message. There are no messages in the Event Log. There is nothing useful in the log file created by installutil.exe (I believe it's written to the current working directory). I have no direction to go with this. What do I do? windows-services share|improve this question asked Aug 28 '13 at 22:53 Dustin Oprea 3,35422450 possible duplicate of How to force uninstallation of windows service –participant Jun 26 '15 at 10:34 add a comment| 5 Answers 5 active oldest votes up vote 55 down vote accepted It turns out that the install might, or probably will, fail if that service is highlighted in the Services applet. It's safest to just close the Services applet, install the service, and then re-open the Services applet. It's really stupid. Also, make sure to run the console as admin. share|improve this answer answered Aug 28 '13 at 22:53 Dustin Oprea 3,354
Studio 2015 products Visual Studio Team Services Visual Studio Code Visual Studio Dev Essentials Office Office Word/Excel/PowerPoint Microsoft Graph Outlook https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/b5321bf3-cbc2-4361-adf2-8f3a50002217/installutilexe-installing-windows-service?forum=windowsgeneraldevelopmentissues OneDrive/Sharepoint Skype Services Store Cortana Bing Application Insights Languages & platforms Xamarin ASP.NET C++ TypeScript .NET - VB, C#, F# Server Windows Server SQL Server BizTalk http://serverfault.com/questions/107561/error-installing-a-net-windows-service-with-installutil Server SharePoint Dynamics Programs & communities Students Startups Forums MSDN Subscriber downloads Sign in Search Microsoft Search Windows Dev Center Windows Dev Center Explore What’s new for error installing Windows 10 Intro to Universal Windows Platform Coding challenges Develop for accessibility Build for enterprise Windows Store opportunities Docs Windows apps Get started Design and UI Develop API reference Publish Monetize Promote Games Get started UI design Develop Publish Desktop Get started Design Develop API reference Test and deploy Compatibility Windows IoT Microsoft error installing windows Edge Windows Holographic Downloads Samples Support Why Windows Dashboard Explore What’s new for Windows 10 Intro to Universal Windows Platform Coding challenges Develop for accessibility Build for enterprise Windows Store opportunities Docs Windows apps Get started Design and UI Develop API reference Publish Monetize Promote Games Get started UI design Develop Publish Desktop Get started Design Develop API reference Test and deploy Compatibility Windows IoT Microsoft Edge Windows Holographic Downloads Samples Support Why Windows Dashboard Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Asked by: installutil.exe installing windows service Windows Desktop Development > General Windows Desktop Development Issues Question 1 Sign in to vote I'm tring to install a windows service and keep getting the following message, can anyone help with this? TIAC:\Program Files\My Application>installUtil.exe MyApp.exeMicrosoft (R) .NET Framework Installation utility Version 2.0.50727.42Copyright (c) Microsoft Corporation. All rights reserved. Running a transacted installation. Beginning the Install phase
Start 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 Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Error installing a .NET Windows service with InstallUtil up vote 4 down vote favorite 1 I keep getting the error below when every I try to use the InstallUtil to install my .NET service. I put "installutil myservice.exe" into command prompt and then get the error. Any idea of what the problem is? Do I need to add another parameter? An exception occurred during the Install phase. System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security. installation windows-service .net-3.5 share|improve this question edited Jan 29 '10 at 15:16 splattne 23.8k1686138 asked Jan 29 '10 at 15:01 norlando 14516 1 Does your service write to the Security log? –Christopher Feb 14 '11 at 20:10 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote accepted Run installutil as administrator may help. share|improve this answer answered Apr 14 '11 at 11:44 h--n 17613 add a comment| up vote 0 down vote Try to give the NetworkService (or whatever account running the serviec) read permission on the EventLog/Security key. share|improve this answer answered Jan 29 '10 at 15:25 splattne 23.8k1686138 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged installation windows-service .net-3.5 or ask your own question. asked 6 years ago viewed 6057 times active 5 years ago Blog Stack Overflow Podcast # 90 - Developer Stories, C