469,593 Members | 1,927 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,593 developers. It's quick & easy.

Installer & RunInstallerAttribute: Failure to Install Service

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?

Nov 15 '05 #1
3 12395
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.

"Ryan" <an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl...
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?

Nov 15 '05 #2
Look for the following topic in the MSDN help files:

http://msdn.microsoft.com/library/de...pplication.asp

Then the section on "To create the installers for your service " will get
into the details you're looking for.

Chris R.

"Ryan" <an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl...
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?

Nov 15 '05 #3
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
Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Owe Armandt | last post: by
2 posts views Thread by Jim Slade | last post: by
3 posts views Thread by David Preuss | last post: by
3 posts views Thread by Chris Wagner | last post: by
3 posts views Thread by =?Utf-8?B?Sm9hY2hpbQ==?= | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.