---
title: "Uninstalling program using C#."  
description: "Uninstalling program using C#."  
author: "James Smith"  
published: 2011-07-26  
updated: 2011-07-26  
canonical: https://www.mindstick.com/forum/278/uninstalling-program-using-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Uninstalling program using C#.

Hi everyone,\
I have a small question. I want to uninstall [programs](https://www.mindstick.com/forum/157528/how-exceptions-can-be-handled-in-sql-server-programs) using c#. Can any one tell me that how can I perform this task. Like suppose that vlc [player](https://answers.mindstick.com/qa/62213/name-the-cricketer-who-was-named-as-the-player-of-the-tournament-in-cricket-world-cup-2019) is installed in my system. [Now](https://yourviews.mindstick.com/view/81402/it-s-liberals-vs-progressives-in-us-politics-now) what I want using my [program](https://www.mindstick.com/blog/12337/scaling-up-your-mentorship-program) I want to uninstall that vlc player.\
\
Thanks.

## Replies

### Reply by Anonymous User

There is many way to uninstall program in c#. Firstly you will have to find out GUID of that product then you have to use Process class of System.Diagonostic process to call msi.exe and pass it to start method of Process class. \
Like following example will demonstarte\
Process.Start("msiexec /x {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}");\
where xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx represents GUID of that application that you want to uninstall.\
\
Thanks.


---

Original Source: https://www.mindstick.com/forum/278/uninstalling-program-using-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
