Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# WPF Windows-service
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 1-Nov-11 23:22pm
CGN0071.2K
Edited 2-Nov-11 22:08pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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...
  Permalink  
v3
Comments
CGN007 at 2-Nov-11 8:21am
   
my service is installed using WIX installer..
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
CGN007 at 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)



Advertise | Privacy | Mobile
Web02 | 2.8.140926.1 | Last Updated 3 Nov 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100