From bf52ff6a036dee6aef6c59e1cf244bda430ae7cf Mon Sep 17 00:00:00 2001 From: "Vladimir.Orlov" Date: Mon, 7 Nov 2016 18:28:16 +0300 Subject: [PATCH] Win Installer: the reset icon cache is moved to the end of copying data to installation folder. --- build/conf/nsis/idea.nsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/conf/nsis/idea.nsi b/build/conf/nsis/idea.nsi index 97aa7d75c7f4..ce78f3050ca0 100644 --- a/build/conf/nsis/idea.nsi +++ b/build/conf/nsis/idea.nsi @@ -747,8 +747,6 @@ done: ;registration application to be presented in Open With list call ProductRegistration - ;reset icon cache - System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)' !insertmacro MUI_STARTMENU_WRITE_BEGIN Application ; $STARTMENU_FOLDER stores name of IDEA folder in Start Menu, ; save it name in the "MenuFolder" RegValue @@ -844,6 +842,9 @@ skip_properties: AccessControl::GrantOnFile \ "$INSTDIR\bin\$0" "(S-1-5-32-545)" "GenericRead + GenericWrite" ${EndIf} + + ;reset icon cache + System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)' SectionEnd ;------------------------------------------------------------------------------