Люди пожалуйста подскажите как запустить Windows Service в 2005 студии.
Я выполняю такие действия:
1. Создаю WindowsService.
2. Добавляю Installer.
3. Билдю это все.
4. После этого делаю в командной строке "installUtil.exe WindowsService.exe"
5. В результате утилита пишет:
Installing service Service1...
Creating EventLog source Service1 in log Application...
An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: Указанная служба уже существует
The Rollback phase of the installation is beginning.
See the contents of the log file for the c:\Documents and Settings\p.stoyanovski
y\Desktop\test\WindowsService2\WindowsService2\bin\Debug\WindowsService2.exe ass
embly's progress.
The file is located at c:\Documents and Settings\p.stoyanovskiy\Desktop\test\Win
dowsService2\WindowsService2\bin\Debug\WindowsService2.InstallLog.
Rolling back assembly 'c:\Documents and Settings\p.stoyanovskiy\Desktop\test\Win
dowsService2\WindowsService2\bin\Debug\WindowsService2.exe'.
Affected parameters are:
logtoconsole =
assemblypath = c:\Documents and Settings\p.stoyanovskiy\Desktop\test\WindowsS
ervice2\WindowsService2\bin\Debug\WindowsService2.exe
logfile = c:\Documents and Settings\p.stoyanovskiy\Desktop\test\WindowsServic
e2\WindowsService2\bin\Debug\WindowsService2.InstallLog
Restoring event log to previous state for source Service1.
The Rollback phase completed successfully.
The transacted install has completed.
The installation failed, and the rollback has been performed.
Подскажите в чем проблема. Пишу сервисы в первый раз.