[Question] Windows service not found after install
I just wrote a core of a windows service, it doesn't really do anything special, it should execute this line every 5 sec
System.Diagnostics.Trace.Write("Doing something");
So I create a setup for it, and installed it, but i can't find it under
My Computer(Right click) -> Manage->services
I can't find over there but in Control panel -> add/remove programs, it's there. I can uninstall it, i just can't find it or get it do proc.
Can anyone help me?
Re: [Question] Windows service not found after install
You need to create a service installer and install it with the "InstallUtil.exe" utility.
To create the service installer, open up your project, open the service, right click on the open service and choose 'Add installer'.
Fill out the properties as appropriate.
To register your service as a windows service, run InstallUtil <nameofservice>.
You'll need to modify your setup program to run the 'InstallUtil.exe' tool or use any builtin service registration features.
Re: [Question] Windows service not found after install
The InstallUtil produces quite a lot of logs, check it. The installation process perform rollback if something went wrong, so there can be no evidence of installation failure in the system, just in the log.