From: Soeren Apel Date: Sun, 4 Jun 2017 17:27:26 +0000 (+0200) Subject: Installer: Update icon cache also after uninstallation X-Git-Tag: pulseview-0.4.0~42 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ebe0a19686181a2ca873219fce38217856b5d82c;p=pulseview.git Installer: Update icon cache also after uninstallation --- diff --git a/contrib/pulseview_cross.nsi.in b/contrib/pulseview_cross.nsi.in index fe6b7736..8f0a6fe9 100644 --- a/contrib/pulseview_cross.nsi.in +++ b/contrib/pulseview_cross.nsi.in @@ -269,6 +269,8 @@ Section "Uninstall" # Unregister any previously registered file extension(s). ${unregisterExtension} ".sr" "sigrok session file" + # Force Windows to update the icon cache so that the icon for .sr files is reset. + System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)' SectionEnd