windows: Missed adding 'refresh-sh.nsh'
authorKeith Packard <keithp@keithp.com>
Thu, 19 Jun 2014 03:35:12 +0000 (20:35 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 19 Jun 2014 03:35:12 +0000 (20:35 -0700)
This script forces windows explorer to reload icons.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/Instdrv/NSIS/Includes/refresh-sh.nsh [new file with mode: 0644]

diff --git a/altosui/Instdrv/NSIS/Includes/refresh-sh.nsh b/altosui/Instdrv/NSIS/Includes/refresh-sh.nsh
new file mode 100644 (file)
index 0000000..23d8e5e
--- /dev/null
@@ -0,0 +1,14 @@
+!define SHCNE_ASSOCCHANGED 0x08000000
+!define SHCNF_IDLIST 0
+Function RefreshShellIcons
+  ; By jerome tremblay - april 2003
+  ${DisableX64FSRedirection}
+  System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)'
+FunctionEnd
+
+Function un.RefreshShellIcons
+  ; By jerome tremblay - april 2003
+  ${DisableX64FSRedirection}
+  System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)'
+FunctionEnd