Questions tagged [installutil]

The Installer tool is a command-line utility that allows you to install and uninstall server resources by executing the installer components in specified assemblies. This tool works in conjunction with classes in the System.Configuration.Install namespace.

This tool is automatically installed with Visual Studio and with the Windows SDK. To run the tool, you can use the Visual Studio Command Prompt or the Windows SDK Command Prompt (CMD Shell). These utilities enable you to run the tool easily, without navigating to the installation folder.

127 questions
1
vote
1 answer

catch exception on InstallUtil workflow

On a C# code, I'm having an error during the installation of a service using installUtil. I'm using my own installer. All the code on the installer and the parameters to installUtil are ok, because the installation works ok on 90% of cases. The…
user810917
  • 241
  • 4
  • 12
1
vote
1 answer

InvalidOperationException on Windows Service installation

I have a windows service app I developed some months ago, and which ran flawlessly so far on a distant Windows Server 2012. But after a minor update, I had to reinstall it on the server and now, every time I try to run InstallUtil on this server, I…
1
vote
4 answers

Install/Uninstall a Windows Service in a build script with NAnt

Does NAnt have the ability to install or uninstall a windows service, using the InstallUtil utility or whatever else?
Brian Mains
  • 50,520
  • 35
  • 148
  • 257
1
vote
1 answer

Logs not going to CustomEventLog created in a WindowsService

I have a created a windows service and i am installing it using installutil. In the project installer i am creating a custom event log. But when my service starts my all logs are going to the "Application" instead of my cuustom log. Below is the…
meriaz
  • 65
  • 1
  • 11
1
vote
1 answer

Passing parameters to Windows Service during installation

I am creating a windows service which is suppose to look up data in a specific table and then process the record based the status. I want to pass the DB credentials while I install the service using installutill as parameters and save them inside…
Hitin
  • 442
  • 7
  • 21
1
vote
3 answers

Is there an official GUI way of installing and removing .Net services on Windows Server 2008?

Please read the whole question; I personally think that this is programming-related; if you think otherwise, then please migrate without down-voting. I have found two different ways of installing a…
Hamish Grubijan
  • 10,562
  • 23
  • 99
  • 147
1
vote
1 answer

Access Denied. installutil.exe installation after rebuilding in VS Express 2013

This is my first time in C#, and I was following this tutorial in order to test out a Directory Monitoring Service. The relevant installation steps is in Step 6: http://www.rhyous.com/2012/11/27/c-creating-a-service-to-monitor-a-directory/ Step 6 –…
somethingstrang
  • 1,079
  • 2
  • 14
  • 29
1
vote
1 answer

Cannot register C# Powershell snapin

I've seen a bunch of similar questions, but still cannot figure out how to resolve it: I have a simple powershell cmdlet (which just adds to parameters) and a snapin to register it. The problem is then I try to run installutil I get No public…
John Smith
  • 13
  • 2
1
vote
0 answers

installutil gets stuck when installing service

I have a problem with installing a service via installutil. I've installed / uninstalled a service several times via "installutil (\u) service.exe" without problems. Now I wanted to try some modified code and uninstalled the service again. But if I…
cb_dev
  • 379
  • 1
  • 3
  • 16
1
vote
0 answers

What is the differences between InstallUtils versions

Assuming I want to install a service using InstallUtil. What will be the differences in the service and how it will affect my program if I run installUtils from C:\Windows\Microsoft.NET\Framework\v2.0.50727\ or…
user844541
  • 2,868
  • 5
  • 32
  • 60
1
vote
2 answers

Installing a Windows Service

I have created a Simple windows service to be used in my project. Is it better to install it using the InstallUtil.exe in CMD Promt (or) By creating *.Msi file. I have to install this Service in all the systems in office... If I prefer *.Msi file,…
1
vote
1 answer

installutil with windows service installs, then immediately uninstalls custom windows service

I have a custom windows service written in c# that I need to install and debug. When I use installutil "[path].exe" from the command line and then try and search for the service, it doesn't appear in the list of installed services anywhere.…
0
votes
2 answers

"File not found" while registering WMI Event on Win 2003 R2 64 bit

I'm trying to install a WMI Event contained plain .Net assembly on a Win 2003 R2 64 bit server but I'm always getting this error: System.IO.FileNotFoundException: Could not find file…
t3mujin
  • 1,272
  • 1
  • 9
  • 22
0
votes
0 answers

Installutil unable to install a service

i need your help; i am having this error when i try to install a services * Microsoft (R) .NET Framework Installation utility Version 4.8.4084.0 Copyright (C) Microsoft Corporation. All rights reserved. Running a transacted installation. Beginning…
0
votes
0 answers

C# - How to pass arguments from Service Installer to Service?

Problem I am using C# to make a Service. I want to pass parameters into the OnStart method that were defined when running the installation. What I have tried Using the solution found here I am able to pass ServiceName and DisplayName for the service…
Tyler
  • 85
  • 8
1 2 3
8 9