Click here to Skip to main content
15,887,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi every body,

Does anybody know how can I run installutil.exe?

I'm trying to run it from cmd and it fails.

'installutin does not recognized as an intenal or external command'
or something like this.

Hope someone can help me with that issue.

Thanks.
Posted
Updated 14-Apr-16 20:07pm
v2
Comments
Dalek Dave 9-Sep-10 3:57am    
Minor Edit for Readability.

It's located in C:\Windows\Microsoft.NET\Framework\v2.0.50727 (at least on my machine).
Information about the progam : http://msdn.microsoft.com/en-us/library/50614e95(VS.71).aspx[^]

Cheers
 
Share this answer
 
'installutin does not recognized as an intenal or external command'

You need to navigate to the path where installutil.exe is present.
By default it is:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727


considering, C drive is your system drive.

So type cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 before you use the command.

If you still have issues, Google for "installutil.exe"

Hope it helps! :thumbsup:
 
Share this answer
 
v2
This is a tiny bit off-topic but I've stopped using InstallUtil to install my services. It's is really easy to just add it to the service itself. Add a reference to System.Configuration.Install (not available in the Client Profile editions if I remember right) and then update your Main()-function in Program.cs like this.

static void Main(string[] args)
{
if (Environment.UserInteractive)
{
string parameter = string.Concat(args);
switch (parameter)
{
case "--install":
ManagedInstallerClass.InstallHelper(new[] { Assembly.GetExecutingAssembly().Location });
break;
case "--uninstall":
ManagedInstallerClass.InstallHelper(new[] { "/u", Assembly.GetExecutingAssembly().Location });
break;
}
}
else
{
ServiceBase[] servicesToRun = new ServiceBase[]
{
new Service1()
};
ServiceBase.Run(servicesToRun);
}
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900