Remove program from Control panel using C#
-
Hi I wish to remove installed program from control panel using C# . Can anyone suggest me something how to proceed?
-
Hi I wish to remove installed program from control panel using C# . Can anyone suggest me something how to proceed?
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 :)
-
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 :)
-
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.
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 theInstallDate
(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 :)