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
0
votes
1 answer

Error on Creating EventLog source with windows service installation

I have developed a windows service in c#, The project works fine in DEBUG mode, also the project is built with out any errors. When I try to install the service using InstallUtil.exe, I get below error and the service is not installed. Could someone…
VIRIYALA NARESH
  • 187
  • 1
  • 4
  • 17
0
votes
1 answer

Does InstallUtil automatically register .dlls for you?

I am transitioning from a PowerShell script to a C# Console App executing InstallUtil.exe via Process()class to silently install a windows service. In the PowerShell script I had to register each .dll the service uses with regsvr32.exe Does the…
0
votes
2 answers

Why can't InstallUtil.exe find the manifest file?

I am trying to create a Windows service following this tutorial: https://www.c-sharpcorner.com/UploadFile/8a67c0/create-and-install-windows-service-step-by-step-in-C-Sharp/ I am using batch code to install the service: @echo off cd…
Sketch Turner
  • 55
  • 1
  • 6
0
votes
1 answer

Retrieving exit status of InstallUtil with ERRORLEVEL

UPDATE. When writing this question I was assuming wrongly that InstallUtil stores its status in the %ERRORLEVEL% variable rather than the internal value ERRORLEVEL, due to its unexpected behavior. I rephrased the title since it could be misleading.…
Amessihel
  • 5,891
  • 3
  • 16
  • 40
0
votes
1 answer

utilinstall: Access denied when copying folder

I'm using installutil to install a service. However, when I copy the entire folder - msawebservice - install.bat - MSAGRadWebService - MSAGradWebService.exe - msawebservice - Copy - install.bat - MSAGRadWebService -…
Cornelis
  • 1,065
  • 8
  • 23
0
votes
2 answers

C# InstallUtil/ManagedInstallerClass: Why are key value pairs not pass into the installers context parameters collection?

I pass the service name into the argument list, but when I look in the installers context it is not there: args = new[] { Assembly.GetExecutingAssembly().Location, "/ServiceName=WinService1" }; ManagedInstallerClass.InstallHelper(args); Why are key…
Rookian
  • 19,841
  • 28
  • 110
  • 180
0
votes
1 answer

secure plain text password in process creation windows security log event

I have a batch script with this command in it installutil /account=user /Password=password /config="ServiceConfig.xml" /LogFile="ex.InstallLog" "Hosting.exe" When i run the script in commandLine i have a creation process with ID 4688 logged in…
0
votes
0 answers

windows authentication in windows service

Windows service throwing error ACCESS DENIED While trying to access website that uses windows authentication. While deploying this service its using NT-Authority as windows credential WebClient wc = new WebClient(); string page =…
Vipul Handa
  • 109
  • 1
  • 10
0
votes
1 answer

InstallUtil error caused by a custom settings provider

I define MySettingsProvider class that is derived from LocalFileSettingsProvider and used for storing apllication settings. The settings are used in service installer instance. I'm trying to install my service using InstallUtil: InstallUtil…
Alexander
  • 4,420
  • 7
  • 27
  • 42
0
votes
1 answer

Install a Windows Service having parameters

I try to install a Windows Service having parameters. I try to reproduce something like this: but it seem impossible to install it like this : InstallUtil.exe "C:\MyPath..\MyExe.ProcessorService.exe -service myParam"
serge
  • 13,940
  • 35
  • 121
  • 205
0
votes
1 answer

c# error on windows service

I have the following error: OpenSCManager Failed 5: Access is denied. Can someone help me? Is there another way besides using installutil to install the windows service ? P.S : I am using Visual studio 2008. I did look for installutil in…
elisa
  • 743
  • 2
  • 13
  • 31
0
votes
1 answer

installutil not setting logon account username and password

I'm trying to install a new windows service (command line), which succeeds, however for my testing purposes I need to set a specific account/user and password. I've read plenty of posts and articles arguing I should use: installutil…
so cal cheesehead
  • 2,515
  • 4
  • 29
  • 50
0
votes
1 answer

InstallUtil gets stuck while installing service

I'm trying to install my own windows service using installUtil.exe with the following command in Administrator mode. InstallUtil C:\Users\Admin\Desktop\Subway_sync\SubwaySync\SubwaySync\bin\Debug\SyncSQL.exe I get the following as cmd output and…
Ammar Ameerdeen
  • 950
  • 3
  • 11
  • 29
0
votes
1 answer

How to place PowerShell help file in GAC

I'm developing a powershell snapin derived from PSSnapIn. If I manually copy my snapin.dll-help.xml file to the GAC get-help on my command works like expected. So, is it possible to get InstallUtil to copy the xml file as well as the dll upon…
Mikael Svenson
  • 39,181
  • 7
  • 73
  • 79
0
votes
1 answer

Deploy of a Windows Service project by manually copying files

I have a windows service project in Visual Studio that I inherited from another developer, and I'm struggling to deploy the service to our server. Is it possible to copy the build files from the Release folder to the server, and then run installutil…
Cameron Castillo
  • 2,712
  • 10
  • 47
  • 77
1 2 3
8 9