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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Option to run as a service or an app

Status
Not open for further replies.

Guern

Programmer
Jun 22, 2001
91
GB
Hi,

I can build a vb app or service without difficulties, but I want to emulate some of the other utilties I have seen where you can distribute just one app but with the option to 'run as a service'.

Does anyone have any ideas how to do this with a vb.net app?

The App I have requires user interaction, but it is important it start up at machine start. The user however might not always want to run it as a service, but a desktop app. I'd like to just distribute 1 app with a self installing service if that makes sense?

Thanks.

Paul Smith
Microtech Limited
 
Well you've kind of answered your own question here. You can't run you application in it's current form as a service if it requires user interaction.

A service normally has no interface associated with it, and or requires no user interaction. If it only needs start up parameters then these can be passed on the command line at start up.


woogoo
 
Check out the "Passing Parameter to Application" post in this forum, it might help.

Auguy
Northwest Ohio
 
Yeah... you would most likely need a 2 part approach. Create the service, then create an interface that communicates with that active service.

"If I were to wake up with my head sewn to the carpet, I wouldn't be more surprised than I am right now.
 
What are some of the best ways to interface a service with a user app?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top