You are here

Problem with appicon.ico file

13 posts / 0 new
Last post
Peter8087
Offline
Last seen: 4 years 5 months ago
Joined: 2013-07-06 12:43
Problem with appicon.ico file

Why in this appinfo.ini example: https://portableapps.com/development/portableapps.com_format#appinfo
it shows that the path to the icon must be like this: ExtractIcon=App\AppName\AppName.exe

But when i try to create the portable launcher it is looking for the icon file in \App\AppInfo\appicon.ico, and if it is not there it gives error and can not create the portable launcher.

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 13 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
ExtractIcon Deprecated

ExtractIcon is deprecated. You *must* use appicon.ico. Even when ExtractIcon was supported, you still needed an appicom.ico for the launcher. ExtractIcon was only for the platform to display and only used for online installer apps where we couldn't include the icon.

Sometimes, the impossible can become possible, if you're awesome!

Peter8087
Offline
Last seen: 4 years 5 months ago
Joined: 2013-07-06 12:43
I am using this line:

I am using this line: ExtractIcon=App\AppInfo\appinfo.ico

Is that correct?

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 13 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Deprecated

As I said, ExtractIcon is not used any longer and was never used by the PA.c Launcher. Remove that line.

Sometimes, the impossible can become possible, if you're awesome!

Peter8087
Offline
Last seen: 4 years 5 months ago
Joined: 2013-07-06 12:43
Then, do i have to put the

Then, do i have to put the path to the appicon.ico file in appinfo.ini or not?

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 13 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
No

appicon.ico, appicon_16.png, appicon_32.png are in a specific location and automatically used. All 3 are required.

Sometimes, the impossible can become possible, if you're awesome!

Peter8087
Offline
Last seen: 4 years 5 months ago
Joined: 2013-07-06 12:43
What do you mean with specific

What do you mean with specific location?
So far, i have created few portable apps and i always have put only one appicon.ico file, that i am extracting from the program .exe file, in \App\AppInfo and it worked. I also had this line in appinfo.ini - ExtractIcon=App\AppInfo\appinfo.ico, but now i removed the line and recreated the launcher without errors.

Peter8087
Offline
Last seen: 4 years 5 months ago
Joined: 2013-07-06 12:43
I still don't get to what

I still don't get to what specific location are you referring to and why there should be three .ico files. Do you mind to make some clarifications?

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 13 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Spec

It's exactly as laid out in the spec. You place the appicon.ico, appicon_16.png, appicon_32.png etc within the App\AppInfo directory. These should be the icons for your app. If they aren't there, you can't use the PA.c Launcher or PA.c Installer.

Sometimes, the impossible can become possible, if you're awesome!

Peter8087
Offline
Last seen: 4 years 5 months ago
Joined: 2013-07-06 12:43
As i already said i created

As i already said i created few portable apps and i had only appicon.ico file in App\AppInfo directory without the other two files appicon_16.png and appicon_32.png. And i used PAL launcher creator successfully, i don't know why you are saying that i can't use PA.c Launcher.

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 13 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Format

The format requires all 3. I know, because I wrote the specification. While you may be able to use PAL since it only checks for the ICO since it uses it for the compiled launcher, you won't be able to compile it into a PAF installer. The PA.c Installer specifically checks for all 3 and won't package without them. The PA.c Installer uses the 32px PNG for the header of the installer. The PA.c Platform uses the 16px PNG for displaying in the menu. And the PA.c Launcher uses the ICO to compile the AppNamePortable.exe launcher.

So, you need all 3 for a proper PA.c Format app.

Sometimes, the impossible can become possible, if you're awesome!

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 4 months 1 week ago
DeveloperModerator
Joined: 2008-07-24 18:46
PAL

As all 3 are required in order to be in spec, it would be logical to disallow building a launcher without them.

I'm going to take a look, and if they aren't already required in PAL, I'll add a quick check for them.

Peter8087
Offline
Last seen: 4 years 5 months ago
Joined: 2013-07-06 12:43
I am a still noob in this,

I am a still noob in this, but i don't think this is a good idea. I am building portable apps for my self and i don't use PA.c Installer. If you make the PAL creator to require the other two files that is additional work and waste of time to create these files.

Log in or register to post comments