use standard function to refresh shell icons

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24576 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Joost Verburg 2008-05-01 23:47:24 +00:00
parent f9e5128e31
commit 21a6136481
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 nsDialogs.nsh
#--------------------------------
# Windows constants
!define SHCNE_ASSOCCHANGED 0x08000000
!define SHCNF_IDLIST 0x0000
#--------------------------------
# Include standard functions
!insertmacro GetParent
!insertmacro RefreshShellIcons
!insertmacro VersionCompare
!insertmacro WordFind2X

View File

@ -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