Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Remove program from Control panel using C#

Remove program from Control panel using C#

Scheduled Pinned Locked Moved C#
csharptutorialquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ajithevn
    wrote on last edited by
    #1

    Hi I wish to remove installed program from control panel using C# . Can anyone suggest me something how to proceed?

    L 2 Replies Last reply
    0
    • A Ajithevn

      Hi I wish to remove installed program from control panel using C# . Can anyone suggest me something how to proceed?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      To remove application from control panel, just go to C:\WINDOWS\system32 and rename the file with ".CPL" extension. Just write a code to do that.

      1 Reply Last reply
      0
      • A Ajithevn

        Hi I wish to remove installed program from control panel using C# . Can anyone suggest me something how to proceed?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Ajithevn wrote:

        an anyone suggest me something how to proceed?

        Yes. Try to reformulate your question. * Do you want to remove an applet from the control panel (e.g., removing the "Mouse" icon from the folder "Configuration"), OR * Do you want to uninstall an application (e.g., uninstall FireFox), OR * Do you want to remove an entry in the list of installed applications (e.g., when an app is deinstalled, but still listed in the 'installed applications')

        I are Troll :)

        A 1 Reply Last reply
        0
        • L Lost User

          Ajithevn wrote:

          an anyone suggest me something how to proceed?

          Yes. Try to reformulate your question. * Do you want to remove an applet from the control panel (e.g., removing the "Mouse" icon from the folder "Configuration"), OR * Do you want to uninstall an application (e.g., uninstall FireFox), OR * Do you want to remove an entry in the list of installed applications (e.g., when an app is deinstalled, but still listed in the 'installed applications')

          I are Troll :)

          A Offline
          A Offline
          Ajithevn
          wrote on last edited by
          #4

          yes i want to uninstall an application. i.e i have created a setup of my application and intalled it and i want to uninstall that application from another c# application.

          L 1 Reply Last reply
          0
          • A Ajithevn

            yes i want to uninstall an application. i.e i have created a setup of my application and intalled it and i want to uninstall that application from another c# application.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Take a look at the registry, under the key

            HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ie8

            It contains a key called UninstallString, with the value "C:\Windows\ie8\spuninst\spuninst.exe". If you execute that application, it will uninstall IE8. The key also contains the name of the app (e.g., "Windows Internet Explorer 8") and the InstallDate (e.g., 20090806). You'll also find service-packs and the likes if you browse further. Alternatively, you can search the registry for the key "uninst.exe". Not every application will have such an entry. DOS-applications are usually copied, and thus don't register an uninstaller for the app. Also keep in mind that the current user might not have the privileges to uninstall applications. Happy Programming :)

            I are Troll :)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups