473,225 Members | 1,368 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,225 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 1135
"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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.