I'm programming quite simple Windows Service using C# 2005. I also made
setup for it into same solution.
When I run setup to install service, it's going fine into C:\Program
Files\MyCompany\My Service, and Event Log tells...
Event Type: Information
Event Source: MsiInstaller
Event Category: None
Event ID: 11707
Date: 11.6.2008
Time: 10:37:28
User: ...\...
Computer: MYCOMPUTER
Description:
Product: My Service -- Installation completed successfully.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
....but when I check Computer Management/Services, it is not there in
services list!
I made earlier another service same way, and it installed that service
into services list fine (but is not starting the service automatically).
When I'm comparing these services, I don't find what is wrong with this
new service intallation.
Anyway I can install this new service into services list using
C:\Program Files\MyCompany\My Service\install.bat-file containing...
@ECHO OFF
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\inst allutil /i MyService.exe
NET START MyService
PAUSE
and then the Event Log tells...
Event Type: Information
Event Source: MyService
Event Category: None
Event ID: 0
Date: 11.6.2008
Time: 10:54:44
User: N/A
Computer: MYCOMPUTER
Description:
Service started successfully.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Any succestions what might be wrong with my installation?