Click here to Skip to main content
15,905,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to uninstall teamviewer on my machine, but it should call from asp.net button click event with c# code behind. How can we do this. Can anyone please help me and send sample code or url?

What I have tried:

I want to uninstall teamviewer on my machine, but it should call from asp.net button click event with c# code behind. How can we do this. Can anyone please help me and send sample code or url?
Posted
Updated 9-Aug-17 22:47pm
v2

1 solution

ASP.NET is used to create web applications. Web applications built from two parts - server and client.
C# code belongs to the server, where HTML/JavaScript/CSS (static, dynamic and generated) belongs to the client...
As TeamViewer installed on the client's machine, you can not access it (or the OS behind it) and initiate an uninstall command from C#, as that's no the server...
Fortunately for you, JavaScript (that runs inside the browser) can not access the OS too (not without the user's acceptance at least), so you are protected from the bad guys who want to damage your computer by installing and uninstalling software...
 
Share this answer
 
Comments
IsaiSelvan 10-Aug-17 2:16am    
thanks for your reply. i want to uninstall any one of the software (my .exe) using windows application not for web application.
Kornfeld Eliyahu Peter 10-Aug-17 2:18am    
So why the ASP.NET button thing? How it is related to WinForm...
Take your time and phrase (and tag) your question (probably a new one) correctly - someone probably will have the answer...
IsaiSelvan 10-Aug-17 5:04am    
ok. i'll check. because some of them given then solution, but it's not working for the appln. thanks for you response. if you find anything let me know.

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