Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

How to change the windows icon of a script compiled with PP ?

( #823968=categorized question: print w/ replies, xml ) Need Help??
Contributed by ZlR on Feb 18, 2010 at 16:26 UTC
Q&A  > programs and processes


The FAQ of PAR FAQ states:
There is a switch that only works on windows, --icon MyIcon.ico. So just use this:
% pp --icon "c:\path to\MyIcon.ico" -o file.exe
And the PAR::Packer FAQ states:
Unlike Perl2EXE, which can use a standard 16-color bitmap as an application icon, PAR requires a true Windows icon file. Download a trial version of Microangelo and use that to create your .ico file. The latest Netpbm tools at has ppmtowinicon, which can take a pbm and convert it to a windows icon. It is open source and has win32 ports. Gimp for Windows can also create Windows icon files
But what is the exact .ico format needed to make it work ?

Answer: How to change the windows icon of a script compiled with PP ?
contributed by ZlR

I've been looking for a way to change the camel icon from pp exe files , and after trying different things i made it work with freeware IcoFX 1.6 by creating a windows icon file with the following icon components :

- XP Colors - 32x32, 32 bits - 16x16, 32 bits

It may be trivial but all other settings i tried failed and that specific info wasn't available anywhere. HTH ;)

Answer: How to change the windows icon of a script compiled with PP ?
contributed by jellisii2

Using GIMP 2.6.11 on windows, I was able to get pp to recognize and use an icon using the following settings:

48x48 canvas size image. I just saved a single image instead of the multilayer image for all the different sizes.

Save as .ico

8 bpp, 1-bit alpha, 256-slot Palette, no PNG compression.

Doesn't quite blend in on windows 7, but at least it's not the camel. PP needs an update to take advantage of the current .ico format, but I'm 99% certain I don't have the chops to do it.

Please (register and) log in if you wish to add an answer

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others drinking their drinks and smoking their pipes about the Monastery: (10)
    As of 2015-12-01 18:51 GMT
    Find Nodes?
      Voting Booth?

      My keyboard shows this many letters:

      Results (25 votes), past polls