Uninstall application programmatically

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?=

    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
    --





  • =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=

    #2
    RE: Uninstall application programmaticall y

    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\M icrosoft\Window s\CurrentVersio n\Uninstall
    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
    try{ Life(); } catch (TooDifficultException) { throw Toys(); }



    "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
    --




    >

    Comment

    • Duggi

      #3
      Re: Uninstall application programmaticall y

      On Sep 19, 1:38 pm, Alhambra Eidos Desarrollo
      <AlhambraEidosD esarro...@discu ssions.microsof t.comwrote:
      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.k iquenet.com/churrosofthttp://www.setbb.com/putainformatica/viewtopic.php?p =843www.trabajo basura.com/solusoft
      Get the uninstallation string from HKLM\Software\M icrosoft\Window s
      \CurrentVersion \Uninstall\SOFT WARENAME\Uninst allString

      and load it in a process...

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

      -cnu

      Comment

      • Duggi

        #4
        Re: Uninstall application programmaticall y

        On Sep 19, 1:38 pm, Alhambra Eidos Desarrollo
        <AlhambraEidosD esarro...@discu ssions.microsof t.comwrote:
        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.k iquenet.com/churrosofthttp://www.setbb.com/putainformatica/viewtopic.php?p =843www.trabajo basura.com/solusoft
        Hope the following link would be helpful



        -Cnu

        Comment

        Working...