Connecting Tech Pros Worldwide Forums | Help | Site Map

Uninstall application programmatically

=?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?=
Guest
 
Posts: n/a
#1: Sep 19 '08
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


=?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=
Guest
 
Posts: n/a
#2: Sep 19 '08

re: Uninstall application programmatically


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:
Quote:
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
>
Duggi
Guest
 
Posts: n/a
#3: Sep 19 '08

re: Uninstall application programmatically


On Sep 19, 1:38*pm, Alhambra Eidos Desarrollo
<AlhambraEidosDesarro...@discussions.microsoft.com wrote:
Quote:
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

Duggi
Guest
 
Posts: n/a
#4: Sep 19 '08

re: Uninstall application programmatically


On Sep 19, 1:38*pm, Alhambra Eidos Desarrollo
<AlhambraEidosDesarro...@discussions.microsoft.com wrote:
Quote:
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
Closed Thread