Installer & RunInstallerAttribute: Failure to Install Service

  • Thread starter Thread starter Ryan
  • Start date Start date
R

Ryan

I have a simple project, most of it generated by Visual
Studio.
Public Windows Service Installer (Also generated),
with :
[RunInstallerAttribute(true)]
public class ProjectInstaller :
System.Configuration.Install.Installer
{
....

When I run installutil on the executable, it complains
that there aren't any public Installers with
RunInstallerAttribute.Yes . This is all Visual Studio
generated code! Any ideas/things I should be doing
differently?
 
Did you create a deployment project to handle the installation? In there you
have to define a custom action so that the installer will invoke your class
during one of the phases (install or commit) of the installation.
 
Your path is probably set to the old framework. Update your path so it points to

c:\windows\Microsoft.NET\Framework\v1.1.4322

After you do this you will be executing the proper installutil.exe

Alex
 
Back
Top