NSIS modifies Icon transparency; Icons are not refreshed
To add a specific icon to a shortcut i use the following command:
CreateShortCut "$DESKTOP\Regel.lnk" "$INSTDIR\regel.bat" "" "$INSTDIR\icons\regel.ico" 0 SW_SHOWMINIMIZED
Adding the icon manually to a desktop shortcut makes it to appear corectly. After NSIS instalation the same icon has the background white.
I have also a problem with refreshing the icons.
I have tried this function but it doesn't refresh icons(On Windows 2000):
!define SHCNE_ASSOCCHANGED 0x08000000
!define SHCNF_IDLIST 0
Function RefreshShellIcons
; By jerome tremblay - april 2003
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v \
(${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)'
FunctionEnd
Function .onInstSuccess
call RefreshShellIcons
FunctionEnd
Any idea?
Best regards