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

Windows service started accidently

Status
Not open for further replies.

btaber

Programmer
May 26, 2002
307
US
I have a windows service that I was wondering if it is possible to display a custom error dialog if a user attemts to start the service exe from the command line by accident. As of now is shows "cannot start service from the command line or a debugger bla bla bla". Can this be avoided, maybe just start the main program instead?
 
In order for the service to start another program, the service would have to start. And as you stated, the service can't start in this situation.



I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day! Ye has a choice: talk like a pira
 
Yea, I figured I would not be able to start another program. Can I at least display a msgbox with better information to the user?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top