.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Need Help Installutil.exe

Posted By:      Posted Date: August 27, 2010    Points: 0   Category :ASP.Net

 Hi to all ,

This is srinu,i developed one windows service application.i want to install this application,

so i prepared(by Publishing)one setupfile for my application and i install in to my system.

when i run that  my application it showing error like this

can not start service from the command line or a debugger.A Window service must first be installed(using installutil.exe) and then started with the server explorer,Windows services Adminstrative tool or the net start command

please help what is this installutil.exe,how can i run this installutil.exe and how can i overcome my problem.

thanks in advance



View Complete Post

More Related Resource Links

Solved: InstallUtil throws ArgumentOutOfRangeException when trying to install windows service.

This is just to help people troubleshoot the ArgumentOutOfRangeException problem when trying to install a windows service with installutil. It took me a good while to understand the reason of the install failure and I could not find anything about this on the web concerning this problem, so hopefully this will help others in the future so they don't waste as much time as I did.

If you get:

An exception occurred during the Install phase.
System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length


1) Go to the deisgner of your ProjectInstaller
2) Select the ServiceProcessInstaller
3) Go to the properties of the ServiceProcessInstaller.
4) If you see Account property set to user, change it to LocalSystem.
5) Rebuild your project.
6) Rerun installutil YourService.exe

Then the exception should be gone and the installation successful.


Sylvain Boissé Software Architect Noesis Innovation www.noesisinnovation.net

Win6432Node query, WindowsService InstallUtil.exe UAC requirement


Question 1) Should my application be concerned in anyway with using HKLM\SOFTWARE\<ProductVendor>\<ProductName> namespace in relation to Win32 and Win64 compatibility ?   This is my first application developed on Win64 (DotNET v2, C# full-managed).

I read up that Win6432Node subtree exists (and I can see it visible in RegEdit) but don't fullt understand what I am looking at in HKLM\SOFTWARE\Win6432Node\ tree.

My application does not make use of any significant %dirid% substitutions in the data it keeps there.

Would I be correct in asserting that for all intents and purposes this is a non-issue and only a concern if you have a single application which ships both 32bit and 64bit binaries that acess the same registry keys to share data ?


Question 2) I need the InstallUtil.exe (the manage code installer) to obtain UAC elevation for install/uninstall operations, but I'd like to ensure priviledges are locked down for normal running of the application.

My C# managed code WindowsService implementation implements a managed installer (System.Configuration.Install.Installer sub-class).  However I require the ManagedInstaller to do its thing after a UAC elevation (this is to allow it to test/check/set) required permissions so that identity

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend