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.
installutil
127
questions
167
votes
7
answers
156k
views
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 ...
148
votes
8
answers
168k
views
Install Windows Service created in Visual Studio
When I create a new Windows Service in Visual Studio 2010, I get the message stating to use InstallUtil and net start to run the service.
I have tried the following steps:
Create new project File -> ...
105
votes
10
answers
116k
views
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 ...
80
votes
13
answers
61k
views
Cannot install windows service
I have created a very simple window service using visual studio 2010 and .NُET 4.0.
This service has no functionality added from the default windows service project, other than an installer has been ...
51
votes
5
answers
39k
views
installing windows service with SC.exe or InstallUtil.exe - there is difference but which?
SC.exe and InstallUtil both install/uninstall windows services. But they don't seem to work the same way.
What is the difference?
For instance InstallUtil fails (some file or dependency not found ...
38
votes
5
answers
34k
views
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 ...
16
votes
3
answers
21k
views
.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 ...
14
votes
2
answers
28k
views
installing windows service error: cannot open service control manager on computer. this operation might require other privileges
i have windows 8
i have a windows application wrtitten with c# and on visual studio 2013 and want to install this application.
i open command prompt write:
c:\..\instalutil.exe c:\projectfolder\...
14
votes
2
answers
18k
views
Using InstallUtil to install a Windows service with startup parameters
I am using InstallUtil to install my service and I just cannot figure out how to specify the startup parameters for it!
Here is my Installer subclass:
[RunInstaller(true)]
public class ...
13
votes
7
answers
9k
views
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\...
11
votes
4
answers
39k
views
Installing Windows Service with batch file?
I have the following in a bat file :
@ECHO OFF
REM The following directory is for .NET 4.0
set DOTNETFX2=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319
set PATH=%PATH%;%DOTNETFX2%
echo Installing ...
11
votes
3
answers
28k
views
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\...
10
votes
2
answers
9k
views
Problem installing windows service
I am having a problem installing a Windows service. I installed and uninstalled the service numerous times (installutil..... installutil /u) without any problem but something went wrong and now when I ...
7
votes
3
answers
8k
views
How to run a task when a windows service starts?
I have a windows service and I've written the code to run the task within the OnStart() event:
protected override void OnStart(string[] args)
{
this.DoTask();
}
private ...
7
votes
2
answers
3k
views
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 ...
6
votes
3
answers
14k
views
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'. ...
6
votes
3
answers
12k
views
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:\...
5
votes
3
answers
23k
views
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?
5
votes
4
answers
14k
views
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 ...
5
votes
1
answer
5k
views
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 ...
4
votes
6
answers
15k
views
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.
...
4
votes
3
answers
5k
views
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.
4
votes
3
answers
10k
views
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.
4
votes
1
answer
741
views
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 ...
4
votes
2
answers
896
views
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 ...
3
votes
6
answers
8k
views
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" "...
3
votes
3
answers
2k
views
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 ...
3
votes
3
answers
7k
views
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 ...
3
votes
0
answers
1k
views
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 ...
3
votes
1
answer
3k
views
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 ...
2
votes
1
answer
10k
views
Running Installutil to install a windows service on a shared folder
-Hello,
I am trying to install a windows service from a shared folder like this:
installutil "\\\10.1.5.120\Path1\Path2\MyService.exe"
And having this error:
Exception occurred while initializing ...
2
votes
2
answers
6k
views
How to debug the installation of a custom Windows service?
I created a Windows service in C# (4.0) and am trying to install it using installutil tool in command line. However I get an exception. I managed to find out what part of my code is causing the ...
2
votes
3
answers
13k
views
using Installutil to install service
I have WCF service to be installed on windows.
Now I want to install it on a sever running windows and has installed v3.5 .net framework.
It is beside the point that the service has been written in ...
2
votes
1
answer
3k
views
InstallUtil throws TypeLoadException of AssemblySignatureKeyAttribute
On the development computer there was no error when I used InstallUtil, the service was installed successfully.
I intended to install it on a different computer (it has .Net 4.0 installed), so I ...
2
votes
1
answer
21k
views
TCP IP Listener in windows Service
I'm trying to create a windows service that needs to run in the background and listen for incoming traffic (a normal and regular TCP listener)
my code is:
private TcpListener server;
public void ...
2
votes
1
answer
8k
views
Install a service( which accepts paramters for installation) using InstallUtil from Powershell
I am trying to write a powershell script to install a service which accepts parameter for installation.
The following works in command prompt
C:\Windows\Microsoft.NET\Framework\v4.0.30319>...
2
votes
1
answer
3k
views
Installing a .net 2008 windows service
I just created a simple test Windows Service and am having trouble. I'm new to Windows Services so I don't know if I'm even doing this right.
namespace testWindowsService
{
public partial class ...
2
votes
1
answer
3k
views
What are the binary references in WIX?
I've used the dark.exe to create a WXS file from my 'old' Visual Studio 2010 msi file.
When I open the created WXS file, It has binary references on the top of the file that I can't explain. Can ...
2
votes
1
answer
2k
views
C# Windows Service wont install if it includes (embedded) Entity Framework
I've been trying to work out why my C# Windows service won't install and it seems to be being caused by including Entity Framework.
To test this, I created a new project using the Windows Service ...
2
votes
2
answers
3k
views
Windows Service - UnauthorizedAccessException Error when Installing Service (C#)
So I am trying to create a service using C# in Visual Studio 2017 and I keep getting an error when I try to install it.
Right now, I don't even have anything in my service, I just want to be able to ...
2
votes
2
answers
3k
views
Creating windows service fails
I try installing my Windows service using InstallUtil.exe and running my command prompt as Administrator.
InstalUtil.exe WindowsService.exe /ShowCallStack
The above command opens a 'Set Service ...
2
votes
1
answer
2k
views
Windows Service Fails To Start Through ManagedInstallerClass But Succeeds Through InstallUtil
I have created a windows service in Visual studio 2012 (c#) that needs to be started after install. I have read so many articles and StackOverflow questions but none got it working.
In the main ...
2
votes
1
answer
5k
views
Installing windows service with InstallUtil from Visual Studio 2010 by Start Debugging (F5)
First to say, I normally install my windows service in visual studio command prompt 2010 with InstallUtil command.
Is it possible to install my windows service directly from visual studio by Start ...
2
votes
1
answer
3k
views
WIX InstallUtil/InstallUtilLib and Configuration File Deployment why is InstallUtil bad?
I often find the quote "InstallUtil.exe" is an ugly pattern or "Don't use InstallUtil.exe" and that I should use native WIX or Installation package patterns and I still don't understood why.
I ...
2
votes
1
answer
191
views
Should a Windows Service be re-installed when upgrading .NET framework?
If we upgrade (a re-deploy) a windows service to a newer .NET framework using new features, should the service be uninstalled from its server and re-installed using the latest 'InstallUtils.exe' from ...
2
votes
0
answers
595
views
Registered WMI providers are failing after upgrade
This is a followup question to this question.
I am developing a c# windows service.
All requests to the service are done using WMI.
I am installing the service using InstallUtils. and then I am ...
1
vote
1
answer
347
views
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 ...
1
vote
4
answers
3k
views
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?
1
vote
3
answers
2k
views
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 ...
1
vote
2
answers
3k
views
No installers found when running install util on custom pssnapin
I created a very simple PSSnapin but when I go to run IntallUtil against the assembly I get the following:
No public installers with the RunInstallerAttribute.Yes attribute could be found in the C:\...