472,371 Members | 1,552 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,371 software developers and data experts.

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 12530
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Richard Hanson | last post by:
Over the last few days, I reinstalled Win2kSP2 to a spare harddrive I had just swapped into my Fujitsu LifeBook P1120 (long story <wink>). Subsequently, I DL'ed the newest Python alpha (2.4a2), and...
0
by: Owe Armandt | last post by:
Having a problem to install a C# service on my server. The service installs fine on other machines but not on this server. I have installed other services previously though. The error message...
2
by: Jim Slade | last post by:
I downloaded the .NET Framework SP2 exe to a Windows Server 2003 (standard) machine, double clicked on the exe and got a message that starts out: "The upgrade patch cannot be installed by the...
3
by: David Preuss | last post by:
Hello all, hopefully someone can help me. I have got a service which I want to deploy. I added an installer project to my solution and did everything as stated in some kb articles (eg adding the...
3
by: Chris Wagner | last post by:
Anyone knows how to install/unistall service with VB.NET without using InstallUtil program? Thanks
0
by: thatsMaBoy | last post by:
Hi, I have an ASP.Net web service application. The .Net installer (a deployment project) currently installs the web service in the Default Website area in IIS on the target server PC. This is...
4
by: kkt49 | last post by:
# vim: et sw=4 ts=8 sts from wxPython.wx import * import sys, os, time import pywintypes import win32serviceutil import win32service import win32event import win32process
0
by: pbh | last post by:
Hi all I've written a Service application and it must use it's own EventLog. The Service is checking if it is registered as EventLog source, and if not it creates it's own EventLog. Unfortunately...
3
by: =?Utf-8?B?Sm9hY2hpbQ==?= | last post by:
I have made a Windows Service and I have read that you should use installutil.exe to register the service. However, no service appears in the Control Panel Administrative Tools Services when I run...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.