Multiple file association with different icons

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

Multiple file association with different icons

Postby alexbt » Wed Jan 25, 2012 2:10 am

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

Postby giaviv » Thu Jan 26, 2012 2:44 am

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

Postby alexbt » Thu Jan 26, 2012 3:32 am

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 5514 times

alexbt
Posts: 12
Joined: Mon Jul 11, 2011 9:17 am

Re: Multiple file association with different icons

Postby alexbt » Fri Jan 27, 2012 10:22 am

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

Postby giaviv » Thu Feb 02, 2012 11:55 pm

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


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 71 guests