This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to prompt refresh of Add/Remove Programs
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 09, 2008
09:06 AM
How to prompt refresh of Add/Remove Programs
When you initiate an uninstall via the Add/Remove Programs applet, the display is refreshed after the uninstall and the uninstalled product no longer listed.
If, however, the uninstalled product drives the uninstall of other products also listed in ARP, then those products remain listed until ARP itself is refreshed, such as by closing and re-opening ARP.
Is there any way to prompt the refresh of ARP from within a custom action, so that all the uninstalled products are removed? I'm guessing this would be a SendMessage of some sort, but otherwise don't know where to start.
Thanks!
David Cole
If, however, the uninstalled product drives the uninstall of other products also listed in ARP, then those products remain listed until ARP itself is refreshed, such as by closing and re-opening ARP.
Is there any way to prompt the refresh of ARP from within a custom action, so that all the uninstalled products are removed? I'm guessing this would be a SendMessage of some sort, but otherwise don't know where to start.
Thanks!
David Cole
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 09, 2008
09:41 AM
Hi, David,
Without having tried it, my first guess would be to try calling SHChangeNotify. After that, I'd look into SendMessageTimeout+HWND_BROADCAST+WM_SETTINGCHANGE or suchlike...
Robert
Without having tried it, my first guess would be to try calling SHChangeNotify. After that, I'd look into SendMessageTimeout+HWND_BROADCAST+WM_SETTINGCHANGE or suchlike...
Robert