Click here to Skip to main content
15,913,587 members
Home / Discussions / C#
   

C#

 
GeneralRe: Installing Windows Services Pin
Guillermo Jimenez16-Sep-04 4:27
Guillermo Jimenez16-Sep-04 4:27 
InstallUtil does complain about missing public installers but this is automatically generated code!


InstallUtil log file

"No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\...\visual studio projects\windowsservice1 \bin\debug\windowsservice1.exe assembly.
Remove InstallState file because there are no installers."

But...

The code generated by C# automatically puts [RunInstaller(true)] not [RunInstallerAttribute], is this a bug? I am using .Net 2003.

This is the code generated by C#

[RunInstaller(true)]
public class ProjectInstaller : System.Configuration.Install.Installer
{
public System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller1;

public System.ServiceProcess.ServiceInstaller serviceInstaller1;

private System.ComponentModel.Container components = null;

public ProjectInstaller()
{
// This call is required by the Designer.
InitializeComponent();

}
...
private InitializeComponent()
{
// serviceProcessInstaller1
//
this.serviceProcessInstaller1.Account =
System.ServiceProcess.ServiceAccount.LocalSystem;

this.serviceProcessInstaller1.Password = null;
this.serviceProcessInstaller1.Username = null;

//
// serviceInstaller1
//
this.serviceInstaller1.DisplayName = "A Windows Service";
this.serviceInstaller1.ServiceName = "Service1";

//
// ProjectInstaller
//
this.Installers.AddRange(new System.Configuration.Install.Installer[]
{ this.serviceProcessInstaller1, this.serviceInstaller1
}
);

Guillermo Jimenez
GeneralRe: Installing Windows Services Pin
Heath Stewart16-Sep-04 5:31
protectorHeath Stewart16-Sep-04 5:31 
GeneralLooking for a generic method for accessing fields in C# classes/structs Pin
johnbMA15-Sep-04 7:06
johnbMA15-Sep-04 7:06 
GeneralRe: Looking for a generic method for accessing fields in C# classes/structs Pin
Nnamdi Onyeyiri15-Sep-04 7:31
Nnamdi Onyeyiri15-Sep-04 7:31 
GeneralRe: Looking for a generic method for accessing fields in C# classes/structs Pin
Heath Stewart15-Sep-04 7:42
protectorHeath Stewart15-Sep-04 7:42 
GeneralRe: Looking for a generic method for accessing fields in C# classes/structs Pin
Nick Parker15-Sep-04 7:46
protectorNick Parker15-Sep-04 7:46 
QuestionMax length of text in statusbar? Pin
blakeb_115-Sep-04 6:12
blakeb_115-Sep-04 6:12 
AnswerNevermind, found the answer Pin
blakeb_115-Sep-04 6:14
blakeb_115-Sep-04 6:14 
GeneralRe: Nevermind, found the answer Pin
Heath Stewart15-Sep-04 6:59
protectorHeath Stewart15-Sep-04 6:59 
GeneralRe: Nevermind, found the answer Pin
blakeb_117-Sep-04 5:34
blakeb_117-Sep-04 5:34 
GeneralScene change detection doubt Pin
ee9903515-Sep-04 5:55
ee9903515-Sep-04 5:55 
GeneralRe: Scene change detection doubt Pin
Heath Stewart15-Sep-04 6:54
protectorHeath Stewart15-Sep-04 6:54 
GeneralRe: Scene change detection doubt Pin
ee9903515-Sep-04 8:04
ee9903515-Sep-04 8:04 
GeneralRe: Scene change detection doubt Pin
Manajit19-May-10 20:04
Manajit19-May-10 20:04 
GeneralLPWSTR in C# Pin
yyf15-Sep-04 5:41
yyf15-Sep-04 5:41 
GeneralRe: LPWSTR in C# Pin
Heath Stewart15-Sep-04 7:10
protectorHeath Stewart15-Sep-04 7:10 
GeneralRe: LPWSTR in C# Pin
yyf15-Sep-04 9:43
yyf15-Sep-04 9:43 
GeneralRe: LPWSTR in C# Pin
Heath Stewart15-Sep-04 10:16
protectorHeath Stewart15-Sep-04 10:16 
GeneralRe: How to change the text of a text object at runtime in crystal reports for .NET (C#) Pin
Dave Kreskowiak15-Sep-04 3:56
mveDave Kreskowiak15-Sep-04 3:56 
GeneralRe: wall on this one:simple string search question Pin
sreejith ss nair15-Sep-04 3:46
sreejith ss nair15-Sep-04 3:46 
GeneralRe: wall on this one:simple string search question Pin
Heath Stewart15-Sep-04 7:22
protectorHeath Stewart15-Sep-04 7:22 
Generalsimple string search question Pin
Vodstok15-Sep-04 3:32
Vodstok15-Sep-04 3:32 
GeneralRe: simple string search question Pin
sreejith ss nair15-Sep-04 3:44
sreejith ss nair15-Sep-04 3:44 
GeneralRe: simple string search question Pin
Vodstok15-Sep-04 3:58
Vodstok15-Sep-04 3:58 
GeneralRe: simple string search question Pin
sreejith ss nair15-Sep-04 4:15
sreejith ss nair15-Sep-04 4:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.