RefreshShellIcons

From NSIS Wiki

Author: saivert (talk, contrib)


[edit] Description

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

[edit] Usage

  Call RefreshShellIcons

[edit] 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
donate
ads