Click here to Skip to main content
16,016,022 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Sir I Create A software msi or exe on Window Application How we can resisted it as a service on my system please help me its very urgent.... help
Posted
Comments
Krunal Rohit 7-Mar-14 8:59am    
Not clear.

-KR

1 solution

You need to develop a different application, Windows Service. It cannot carry any functionality of Windowed application. In general case, the service works when there is no any desktop, so no UI is possible. If you want some UI supporting your service, it should be yet another application which communicates with your Service using some IPC, for example, named pipes, which can also be done using "classical" remoting or WCF (self-hosted in your service), both can use, for example, the same named pipes mechanism via so-called "IPC" channel.

Please see:
http://en.wikipedia.org/wiki/Windows_Service[^],
http://technet.microsoft.com/en-us/library/cc783643%28v=ws.10%29.aspx[^],
http://msdn2.microsoft.com/en-us/library/ms685141.aspx[^].

If your existing application has thoroughly isolated UI, you can possible refactor it the way to extract some functionality into separate library assemblies, to be used in both service and the Windows application.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900