installutil

Installing a .NET service using InstallUtil

I'm trying to install a .NET service I wrote. As recommended by MSDN, I'm using InstallUtil. But I have missed how I can set the default service user on the command-line or even in the service itself. Now, when InstallUtil is run, it will display a dialog asking the user for the credentials for a user. I'm trying to integrate the ser...

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 applications are installed? ...

Install a .NET windows service without InstallUtil.exe

I have a standard .NET windows service written in C#. Can it install itself without using InstallUtil? Should I use the service installer class? How should I use it? I want to be able to call the following: MyService.exe -install and it will have the same effect as calling: InstallUtil MyService.exe ...

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 fine from my own dev pc, but I would like to start opening this stuff up to the public. Ho...

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 system restart. What is the best way of making my service "auto start" AFTER Sql server service...

C# Powershell snapin not registering using installutil

I've got a really simple powershell script (see below). I've got installutil aliased using the following in my profile: set-alias installutil $env:windir\Microsoft.NET\Framework\v2.0.50727\installutil In powershell I simply: installutil assemplylocation.dll This returns successfully. (Install/Commit both complete successfully). Yet...

Correct InstallUtil Path To File Syntax?

I'm trying to install a Windows Service using a batch file, let's call it "installservice.bat". Inside the file I have the following commands: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe -i ".\MyService.exe" pause When I excute the batch file (running as administrator on Vista) I get this: Exception occurred whil...

Installing multiple instances of the same windows service on a server.

So we've produced a windows service to feed data to our client application and everything is going great. The client has come up with a fun configuration request that requires two instances of this service running on the same server and configured to point at separate databases. So far I haven't been able to get this to happen and was ...

.net InstallUtil utility - 32 bit vs 64 bit

I've got a windows service compiled as AnyCPU. I'm trying to get it into our installer to distribute. However... I am unclear on the difference between the 32 bit and 64 bit versions of InstallUtil. Does anyone know what (if any) there are? On my 64 bit machine, I can run either the $(WinDir)\Microsoft.NET\Framework64\v2.0.50727 or...

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 service: http://www.wsinnovations.com/softeng/support/manualservice.html as well as using http://msdn.microsoft.com/en-us/library/50614e95(...

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? ...

InstallUtill of GCC compiled exe recieving System.BadImageFormatException

I am trying to use a GCC compiled exe as a service in windows. From what I have researched I should do: C:\Windows\Microsoft.net\Framework\v2.0.50727\InstallUtil.exe [program name] Although when I try to do this I receive a message as such: Exception occurred while initializing the installation: System.BadImageFormatException: Could no...

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 error above: Invoke-Command -ComputerName <remote machine> -ScriptBlock {Invoke-Item ...

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 bindingRedirect tag in the app.config file which works fine when running the service. Problem is t...

WCF Service as Windows Service woes (Windows 7)

I followed the steps here to make my existing WCF service (already working fine as console application) be Windows Service as well, on my Windows 7 machine which is also my development machine. No matter what I tried, when doing the last step of using installutil, I'm getting the following message in the command line: Exception occurred...

Setting a window service to run as the current user when it is installed using InstallUtil.exe

Is there a way to install a windows service and automatically set it up to run as the current user without having to manually fill in details each time it installs? We're developing a windows service and want to automate the installation of the service on developer machines so everyone can get up and running on the project very quickly...