Windows Services na WinXP

0

Witam,

Mam problem z uruchomieniem prostej usługi na Windows XP.
Po skompilowaniu i zarejestrowaniu pliku exe narzędziem installutil usługa nie jest niewidoczna
w oknie: Mój komputer - >Zarządzaj->Usługi.

Logi z programu installutil:


C:\Documents and Settings\Pawel\Moje dokumenty\Visual Studio 2005\Projects\mcWin
dowsService\mcWindowsService\bin\Debug>installutil mcWindowsService.exe
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.1433
Copyright (c) Microsoft Corporation.  All rights reserved.


Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\Documents and Settings\Pawel\Moje do
kumenty\Visual Studio 2005\Projects\mcWindowsService\mcWindowsService\bin\Debug\
mcWindowsService.exe assembly's progress.
The file is located at C:\Documents and Settings\Pawel\Moje dokumenty\Visual Stu
dio 2005\Projects\mcWindowsService\mcWindowsService\bin\Debug\mcWindowsService.I
nstallLog.
Installing assembly 'C:\Documents and Settings\Pawel\Moje dokumenty\Visual Studi
o 2005\Projects\mcWindowsService\mcWindowsService\bin\Debug\mcWindowsService.exe
'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\Documents and Settings\Pawel\Moje dokumenty\Visual Studio 2
005\Projects\mcWindowsService\mcWindowsService\bin\Debug\mcWindowsService.exe
   logfile = C:\Documents and Settings\Pawel\Moje dokumenty\Visual Studio 2005\P
rojects\mcWindowsService\mcWindowsService\bin\Debug\mcWindowsService.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found
 in the C:\Documents and Settings\Pawel\Moje dokumenty\Visual Studio 2005\Projec
ts\mcWindowsService\mcWindowsService\bin\Debug\mcWindowsService.exe assembly.

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the C:\Documents and Settings\Pawel\Moje do
kumenty\Visual Studio 2005\Projects\mcWindowsService\mcWindowsService\bin\Debug\
mcWindowsService.exe assembly's progress.
The file is located at C:\Documents and Settings\Pawel\Moje dokumenty\Visual Stu
dio 2005\Projects\mcWindowsService\mcWindowsService\bin\Debug\mcWindowsService.I
nstallLog.
Committing assembly 'C:\Documents and Settings\Pawel\Moje dokumenty\Visual Studi
o 2005\Projects\mcWindowsService\mcWindowsService\bin\Debug\mcWindowsService.exe
'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\Documents and Settings\Pawel\Moje dokumenty\Visual Studio 2
005\Projects\mcWindowsService\mcWindowsService\bin\Debug\mcWindowsService.exe
   logfile = C:\Documents and Settings\Pawel\Moje dokumenty\Visual Studio 2005\P
rojects\mcWindowsService\mcWindowsService\bin\Debug\mcWindowsService.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found
 in the C:\Documents and Settings\Pawel\Moje dokumenty\Visual Studio 2005\Projec
ts\mcWindowsService\mcWindowsService\bin\Debug\mcWindowsService.exe assembly.
Remove InstallState file because there are no installers.

The Commit phase completed successfully.

The transacted install has completed.

Usługę pisałem na podstawie : http://www.c-sharpcorner.com/UploadFile/mahesh/window_service11262005045007AM/window_service.aspx

Z góry dziękuję za pomoc

Paweł

0
pawel4589 napisał(a)

Witam,

...
usługa nie jest niewidoczna
...

Powinno być jest niewidoczna

0

Zwróć uwagę na trzecią linię raportu:

Remove InstallState file because there are no installers.

Coś schrzaniłeś w instalerze i dlatego twoja usługa się nie zainstalowała.

0

Daj kod

1 użytkowników online, w tym zalogowanych: 0, gości: 1