Old 8th October 2009, 07:00   #1
TrifonovS
Senior Member
 
Join Date: Apr 2009
Location: Bulgaria
Posts: 190
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?
TrifonovS is offline   Reply With Quote
Old 8th October 2009, 14:11   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,148
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)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump