projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
63ebd7f
)
Installer: Force icon cache refresh
author
Soeren Apel
<soeren@apelpie.net>
Sun, 4 Jun 2017 17:28:26 +0000
(19:28 +0200)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Sun, 4 Jun 2017 18:44:34 +0000
(20:44 +0200)
contrib/pulseview_cross.nsi.in
patch
|
blob
|
history
diff --git
a/contrib/pulseview_cross.nsi.in
b/contrib/pulseview_cross.nsi.in
index 14b2807dc936eb54319ad41a656f2c5dd4095185..fe6b7736787cc83a5f3a6122bb623407e652973c 100644
(file)
--- a/
contrib/pulseview_cross.nsi.in
+++ b/
contrib/pulseview_cross.nsi.in
@@
-76,11
+76,18
@@
RequestExecutionLevel admin
# Change this to where-ever you installed libsigrok.a and so on.
!define CROSS "@CMAKE_INSTALL_PREFIX@"
# Change this to where-ever you installed libsigrok.a and so on.
!define CROSS "@CMAKE_INSTALL_PREFIX@"
+# Defines for WinAPI SHChangeNotify call.
+!define SHCNE_ASSOCCHANGED 0x8000000
+!define SHCNF_IDLIST 0
+
# --- Functions ---------------------------------------------------------------
Function register_sr_files
# --- Functions ---------------------------------------------------------------
Function register_sr_files
-${registerExtension} "$INSTDIR\pulseview.exe" ".sr" "sigrok session file"
+ ${registerExtension} "$INSTDIR\pulseview.exe" ".sr" "sigrok session file"
+
+ # Force Windows to update the icon cache so that the icon for .sr files shows up.
+ System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'
FunctionEnd
FunctionEnd