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
2
votes
2 answers

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 exception - using some crappy logging but whatever -…
Guillaume
  • 1,782
  • 1
  • 25
  • 42
2
votes
1 answer

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 stepped away from using InstallUtil to install a .NET…
The Senator
  • 5,181
  • 2
  • 34
  • 49
2
votes
2 answers

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 install the service. I created a new Project in…
nightmare637
  • 635
  • 5
  • 19
2
votes
1 answer

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 Service1 : ServiceBase { public…
Jeremy
  • 45
  • 3
  • 9
2
votes
1 answer

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 template in Visual Studio and just let the wizard do…
Chris Hammond
  • 2,064
  • 5
  • 27
  • 53
2
votes
1 answer

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 the newest framework? Or is the install in the…
Orion
  • 39
  • 3
2
votes
1 answer

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 startServer() { //…
Pilsneren
  • 59
  • 1
  • 1
  • 3
2
votes
2 answers

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 Login' window, see the picture at this link. When I…
Jasper Catthoor
  • 595
  • 1
  • 6
  • 22
2
votes
1 answer

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 function, I have: static void Main(string []args) { …
Ali Baig
  • 3,819
  • 4
  • 34
  • 47
2
votes
1 answer

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>installutil.exe /ControllerGroup=Delivery /username=userl…
user2886642
  • 71
  • 1
  • 5
2
votes
1 answer

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 Debugging (F5)? I tryed to start cmd.exe in my…
2
votes
0 answers

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 registering the WMI schema using…
user844541
  • 2,868
  • 5
  • 32
  • 60
2
votes
1 answer

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 copied the following files to the target…
Nestor
  • 8,194
  • 7
  • 77
  • 156
2
votes
1 answer

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 somebody tell me about it? And where can I find some…
LockTar
  • 5,364
  • 3
  • 46
  • 72
2
votes
1 answer

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 the installation: System.IO.FileLoadException: Could…
antistar
  • 198
  • 2
  • 8
1 2
3
8 9