Archive: How to refresh the Control panel after uninstall


How to refresh the Control panel after uninstall
I have programmed an installer that installs and uninstalls several application (a package). When I uninstall all (or several) applications I still see them in the Add/Remove section of the control panel. When I make refresh, they are gone. So everything works fine. The question is can I initiate somehow refresh of the control panel from the uninstaller?


Did you try calling SHChangeNotify with the system plugin?

Or, using COM, you could probably enum the shell windows and refresh any windows with the control panel as the current path

http://blogs.msdn.com/oldnewthing/ar...20/188696.aspx should get you started ;)

IShellView has Refresh() and IShellFolderView has RefreshObject() and RemoveObject() (one of them should work)