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

How to reinstall Windows Service using installutil after making changes in code

I wrote a test Windows service and installed it using installutil which went fine. After that I made changes in my code and tried to install again but got error. Do I need to remove the service first, then install again using installutil? Or is…
Frank Martin
  • 3,147
  • 16
  • 52
  • 73
0
votes
1 answer

Install Windows service failing with InstallUtil command

I'm trying to install a Windows service which I've built in Visual Studio. I'm publishing the service to a local folder and when I'm trying to do the setup I'm getting this error: Then, I'm navigating to the VS2013 console, and I'm trying to run…
Laziale
  • 7,965
  • 46
  • 146
  • 262
0
votes
2 answers

Windows Service Installation .NET-4.5 Cannot load the exe file

I am trying to install a windows service with installutil in cmd and this is the msg I get: Exception occurred while initializing the installation: System.BadImageFormatException: Could not load file or assembly…
Beslinda N.
  • 4,808
  • 5
  • 27
  • 33
0
votes
1 answer

Post-build Error when using gacutil and installutil to deploy powershell snapin

I am trying to learn about writing snapin for powershell 4.0 using VS 2013. The script is very simple and compiled with no error. However, when I added gacutil and installutil to deploy the snapin using post-built, I got this error: Error 1 The…
0
votes
1 answer

After obfuscating a WMI application it is giving error

The problem i am facing is...during the installation of my WMI application (which has obfuscated dlls) below error is shown: Incorrect usage of [ManagementBind] attribute on a method. 'a' on class 'ak' (ak, Myapp.MyProvider, Version=1.3.0.11,…
0
votes
2 answers

Using InstallUtil.exe and Setting Windows Service Password Containing Spaces

Our install application prompts for a user name and password and installs a .NET service with this information. We have a Windows service that is installed using InstallUtil.exe /username=auser /password=password /name=TestService …
Paul Williams
  • 16,585
  • 5
  • 47
  • 82
0
votes
1 answer

Ensure that the service is automatically started immediately after installation

I have a windows service that i am installing using installutil.exe. How can i ensure that the service is automatically started immediately after installation. This is the service ProjectInstaller class using System.ComponentModel; namespace…
StackTrace
  • 9,190
  • 36
  • 114
  • 202
0
votes
1 answer

Powershell: Add Snap-in (install util managementCmdlets.dll)

Howsit! I'm in need of a solution, I need to add a snap-in - and can't. I'm attempting to run processes on my company's share-point site Thus the real error: Get-SPSite: 'Get SPSite' is not recognized as the name of a cmdlet, function, script…
0
votes
0 answers

How to install .net based windows service on fresh machine Win 7 Home

we have a windows service build using .net 4.5. Things were fine on development machine when i tried to install the same service on our UAT machine it is giving this below error, I have installed on this UAT machine. NET 4.5 only. After this below…
Shax
  • 4,207
  • 10
  • 46
  • 62
0
votes
3 answers

InstallUtil fails on installing custom Windows Service

I'm busy writing a custom Windows Services to handle MSMQ messages on a server, but the installation (using InstallUtil) keeps failing with the following error: "System.InvalidOperationException: Unable to get installer types in the 'x'.exe…
mnemonic
  • 692
  • 1
  • 9
  • 18
0
votes
0 answers

WCF Service: InstallUtil error when creating eventlog

I have a WCF service and I am trying to install it using installutil, so when performing the installation below errors are raised: The service MyService has been installed correctly. Creating the EventLog source MyService in the Application…
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
1 answer

Installing Windows Service via ManagedInstaller - how to install 64-bit service?

I was going to post this, but managed to dig up the answer, so here it is in case anyone else is looking... My app installs a windows service via: string[] installargs = new string[] { binaryname…
steve cook
  • 3,116
  • 3
  • 30
  • 51
0
votes
0 answers

Installing an executable file as a Windows service

I have packaged a .exe file which when executed will execute a .bat file. I need to install this .exe file as a Windows service. I have used Sc and InstallUtil.exe to do this. I used SC and installed this .exe file as windows service, But When i…
0
votes
1 answer

Window Service Cannot load Oracle.DataAccess.dll

I have a Window service which uses "Oracle.DataAccess.dll" (file version 2.112.0) to connect to the Oracle DB. When I deployed this service on to the server, I get the following error "Could not load file/assembly Oracle.DataAccess…
KKR
  • 79
  • 8
0
votes
1 answer

How do I install a Windows Service Application

I am having a problem installing a Windows Service application on my computer. If I am successful I expect to see my service listed under Computer Management – Services and Application – Services. I first try to click on my exe. I get this message:…
Bob Avallone
  • 379
  • 1
  • 10
  • 29
1 2 3
8
9