How to create and install window service on another system
I have created window service on my system and with the help of visual studio command prompt 2010 i have installed it on my system and it is working fine. But now i want to install on another system where i don't have visual studio 2010, i only have .net framework 4.0 on that system hence there is no visual studio command prompt 2010 so how to create setup and deployment so that it should work on that system, if i am not wrong i have to create the setup same as we do for window applications but the question is how to install windows service in order to make it run on another system.


Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jul 13, 2011, 11:42 PM EDT
You can try like,
sc \\computername create yourapp.exe binpath= path\\yourapp.exe type= own start= auto depend= "+TDI Netbios"
Service Controller (SC) you can download freely..
Vijay YadavRank #1,637 · 943 reputationPosted Jul 13, 2011, 11:54 PM EDT
I want to install windows service on client machine. And on that i am going have only .net framework so how to install windows services there?
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jul 14, 2011, 2:26 AM EDT
Vijay YadavRank #1,637 · 943 reputationPosted Jul 14, 2011, 2:51 AM EDT
I have to do this in command prompt of that system? and as you said i have to download the service controller. right?
Vijay YadavRank #1,637 · 943 reputationPosted Jul 14, 2011, 3:08 AM EDT
Can you please send me the link to download Service Controller
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jul 14, 2011, 3:14 AM EDT
Run SC.exe from command line.
Vijay YadavRank #1,637 · 943 reputationPosted Jul 14, 2011, 6:17 AM EDT
I have used setup and deployment method and it s working fine now.. Anyway thanks a lot for your reply!!!