Can't get Windows Service to install properly.

  • Thread starter Thread starter Glen Wolinsky
  • Start date Start date
G

Glen Wolinsky

I have created a new windows service in vb.net. I have created a
project installer and a deployment project as well. However, when I
try and install it, it won't install as a service! It shows up in the
installed applications but doesn't show up in SCM.

When I run the install, I get the service install wizard screens.
Everything proceeds normally except at the end I DON'T get the dialog
to enter username and password (which I want to happen). It completes
installation without errors and even the event log says it installed
correctly. Yet, it is nowhere to be found in the list of services.

I followed the instructions in an msdn article (#317421) on how to
create a setup project. In following the instructions, I even created
a "Hello World"-style (simple) app and it's doing the same thing!

What really gets me is this: I created another win service about 6
months ago following the same procedure. It's installation still
works just fine! It stops and asks me for username and password near
the end and then completes installation. I look in the list of
services and there it is!

This has got me REALLY stumped.

Any help would be grealy appreciated.

Sincerely,
Glen
 
All that UI is just standard installer stuff, it doesn't mean that your
*Service* got installed. What makes that happen is the custom actions,
Install, Commit, Uninstall, Rollback. Without those custom actions you just
get your files copied to the system. Be sure that your deployment project
shows those custom actions.
 
Did you use the InstallUtil.exe utility? That utility program is what puts
the exe into the service pane lists.
 
Back
Top