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
This commit is contained in:
Joost Verburg 2008-05-01 23:47:41 +00:00
parent ad247d6be1
commit 2fd9caac50
2 changed files with 2 additions and 7 deletions

View File

@ -35,15 +35,10 @@ Configuration of standard NSIS header files
!include MultiUser.nsh !include MultiUser.nsh
!include nsDialogs.nsh !include nsDialogs.nsh
#--------------------------------
# Windows constants
!define SHCNE_ASSOCCHANGED 0x08000000
!define SHCNF_IDLIST 0x0000
#-------------------------------- #--------------------------------
# Include standard functions # Include standard functions
!insertmacro GetParent !insertmacro GetParent
!insertmacro RefreshShellIcons
!insertmacro VersionCompare !insertmacro VersionCompare
!insertmacro WordFind2X !insertmacro WordFind2X

View File

@ -31,7 +31,7 @@ Section -FileAssociations
${REG_FILEEXT} "Content Type" "${APP_MIME_TYPE}" ${REG_FILEEXT} "Content Type" "${APP_MIME_TYPE}"
# Refresh shell # Refresh shell
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) (${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)' ${RefreshShellIcons}
SectionEnd SectionEnd