Results 1 to 6 of 6

Thread: [RESOLVED][2005] File Icons

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    Resolved [RESOLVED][2005] File Icons

    I'm trying to create file associations for 2 file types if the user checks the box. This works just fine in Inno Setup.

    What I do need to know is how to assign multiple icons to an EXE. It's kind of hard to explain. For example, when you go to Change Icon and you select TestApp.exe it shows a list of icons inside that EXE. My problem is that it only shows the main icon I used under My Project -> Application -> Icon:



    The above image shows what icons I have listed in the application icon field, but when I compile and go to see what icons I can use it only shows the default:
    Last edited by tylerm; Jan 24th, 2007 at 07:06 PM.

  2. #2
    Fanatic Member
    Join Date
    Aug 2006
    Location
    In my head
    Posts
    913

    Re: [2005] File Icons

    I am not sure if you can change icons after the .exe is created......Could you create an imagelist and add the icon pictures there? Then have a form or panel with images set to each picture in your image list. Once they select a picture, then maybe you could set the form's Icon property directly so long as they are also in your resource list??

    Not sure, doin this from top of my head....

    D
    Platforms of choice: Visual Studio 2005/2008 Professional : Visual Studio 2010 Enterprise : PHP - Notepad++/WAMP

    Please Rate If I helped you.
    Please remember to mark threads as closed if your issue has been resolved.

    Reserved Words in Access | Connection Strings

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    Re: [2005] File Icons

    I don't want to change the EXE's icon. I guess I explained this wrong. When I was working with Inno Setup, it works like this:
    Root: HKCR; Subkey: TestApp\DefaultIcon; ValueType: string; ValueName: ; ValueData: {app}\TestApp.exe,0

    The last 0 means the first icon in the EXE. 1 would be the second icon.

    How can I assign multiple icons in an executable so for one file type I can set TestApp.exe,1 and for another file type, TestApp.exe,2 while keeping the visible EXE icon as 0.

    Like this:

  4. #4
    Frenzied Member zuperman's Avatar
    Join Date
    Dec 2000
    Location
    Portugal
    Posts
    1,033

    Re: [2005] File Icons


  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    Re: [2005] File Icons

    That worked perfectly. Just incase you are all wondering:

    Open your .vbproj and replace:

    <ApplicationIcon></ApplicationIcon>

    with:

    <Win32Resource>youResourceFile.res</Win32Resource>

    Final Result:

  6. #6
    Frenzied Member zuperman's Avatar
    Join Date
    Dec 2000
    Location
    Portugal
    Posts
    1,033

    Re: [2005] File Icons

    dont forget to mark this thread as Resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width