Archive: APP_ASSOCIATE not changing the icon of the file types


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?

I quess you need to refreshes the shell associations.

With FileAssoc.nsh call this macro after creating the associations:

!insertmacro UPDATEFILEASSOC


PaR

That worked! Thanks