I'm using the following code.
The icon gets displayed fine on my pc but on others it doesn't. I had thought it was because of the hard coded path, but looking at examples on this forum it should work?
WriteRegStr HKCR ".mask" "" "Kids Mask Factory Mask File"
WriteRegStr HKCR "Kids Mask Factory Mask File" "" "Kids Mask Factory Mask File"
WriteRegStr HKCR "Kids Mask Factory Mask File\DefaultIcon" "" "D:\RBCode\KidsMaskPrint\DocumentImageBuild\icon.ico"
WriteRegStr HKCR "Kids Mask Factory Mask File\Shell\Open\Command" "" '"$INSTDIR\kidsmaskfactory.exe" %1'
!define SHCNE_ASSOCCHANGED 0x8000000
!define SHCNF_IDLIST 0
System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'
Any ideas?