473,503 Members | 2,075 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Uninstall application programmatically

Hi anyone,

I have installed a winforms application vs 2005. It appears in Control Panel
-Add / Remove Programs.

I have another application .NET and I want uninstall the application
installed programatically using only the name of application that appears in
Control Panel -Add /Remove Programas (the product name).

Is it possible ?? Any suggestion about it ? Anyone has any ideas ?

thanks in advance, greetings, regards
--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.com/churrosoft
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

Sep 19 '08 #1
3 8052
you can access the path to the uninstaller from the registry key that
add/remove programs uses. If you know the application global id then it will
be the name of a subkey of
HKLM\Software\Microsoft\Windows\CurrentVersion\Uni nstall
If you dont know that then you will need to look at the DisplayName item in
each of the subkeys in turn to find the one you are looking for, then you can
read the UninstallString item which will be the command you would need to
run to unstall it. It will normally be MSIExec.exe followed by the
installation id, unless the program has a custom non windows installer
uninstall program.

--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Alhambra Eidos Desarrollo" wrote:
Hi anyone,

I have installed a winforms application vs 2005. It appears in Control Panel
-Add / Remove Programs.

I have another application .NET and I want uninstall the application
installed programatically using only the name of application that appears in
Control Panel -Add /Remove Programas (the product name).

Is it possible ?? Any suggestion about it ? Anyone has any ideas ?

thanks in advance, greetings, regards
--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.com/churrosoft
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft
Sep 19 '08 #2
On Sep 19, 1:38*pm, Alhambra Eidos Desarrollo
<AlhambraEidosDesarro...@discussions.microsoft.com wrote:
Hi anyone,

I have installed a winforms application vs 2005. It appears in Control Panel
-Add / Remove Programs.

I have another application .NET and I want uninstall the application
installed programatically using only the name of application that appearsin
Control Panel -Add /Remove Programas (the product name).

Is it possible ?? Any suggestion about it ? Anyone has any ideas ?

thanks in advance, greetings, regards
--http://www.alhambra-eidos.es/web2005/index.htmlwww.kiquenet.com/churrosofthttp://www.setbb.com/putainformatica/viewtopic.php?p=843www.trabajobasura.com/solusoft
Get the uninstallation string from HKLM\Software\Microsoft\Windows
\CurrentVersion\Uninstall\SOFTWARENAME\UninstallSt ring

and load it in a process...

Process p = new Process();
p.StartInfo.Arguments = uninstallstring; //may be some tweaks
required as per your application
p.Start();

-cnu

Sep 19 '08 #3
On Sep 19, 1:38*pm, Alhambra Eidos Desarrollo
<AlhambraEidosDesarro...@discussions.microsoft.com wrote:
Hi anyone,

I have installed a winforms application vs 2005. It appears in Control Panel
-Add / Remove Programs.

I have another application .NET and I want uninstall the application
installed programatically using only the name of application that appearsin
Control Panel -Add /Remove Programas (the product name).

Is it possible ?? Any suggestion about it ? Anyone has any ideas ?

thanks in advance, greetings, regards
--http://www.alhambra-eidos.es/web2005/index.htmlwww.kiquenet.com/churrosofthttp://www.setbb.com/putainformatica/viewtopic.php?p=843www.trabajobasura.com/solusoft
Hope the following link would be helpful

http://bytes.com/forum/thread247471.html

-Cnu
Sep 19 '08 #4

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

Similar topics

4
3544
by: Tom van Stiphout | last post by:
Hi All, Here is my code: Dim appData As New Access.Application appData.Visible = True appData.OpenCurrentDatabase "c:\test\test.mdb", False ' Do my thing with the appData automation...
4
5662
by: Ohad Young | last post by:
Hi, I need to open (launch) an external application from my winform application. The application is not a dot.net application, for example the windows calculator. I'm using the...
5
20372
by: Adam Clauss | last post by:
I am needing to automate some installation tasks. I first need to determine if there is already a version of a program installed. The program appears in the Add/Remove Programs in control panel,...
3
2030
by: Grant | last post by:
Hi there, How would I get my installer to give the option of uninstalling any existing instances of my application? Currently I get an error message if I try to install over an existing...
3
3805
by: buran | last post by:
Dear ASP.NET Programmers, How can I get the name of my application programmatically? Also the path of the application. For instance, if my application is named "buran" and located in...
0
1403
by: Henry Seymour | last post by:
I've developed a Windows application and used the Click-Once Deployment. In that application I would like to allow the user a click-once method of uninstalling it. I do not find an uninstall...
0
1664
by: Henry Seymour | last post by:
I've developed a Windows application and used the Click-Once Deployment. In that application I would like to allow the user a click-once method of uninstalling it. I do not find an uninstall...
5
7422
by: Chandra | last post by:
Hi, Is there a way to execute a python script(file) in ASP.NET application (programmatically)?? Regards, Chandra
1
2002
by: Des Norton | last post by:
Hi NG I have successfully created a setup package for my Windows application. To uninstall the app, a user has to go to control panel --Add/Remove Programs. This effectively calls MsiExec.exe...
0
7067
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...
0
7264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4992
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
371
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.