From 2fd9caac500dabf0441487b6a5f78a4de1c58e3b Mon Sep 17 00:00:00 2001 From: Joost Verburg Date: Thu, 1 May 2008 23:47:41 +0000 Subject: [PATCH] use standard function to refresh shell icons git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24577 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/Win32/packaging/installer/include/nsis.nsh | 7 +------ development/Win32/packaging/installer/setup/configure.nsh | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/development/Win32/packaging/installer/include/nsis.nsh b/development/Win32/packaging/installer/include/nsis.nsh index cf38f7acda..7cd2fe0f0e 100644 --- a/development/Win32/packaging/installer/include/nsis.nsh +++ b/development/Win32/packaging/installer/include/nsis.nsh @@ -35,15 +35,10 @@ Configuration of standard NSIS header files !include MultiUser.nsh !include nsDialogs.nsh -#-------------------------------- -# Windows constants - -!define SHCNE_ASSOCCHANGED 0x08000000 -!define SHCNF_IDLIST 0x0000 - #-------------------------------- # Include standard functions !insertmacro GetParent +!insertmacro RefreshShellIcons !insertmacro VersionCompare !insertmacro WordFind2X diff --git a/development/Win32/packaging/installer/setup/configure.nsh b/development/Win32/packaging/installer/setup/configure.nsh index 2b4949d8ca..58e281cbcb 100644 --- a/development/Win32/packaging/installer/setup/configure.nsh +++ b/development/Win32/packaging/installer/setup/configure.nsh @@ -31,7 +31,7 @@ Section -FileAssociations ${REG_FILEEXT} "Content Type" "${APP_MIME_TYPE}" # Refresh shell - System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) (${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)' + ${RefreshShellIcons} SectionEnd