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