I am using AccExplorer to identify the Name and Class Name. Actually, I did uninstall program via Registry, however, the behavior could be a little difference between them, like:
If I uninstall program from Registry, the program won't delete it's folder itself. That the reason why I am trying to do so that way. Thanks again. Vince On Fri, Apr 17, 2009 at 4:29 PM, Tim Roberts <t...@probo.com> wrote: > wensi liu wrote: > > > > I wrote code blow for trying uninstall program form the control panel. > > Somehow the code doesn't work. > > Right. This is doomed to failure, for reasons very similar to your IE > troubles. The Add/Remove Programs control panel does not use child > windows to host its controls. Almost all of the window, including the > thing that looks like a big combo box, is just drawn onto the window > background at WM_PAINT time. The only real control in the whole window > is the combo box for choosing the sort order. > > Don't you have a tool line WinSpectre or SpyXX for looking at window > structure? They would help you find out things like this. > > In this particular case, this wouldn't be the right way to do this task, > anyway. That control panel gets its information from the Uninstall key > in the registry, and you can go read that just as easily as it can. Go > check here: > HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall > Every subkey represents an app or update that can be uninstalled, and > each key contains an UninstallString value that gives you the command to > execute to do the uninstall. > > -- > Tim Roberts, t...@probo.com > Providenza & Boekelheide, Inc. > > _______________________________________________ > python-win32 mailing list > python-win32@python.org > http://mail.python.org/mailman/listinfo/python-win32 >
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32