Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Service Install problem

Status
Not open for further replies.

ColdPhreze

Programmer
Apr 15, 2002
93
I've created a working service that I need to package and install with the visual studio installer. I found and followed the instructions at this link , but when I install the setup package, the service is not in the list of Windows services control panel, which is the point of the article... I'm at a loss for a reliable automated solution during install.

I'm using VB.Net 2003 with win xp sp2

Thanks!
 
So noone knows how to properly install a service during deployment!? Documentation on services is very limited... and I couldn't find anything more in MSDN. I'm SOL without a good solution...
 
I assume you are installing this under an account with Administrator privs?

 
Yes. And the executable does appear in the folder I specified for the installation, but it doesn't appear in the services list.

If I subsequently use installutil, it works, but I shouldn't have to do that, and in this deployment need not to have to!

Thanks
 
I figured it out. I didn't do this <stupid me>:
1. In Solution Explorer, right-click the setup project, point to View, then choose Custom Actions.

The Custom Actions editor appears.
2. In the Custom Actions editor, right-click the Custom Actions node and choose Add Custom Action.

The Select Item in Project dialog box appears.
3. Double-click the Application Folder in the list box to open it, select Primary Output from MyNewService (Active), and click OK.

The primary output is added to all four nodes of the custom actions — Install, Commit, Rollback, and Uninstall.

4. In Solution Explorer, right-click the MyServiceSetup project and choose Build.


Link for more info:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top