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
6
votes
3 answers

Installutil won't uninstall: "The specified service does not exist as an installed service"

I have been trying to install a Windows service using installutil: installutil /u GSIS.FileMoverService.exe. The output I get is : Uninstalling assembly 'C:\FMS\GSIS.FileMoverService.exe'. Affected parameters are: logtoconsole = logfile =…
Badgerspot
  • 2,301
  • 3
  • 28
  • 42
6
votes
3 answers

BadImageFormatException error in using InstallUtil tool

I have created and compiled my windows service using .NET 4.0 So I go to .NET 4.0 folder and say something like this: I copied the bin folder to C drive to make path shorter: InstallUtil.exe "C:\bin\Debug\MyTestService.exe" and this is the error I…
Bohn
  • 26,091
  • 61
  • 167
  • 254
5
votes
3 answers

How to install a .NET windows service without InstallUtil.exe vb.net

I have created a windows service in vb.net. Is there anyway i can create an installation for it that does not require installutil to be used?
Simon
  • 133
  • 1
  • 6
  • 15
5
votes
4 answers

Controlling start up sequence of a windows service

I have a windows service installed using installutil and set to "Autostart". My problem is that when some servers are rebooted it attempts to start before "Microsoft SQL service" has started- I can see this by looking at the event log during a…
Bijimon
  • 322
  • 1
  • 5
  • 8
5
votes
1 answer

Can the Invoke-Item cmdlet launch an executable with parameters?

I'm trying to install some custom Windows services using PowerShell, and I've been unable to run InstallUtil without getting the following error: A positional parameter cannot be found that accepts argument '' Here's what I've run that causes the…
Scott Lawrence
  • 6,993
  • 12
  • 46
  • 64
4
votes
1 answer

Can I XCOPY Deploy a Windows Service?

I have a windows service that is already installed on a server, and I have a new version of the executable and linked assemblies. The normal procedure I use for installation of a new version is: Stop the service Uninstall the service using…
John Bledsoe
  • 17,142
  • 5
  • 42
  • 59
4
votes
6 answers

Installing windows service fails: service already exists

I'm trying to reinstall a service I've written using C#. The first time this worked. I used installutil to handle the install and the service showed up in the list of services and I could start it. Then I made some updates to the code and…
Pieter
  • 3,339
  • 5
  • 30
  • 63
4
votes
2 answers

installutil bindingRedirect

I have a windows service that depends on a 3:rd party API The API is already installed in the GAC on the client computer There are several versions of the API (1.0.0.0, 1.1.0.0 etc) My service works with all versions of the API I use a…
adrianm
  • 14,468
  • 5
  • 55
  • 102
4
votes
3 answers

installutil.exe is not a valid win32 application

When I try to install service using Installutil.exe I receive a message c:\windows\Microsoft.net\framework\v4.0.30319\Installutil.exe is not a valid Win32 application.
kulNinja
  • 526
  • 6
  • 14
4
votes
3 answers

How to pass arguments to installutil MyService.exe Parameter1 Parameter2

How to pass arguments to installutil MyService.exe Parameter1 Parameter2 I MyService is a windows service. I want to pass the arguments to this service.
user2075283
  • 41
  • 1
  • 3
3
votes
3 answers

Installing and running a .NET Windows service at a web host

I already asked this question at the JOS-.NET board but Joel is closing that board down so here it is again: Do web hosting providers allow you to install Windows Services? I want to play around with some automation stuff, which I can currently do…
RS999
  • 61
  • 6
3
votes
0 answers

Windows Service Installation Failure : Unable to get Installer types

I've developed a Windows Service, and I've done the following : Added the Installer Made sure the ServiceName property in ServiceInstaller1 matches my service name Set the correct parameters Changed startup in Project properties to …
user1173240
  • 1,455
  • 2
  • 23
  • 50
3
votes
1 answer

InstallUtil throwing exception when trying to install windows service on Windows 2012 server

I developed a windows service using VS 2010 (32 bit), but compiled it for 'Any CPU'. I have transferred the required exe and other files onto a Windows 2012 Server (Standard edition - 64 bit), and am now trying to install it using InstallUtil I have…
user1953684
  • 59
  • 1
  • 5
3
votes
3 answers

What is the best way to install a C# windows service that doesn't require running installutil manually?

I'd like to package a C# windows service project so it can be easily installed by anyone without having to use installutil command prompt utility? Is there an easy way to configure a Visual Studio setup project to do that similar to how winforms…
Vassili Altynikov
  • 2,049
  • 2
  • 17
  • 24
3
votes
6 answers

Install util looks for service on wrong folder

3 I'm trying to install a Windows Service using a batch file, let's call it "setup.bat". Inside the file I have the following commands: "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil" "MyService.exe" When I excute the batch file…
Nahum
  • 6,959
  • 12
  • 48
  • 69
1
2
3
8 9