From 1a95757f46321f0a63687528a87dc1a6870d3c13 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 6 Jun 2013 18:46:37 +0000 Subject: I suspect "ie4uinit" got its name because "mysterious useful undocumented system utility" would have been too obvious. Have UpdateIcons call "ie4uinit -ClearIconCache" and move UpdateIcons to the "-{,Un.}Finally" sections in the installer and uninstaller. svn path=/trunk/; revision=49811 --- packaging/nsis/uninstall.nsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packaging/nsis/uninstall.nsi') diff --git a/packaging/nsis/uninstall.nsi b/packaging/nsis/uninstall.nsi index 2de9e610b3..22ae242d79 100755 --- a/packaging/nsis/uninstall.nsi +++ b/packaging/nsis/uninstall.nsi @@ -133,7 +133,6 @@ Call un.Disassociate DeleteRegKey HKCR ${WIRESHARK_ASSOC} DeleteRegKey HKCR "${WIRESHARK_ASSOC}\Shell\open\command" DeleteRegKey HKCR "${WIRESHARK_ASSOC}\DefaultIcon" -!insertmacro UpdateIcons Delete "$INSTDIR\etc\gtk-2.0\*.*" Delete "$INSTDIR\etc\gtk-3.0\*.*" @@ -285,6 +284,9 @@ SectionEnd Section "-Un.Finally" ;------------------------------------------- SectionIn 1 2 + +!insertmacro UpdateIcons + ; this test must be done after all other things uninstalled (e.g. Global Settings) IfFileExists "$INSTDIR" 0 NoFinalErrorMsg MessageBox MB_OK "Unable to remove $INSTDIR." /SD IDOK IDOK 0 ; skipped if dir doesn't exist -- cgit v1.2.3