Page 1 of 1
Multiple file association with different icons
Posted: Wed Jan 25, 2012 2:10 am
by alexbt
I have four file types and one application to open it all, for each file type I have an icon, so I want to assign for each file type own icon.
In practice to all files is assigned the icon of the last created type.
Can anyone help me.
Thanks.
Re: Multiple file association with different icons
Posted: Thu Jan 26, 2012 2:44 am
by giaviv
Hi,
Just create 4 different icon association - what is the issue?
Re: Multiple file association with different icons
Posted: Thu Jan 26, 2012 3:32 am
by alexbt
I did, but all file types have the same icon.
Bellow is the source code, for each type I've set different icon.
Code: Select all
Create File Type GWMain file with extensions .ELT and associate with program $TARGETDIR$\Bin\main.exe
Create File Type GWMain file with extensions .ELV and associate with program $TARGETDIR$\Bin\main.exe
Create File Type GWMain file with extensions .ELC and associate with program $TARGETDIR$\Bin\main.exe
Create File Type GWMain file with extensions .ELG and associate with program $TARGETDIR$\Bin\main.exe
All file types have the icon of the last created type.
Icon is set as follow:

- Untitled1.png (4.1 KiB) Viewed 6662 times
Re: Multiple file association with different icons
Posted: Fri Jan 27, 2012 10:22 am
by alexbt
The problem is that I'm creating four times the same file type (GWMain) for different file extension, seems each entry overwrite previous.
So I've changed file type name for each file extension.
Code: Select all
Create File Type ELT GWMain file with extensions .ELT and associate with program $TARGETDIR$\Bin\main.exe
Create File Type ELV GWMain file with extensions .ELV and associate with program $TARGETDIR$\Bin\main.exe
Create File Type ELC GWMain file with extensions .ELC and associate with program $TARGETDIR$\Bin\main.exe
Create File Type ELG GWMain file with extensions .ELG and associate with program $TARGETDIR$\Bin\main.exe
Now is working how is expected.
Re: Multiple file association with different icons
Posted: Thu Feb 02, 2012 11:55 pm
by giaviv
Great!