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

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 framework 4 and therefor it will not run. My…
cpoDesign
  • 8,953
  • 13
  • 62
  • 106
1
vote
1 answer

Can I stop parameters passed to InstallUtil from showing up in the install log?

I have created a custom task that is used to create SQL compact databases as part of setup. When use InstallUtil to execute this task I use a parameter for the (environment specific) password to use when creating the local database. The problem is…
Dan Ryan
  • 624
  • 7
  • 24
1
vote
1 answer

Pass parameters to InstallUtil from Powershell

I am trying to install a windows service from Power-shell as follows. $sn = """" + $serviceName + " " + $exeName + """" C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe -i /ServiceName=[$sn] $exeFilePath I am getting the following…
Rajan Panneer Selvam
  • 1,279
  • 10
  • 24
1
vote
1 answer

Installutil keeps telling me "No public installers found". Any ideas?

I am trying to install a Windows service just created in Visual Studio 2008. The Install.log file tells me the following again and again: No public installers with the RunInstallerAttribute.Yes attribute could be found in the [correct path to my…
Andrew J. Brehm
  • 4,448
  • 8
  • 45
  • 70
1
vote
2 answers

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…
devlife
  • 15,275
  • 27
  • 77
  • 131
1
vote
2 answers

Install a windows service with InstallUtil.exe command during an installation

I've a Console Application project in a Visual Studio Solution. This application, called here for semplicity MyApplication.exe, is nothing but an host of a WCF Service. I need an installer for install my application on the target machine, so I…
user2896152
  • 762
  • 1
  • 9
  • 32
1
vote
1 answer

How to install windows services written in .Net with an installer package?

I followed thoroughly the Microsoft Tutorial: Create a Windows service app. In particular, I saw this code: static void Main(string[] args) { ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { new…
Laurent Michel
  • 1,069
  • 3
  • 14
  • 29
1
vote
1 answer

Installing a windows service as a user fails

I'm developing a windows service using .Net framework version 3.5. It needs to call a web service on a remote machine and I'm running into a weird installation problem. I used to install it on my machine as User (the default), and when prompted…
Jackson Pope
  • 14,520
  • 6
  • 56
  • 80
1
vote
1 answer

How to automatically allow my service to interact with the desktop at installation time?

I have a Windows service built which is being installed by .NET 2.0's installutil /i command. It installs the service as with the following account, with a password: NT AUTHORITY\LocalService When I run my service with net start , I…
Kai
1
vote
1 answer

Can't open the service control manager despite running command prompt as administrator

I created a service in C# which generated an executable "GodzillaService.exe". The service itself is just a basic template generated EXACTLY according to this link, other than the name:…
nightmare637
  • 635
  • 5
  • 19
1
vote
0 answers

Correct way to install .NET assembly which contains implementation of System.Configuration.Install.Installer in WiX

I am building a WiX installer which needs to deploy a .NET assembly that contains an implementation of System.Configuration.Install.Installer. The assembly is a plugin based on an SDK. The SDK defines an SDK-specific installer class which inherits…
Hydrargyrum
  • 3,378
  • 4
  • 27
  • 41
1
vote
1 answer

Installing Windows Service fails

I'm trying to install a .NET 4 Windows Service on a production server: Running InstallUtil.exe gives me this error message: Exception occurred while initializing the installation: System.BadImageFormatException: Could not load file or assembly …
Jakob Gade
  • 12,319
  • 15
  • 70
  • 118
1
vote
0 answers

BadImageFormatException occurs when converting VC++ MFC application to a windows service

I tried to install a Windows service from VC++ MFC project using InstallUtil.exe and got the error message as below. C:\Users\p.gamage\Documents\Visual Studio 2015\Projects\MFCDatabaseTuts\x64\Debug>installutil MFCDatabaseTuts.exe Microsoft (R) .NET…
Prabath
  • 43
  • 1
  • 7
1
vote
2 answers

How install managed service from WiX?

Is it possible/recommended to use the InstallService element to install a Windows service written in managed code (C#)? (I tried it and it does install the service, but the service won't start) Or does this require a custom action which invokes…
Max
  • 9,220
  • 10
  • 51
  • 83
1
vote
1 answer

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…
Helephant
  • 16,738
  • 8
  • 39
  • 36
1 2 3
8 9