Installer & RunInstallerAttribute: Failure to Install Service

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?
 
D

Dave

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.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top