Windows Service Installation
-
Hi, I am trying create deployment package for my windows service application written in C#. I am able to install my windows service using InstallUtil.exe but when i try to install using deployment project, it installs successfully but does not show up in Service manager list. Can anyone knows what I am missing. Sanjeev
-
Hi, I am trying create deployment package for my windows service application written in C#. I am able to install my windows service using InstallUtil.exe but when i try to install using deployment project, it installs successfully but does not show up in Service manager list. Can anyone knows what I am missing. Sanjeev
OK, I think I can help with this one. In the Solution Explorer, select your deployment project and press "Custom Actions Editor" icon near the top of the Solution Explorer. In the Custom Actions window, select the root node, "Custom Actions". Right-click and choose "Add custom action..." Select the file that you normally run InstallUtil on as the custom action. This will have an effect like running InstallUtil during setup, and do the right think at uninstall time too. Burt Harris