By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,871 Members | 2,368 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,871 IT Pros & Developers. It's quick & easy.

Launching Windows Application from a Windows Service

P: 4
Hi,
I have a Windows Application in place.
I am new to Windows Service. So using some online tutorials, I have created a simple Windows Service.
I need to launch this application whenever my service starts.

Can anybody please help me in implementing the Windows Application as a Windows Service. Also let me know if any specific settings need to be done

Thanking you in anticipation.

Awaiting your reply
Dec 18 '08 #1
Share this Question
Share on Google+
3 Replies


Expert 100+
P: 750
PRR
@queries365
Windows service run in their own session.. well before a user logs in.. If you intent to start a process from a windows service ..then it wont be visible to the current user...Try starting a notepad, also specify the username and password... still it should not be invisible to the current user...(for winnt it may be ...for winxp it wont )
Instead you could let the windows service do the work of windows application as long as its not GUI based...

If you are lookin for communication between windows service and win app.. you could use Remoting or you could send command to windows service..
Windows Service
Dec 18 '08 #2

P: 4
Hey DeepBlue,
Thank you for such a quick reply.

My Windows Application is GUI based. But I need to implement it as a Windows Service.
As a matter of fact, my acquaintance had done this implementation a few months back......and believe me, it worked fine.
I am not too sure as to what code he wrote and what settings he made.

So please let me know as to what code I need to write (and/or settings I need to do) so that the application launches as soon as I start the service.

Awaiting your reply
Dec 18 '08 #3

Expert 100+
P: 750
PRR
@queries365
i would advice you to separate service and client application separately... You could start the client app on startup...Use ServiceController to send commands to service from your win app( which is interactive)

Yes you can make Windows service "interactive" (there is an option-> interact with desktop), but personally i would strictly avoid it ...
service

Look at this for interactive desktop
Dec 18 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.