Archive: NSIS modifies Icon transparency; Icons are not refreshed


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


try this function

System::Call 'shell32.dll::SHChangeNotify(i 0x08000000,i 0 ,i 0,i 0, i 0)'


Still doesn't work
Strange behaviour! The function still doesn't work. Even if i go manually to the shortcut, path and icon showed are OK but when i press OK nothing happened. The old icon is still there on the Desktop. Even if i uninstall all i have the old icon.
Any idea also about the changing of transparency?
Could be related also with refreshing the icon? I have tried different variants of icons but of course without refreshing the icon i don't see the correct response.
Best regards


Try the following plugin from the Archive.