Windows Service installieren

kahuna

Erfahrenes Mitglied
Hallo

Ich versuche gerade einen WindowsService zu installieren. Doch nach Installation mit installutil finde ich den Service gar nicht im Control Panel... Hats den Service überhaupt installiert?

[Install Log]
Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\projects\testcontainer\windowsservic
e1\bin\debug\windowsservice1.exe assembly's progress.
The file is located at c:\projects\testcontainer\windowsservice1\bin\debug\windo
wsservice1.InstallLog.
Installing assembly 'c:\projects\testcontainer\windowsservice1\bin\debug\windows
service1.exe'.
Affected parameters are:
assemblypath = c:\projects\testcontainer\windowsservice1\bin\debug\windowsser
vice1.exe
logfile = c:\projects\testcontainer\windowsservice1\bin\debug\windowsservice1
.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found
in the c:\projects\testcontainer\windowsservice1\bin\debug\windowsservice1.exe
assembly.

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the c:\projects\testcontainer\windowsservic
e1\bin\debug\windowsservice1.exe assembly's progress.
The file is located at c:\projects\testcontainer\windowsservice1\bin\debug\windo
wsservice1.InstallLog.
Committing assembly 'c:\projects\testcontainer\windowsservice1\bin\debug\windows
service1.exe'.
Affected parameters are:
assemblypath = c:\projects\testcontainer\windowsservice1\bin\debug\windowsser
vice1.exe
logfile = c:\projects\testcontainer\windowsservice1\bin\debug\windowsservice1
.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found
in the c:\projects\testcontainer\windowsservice1\bin\debug\windowsservice1.exe
assembly.
Remove InstallState file because there are no installers.

The Commit phase completed successfully.

The transacted install has completed.

Ich blick momentan echt nicht durch. Für mich sieht das doch aus, als sei der Service installiert worden oder nicht?

Gruss Alexander
 
Hast du einen Installer in deinem Projekt? Sieht mir nämlich nicht danach aus ...

No public installers with the RunInstallerAttribute.Yes attribute could be found
in the c:\projects\testcontainer\windowsservice1\bin\debug\windowsservice1.exe
assembly.

Und wenn in den Diensten dein Dienst nicht zu finden ist ... nun -> nicht installiert.
 
=D Ne hab ich nicht...

Habe leider gar keine Erfahrung mit Services. Ich habe einfach ein Tutorial nachgearbeitet und bei mir funktioniert es eben nicht.

Wie erstell ich mir dann einen Installer?

Gruss Alexander
 

Neue Beiträge

Zurück