ich habe ein Windows Service auf einem Win2000 Prof. Betriebssystem
entwickelt, meinem Projekt liegt eine ServiceInstaller Class bei welche im
Konstruktor folgenden Code hat
public ServiceInstaller()
{
// Dieser Aufruf wird vom Designer benötigt.
InitializeComponent();
System.ServiceProcess.ServiceInstaller si = new
System.ServiceProcess.ServiceInstaller();
ServiceProcessInstaller spi = new ServiceProcessInstaller();
si.StartType = ServiceStartMode.Manual;
si.ServiceName = "ServerWatch";
si.DisplayName = "WatchServer"; // this will be displayed in the
Services Manager.
this.Installers.Add(si);
spi.Account = System.ServiceProcess.ServiceAccount.LocalSystem; // run
under the system account.
this.Installers.Add(spi);
}
Ein RunInstaller(true) Attribut wurde ebenfalls gesetzt.
Nun läßt sich dieses Service mit dem Installutil auf dem Entwicklungsrechner
ohne Probleme installieren.
Wenn ich jedoch das kompilierte Assembly auf einen 2003 Server kopiere und
dort die Installation mit Installutil ausführen will bekomme ich folgende
Fehlermeldung:
Es wurde kein öffentlicher Installer mit dem RunInstallerAttribut gefunden.
Kann mir da jemand weiterhelfen??
MFG
Mähr Stefan
Vielleicht hilft:
http://www.google.com/groups?selm=bbf0iu%248a7hm%241%40ID-191608.news.dfncis.de
"the installutil.exe in my path was that of framework 1.0.
Using the installutil.exe of framework 1.1, it worked."
Es könnte also von der Version des installutil abhängen....
--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/