Skip to content
⌘ NSIS Forum Archive

APP_ASSOCIATE not changing the icon of the file types

3 posts

hobbes487#

APP_ASSOCIATE not changing the icon of the file types

I am trying to use APP_ASSOCIATE and the problem I am having is that it doesn't give the file types the icon I want. I have tried the following scripts and neither of them give the file types the right icon.

!insertmacro APP_ASSOCIATE "osapp" "OSA.osapp" "Plugin Package" "$INSTDIR\PluginInstaller.exe" "Open" "$INSTDIR\PluginInstaller.exe $\"%1$\""
!insertmacro APP_ASSOCIATE "osapp" "OSA.osapp" "Plugin Package" "$INSTDIR\PluginIcon.ico" "Open" "$INSTDIR\PluginInstaller.exe $\"%1$\""
!insertmacro APP_ASSOCIATE "osapp" "OSA.osapp" "Plugin Package" "$INSTDIR\PluginInstaller.exe,0" "Open" "$INSTDIR\PluginInstaller.exe $\"%1$\""
Any ideas?
{_trueparuex^}#edited
I quess you need to refreshes the shell associations.

With FileAssoc.nsh call this macro after creating the associations:
!insertmacro UPDATEFILEASSOC
PaR