Multiple file association with different icons

Got a problem you cannot solve? Try here.
Post Reply
alexbt
Posts: 12
Joined: Mon Jul 11, 2011 9:17 am

Multiple file association with different icons

Post 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.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Multiple file association with different icons

Post by giaviv »

Hi,

Just create 4 different icon association - what is the issue?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
alexbt
Posts: 12
Joined: Mon Jul 11, 2011 9:17 am

Re: Multiple file association with different icons

Post 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
Untitled1.png (4.1 KiB) Viewed 6656 times
alexbt
Posts: 12
Joined: Mon Jul 11, 2011 9:17 am

Re: Multiple file association with different icons

Post 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.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Multiple file association with different icons

Post by giaviv »

Great!
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply