Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I have a windows service,which is installed in the system.
I have another application which is developed in WPF C#.
Now i need to uninstall the service using a button_click inside this WPF application.
Is it possible?

Thanks in advance for any help...!!!
Posted
Updated 2-Nov-11 22:08pm
v2

it is quite possible... and so simple... follow the link...

http://suryaprakashj.blogspot.com/2008/10/install-uninstall-start-stop-windows.html[^]


http://stackoverflow.com/questions/358700/how-to-install-a-windows-service-programmatically-in-c[^]

some one has really solved this....

mark as answer if solves your problem...
 
Share this answer
 
v3
Comments
CGN007 2-Nov-11 8:21am    
my service is installed using WIX installer..
 
Share this answer
 
Comments
CGN007 2-Nov-11 5:44am    
which needs IDictionary savedState as parameter?
How can i pass this,as my service is installed using WIX installer..?
please check this...

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