RefreshShellIcons

From NSIS Wiki
Jump to navigationJump to search
Author: saivert (talk, contrib)


Description

This function refreshes the shell associations. Do this after setting file associations.

Usage

  Call RefreshShellIcons

The Function

Function RefreshShellIcons
  !define SHCNE_ASSOCCHANGED 0x08000000
  !define SHCNF_IDLIST 0
  System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)'
FunctionEnd