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

installer project / installutil.exe dll

I have a simple C# project generating a MMC Snapin DLL file from a project A, and would like to know how to use Installer Project to "register" (doing what installutil.exe) the DLL file. Can someone point me to an example? Thanks!
Hoi Tsang
  • 31
  • 1
  • 2
0
votes
1 answer

An exception occurred in the OnAfterInstall event handler of the Installer

I have created a windows service, that I am trying to deploy on the server. And trying to install it using Command Prompt, with Administrator role. Installer: [RunInstaller(true)] public partial class ProjectInstaller :…
Vikrant
  • 4,920
  • 17
  • 48
  • 72
0
votes
0 answers

How to run multiple .net services on same machine

We have a .Net service that we need to run more than once on the same machine. I have my exe and support files residing in 2 different folders: c:\folder1\ and c:\folder2\ But when I issue either of the following, the ServiceName does not change to…
Jerry
  • 6,357
  • 8
  • 35
  • 50
0
votes
1 answer

Value of supportedRuntime in _isconfig.xml is causing Error 1001 during ManagedInstall

Last month (March 2016) I was building an InstallShield 2015 project with a component whose .NET Installer Class property was set to Yes, and everything seemed to be working well. This month I suddenly started getting Error 1001 while running the…
BlueMonkMN
  • 25,079
  • 9
  • 80
  • 146
0
votes
1 answer

installing a windows service with .exe path in c#

I need to install a service programatically (It even can be done with InstallUtil but it can't be done manually) I have the following code but can't figure out how to do it properly since that code asks for some class info wich I dont know and I…
Mr.Toxy
  • 357
  • 4
  • 19
0
votes
1 answer

InstallUtill of GCC compiled .exe receiving 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: …
0
votes
1 answer

Windows service starts and then stops when installed in debug folder

I have a selfhosting WCF Service. It is hosted by an Windows Service. I installed it with installutil. So in the bin Folder I have two Folders Debug and Release. When I install the windowsservice in the release Folder it starts as usual and hosts…
Mr. Paul
  • 103
  • 3
  • 16
0
votes
0 answers

Does installutil.exe know how to find external DLLs referenced in the project?

I am trying to use installutil.exe to install a windows service. I had it working but but then I added some external DLLs to the project, and now the install is failing. Copy local is set to true. The external DLLs are in various folders beneath my…
Tim
  • 8,669
  • 31
  • 105
  • 183
0
votes
2 answers

Custom Event Logging in a Windows Service

In the project installer i am creating a custom event log. But when my service starts my all logs are going to the "Application" instead of my cuustom log. Below is the code which i have added to installer. // Create Event Source and Event Log …
0
votes
0 answers

How do I install a Windows Service without external resources, third party apps, etc?

How am I supposed to install my Windows Service from my WinForms app? Everything I read says "use InstallUtil.exe, blah blah..", but they're forgetting one thing... In all the years I've known about InstallUtil.exe, not one single computer has ever…
NDEIGU
  • 2,563
  • 2
  • 12
  • 13
0
votes
0 answers

Installing service fails

I have an odd situation that I am not sure how to resolve. I have an executable, let's say cat.exe located at C:\Program Files\MyPath\cat.exe Trying to use sc create failed each time, I was not sure why this was happening, and after reading online…
Nyra
  • 859
  • 1
  • 7
  • 27
0
votes
1 answer

Unable to install a windows service with installutil, I get 'logon failure' during installation

We have a legacy windows service that I am installing on a new computer. I have the installer and when I run it or alternatively use installutil from the command prompt, I get the following: An exception occurred during the Install phase. …
NibblyPig
  • 51,118
  • 72
  • 200
  • 356
0
votes
0 answers

Installing Windows service on Windows 8.1 tablet

I Have Written a WCF service , to perform some image processing activity, Hosted on windows service . A windows 8.1 Store App consumes this WCf service. I had run this setup in my local machine and was successful. Now i need to install this this…
0
votes
1 answer

Can't reinstall service

I am trying to create an auto update for an application however I am having a bit of trouble with the updating part. Basically what I have is a windows service that periodically checks for updates and when it finds and update it launches a console…
Hunter Nelson
  • 1,707
  • 3
  • 20
  • 37
0
votes
1 answer

registering different versions of a dll through installutil

I am trying to register different versions of a dll for WMI. There are 2 versions of application on the same server which we need to deploy. But the dll which is registered later overwrites the dll which was registered earlier. Can 2 dlls with…
puneet
  • 769
  • 1
  • 9
  • 34
1 2 3
8 9