473,394 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to unstall a applicaiton with c#

ad
Hi,
How can I unstall a applicaiton with c#
Jun 27 '08 #1
7 1140
"ad" <fl****@wfes.tcc.edu.twwrote in message
news:OO**************@TK2MSFTNGP06.phx.gbl...
How can I unstall a applicaiton with c#
When you say "unstall" do you mean "install" or "uninstall"...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #2
ad
Sorry!
I mean uninstall.

"Mark Rae [MVP]" <ma**@markNOSPAMrae.net>
???????:eP**************@TK2MSFTNGP03.phx.gbl...
"ad" <fl****@wfes.tcc.edu.twwrote in message
news:OO**************@TK2MSFTNGP06.phx.gbl...
>How can I unstall a applicaiton with c#

When you say "unstall" do you mean "install" or "uninstall"...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #3
"ad" <fl****@wfes.tcc.edu.twwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...

[top-posting corrected]
>>How can I unstall a applicaiton with c#

When you say "unstall" do you mean "install" or "uninstall"...?

Sorry!
I mean uninstall.
Can you explain a bit more about what you're trying to do...

Are you saying that you've created an application in C# and want to know how
to create an installation / uninstallation routine for it...?

Or are you saying that you want to uninstall other applications with C#...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #4
ad
Thanks,
I want to uninstall programs wich registerd in windows
"Mark Rae [MVP]" <ma**@markNOSPAMrae.net>
???????:Od****************@TK2MSFTNGP03.phx.gbl...
"ad" <fl****@wfes.tcc.edu.twwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...

[top-posting corrected]
>>>How can I unstall a applicaiton with c#

When you say "unstall" do you mean "install" or "uninstall"...?

Sorry!
I mean uninstall.

Can you explain a bit more about what you're trying to do...

Are you saying that you've created an application in C# and want to know
how to create an installation / uninstallation routine for it...?

Or are you saying that you want to uninstall other applications with
C#...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #5
ad pisze:
I want to uninstall programs wich registerd in windows
Windows ships with a command line utility called msiexec. You can read
about its syntax here:

http://technet.microsoft.com/en-us/l.../bb490936.aspx

After you have figured oout how to solve your problem from the command
line, you can start msiexec from C# code using
System.Diagnostics.Process class.

Best regards!
--
Marcin Hoppe | Blog: http://devlicio.us/blogs/marcin_hoppe
Jun 27 '08 #6
ad
I have find the usage of msiexec.

We can use msiexec /x to uninstall program.

But msiexec /x must followed with package.

How can I uninstall the programs registered in the "add/move program" of
control panel?


"Marcin Hoppe" <ma**********@gmail.com>
???????:uv****************@TK2MSFTNGP04.phx.gbl...
ad pisze:
>I want to uninstall programs wich registerd in windows

Windows ships with a command line utility called msiexec. You can read
about its syntax here:

http://technet.microsoft.com/en-us/l.../bb490936.aspx

After you have figured oout how to solve your problem from the command
line, you can start msiexec from C# code using System.Diagnostics.Process
class.

Best regards!
--
Marcin Hoppe | Blog: http://devlicio.us/blogs/marcin_hoppe

Jun 27 '08 #7
ad pisze:
How can I uninstall the programs registered in the "add/move program" of
control panel?
How do you know which program do you want to uninstall? I assume that
you have a name that is displayed in the Add or Remove Programs applet?

It turns out that you can read the entire uninstall command from Windows
registry (this will also work for applications that were not created
with Windows Installer compatible installation tools).

You should programmatically search all the registry keys under:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr ent Version\Uninstall

When you find a key, whose value DisplayName matches name of the
application you want to uninstall, read the value UninstallString from
the same registry key and start command described by this value using
System.Diagnostics.Process class.

Best regards!
--
Marcin Hoppe
Email: ma**********@gmail.com
Blog: http://devlicio.us/blogs/marcin_hoppe
Jun 27 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: tmb | last post by:
I'm a newbie to Java. At http://java.sun.com/j2se/1.4.2/download.html I see I can download... NetBeans IDE + J2SE SDK as a 'bundle' I beleive is both NetBeans and the Java SDK... My...
0
by: MJ | last post by:
Hi Everyone how do i use DTS namespace in vb.net windows application thanks in advance
0
by: Nigel Bell | last post by:
Hi all Please excuse me if this seems silly.... I've been using the VB6 Package & Deployment Wizard to create a 'CD' version of an Access application based on FE/BE and a rather large number...
1
by: Paul Hoad | last post by:
I'm trying to use MeasureString() to determine the length in pixels of a string However to do I need a System.Drawing.Graphics object to do this I need to create a System.Drawing.Graphics...
2
by: madmike | last post by:
hi, I can't seem to find the right way to simulate a file form post to a web page from a window applicaiton and it seems like there should be an easy way. I can post form variable like this: ...
0
by: DL | last post by:
I have an existing application I'm porting to the Windows PC and PocketPC platforms. The UI will be designed from scratch using Visual Studio .NET tools and C#, but key pieces are written in C++. ...
0
by: Rushi | last post by:
Hi Friends, This is my second post past 5 days....please some one try to help me. I have created an add in C#, which is popup a form on excel. Now my query is, i have a tree control which...
0
by: ELat | last post by:
I am developing a Windows Application in vb.Net that will eventually be accessible via the internet. I have created an XML Web Service which references the Data Access Application Block. I want to...
1
by: Brett Wesoloski | last post by:
Ok in trying to figure out why I could not change teh Applicaiton.Run I found something else that is probably causing it. I left the program as Application.Run(new Login()); then in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.