1. Daniel Vivier
  2. PowerBuilder
  3. Tuesday, 16 October 2018 13:00 PM UTC

I'm setting up some file associations for my PB 2017 application and one thing you can set up is where to find an icon to association with a file extension.

However, I can't see where the 3rd party icon I have configured in my app lives. It is definitely NOT in the main compiled EXE (checked with ResEdit). I compile everything into PBDs.

I tried adding a resource file at the main level of the project (not for any of the PBDs) that contains the name of the icon file, but that doesn't help. The icon is there when I run the app, but not visible in any tools like ResEdit.

Any ideas how I get the icon to be a regular Windows icon resource in the EXE, so things like the file association can see it?

Thanks.

Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 16 October 2018 18:22 PM UTC
  2. PowerBuilder
  3. # Permalink

I wouldn't be surprised that PowerBuilder includes the exe icon in a non-standard way.

You could just deploy the icon file and use that in the association. 

Comment
  1. Roland Smith
  2. Tuesday, 16 October 2018 18:24 PM UTC
I am not aware of a way to include more than one icon in the exe file.
  1. Helpful
  1. Daniel Vivier
  2. Tuesday, 16 October 2018 18:35 PM UTC
Perfect solution, Roland, deploying the icon file and referring to just it in the Filetype\Default Icon key's default value in the registry. THANK YOU.
  1. Helpful
There are no comments made yet.
Joe Hess Accepted Answer Pending Moderation
  1. Tuesday, 16 October 2018 18:27 PM UTC
  2. PowerBuilder
  3. # 1

Are you referring to the icon assigned to the application object? Open your Application painter. Under General Properties, click the Additional Properties button. Navigate to the Icon tab.

 

Comment
  1. Daniel Vivier
  2. Tuesday, 16 October 2018 18:34 PM UTC
I knew where to find that setting. I didn't know where PB actually put the icon - it does not show up as part of my main EXE file when I examine it with a resource editor, and thus I couldn't find a way to assign it to the file association.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.