Since the demise of the --icon option inside of pp, I had for some time now been doing the icon-swap with Win32::Exe instead. But now I am finding that that is no longer reliable. For some scripts it works just fine. For others, though, it works just by half. On those where it half-works, the *.exe will actually run, but only after issuing errors at top of console. Those errors seem all to be complaints about the archive itself. And sure enough, if I change the extension from *.exe to *.zip after a Win32::Exe icon-swap, then WinZIP says the archive is corrupt. Then, after I change back, the *.exe once again half-works with errors just as before. It does what I want, but only after a slew of archive-complaints.

format error: bad signature: 0xdd58f7da at offset 5068572 in file C:\Users\gstarl\Desktop\foo.exe at -e line 614.

A whole bunch like that. All different HEX, at different locations, all at line 614. And WinZIP won't open it after the change.

If it were only just for myself, then I could be living with that. But if it were just for myself, I'd leave it as *.pl and not bother creating an *.exe. That is something I only ever do for other people. And the errors lists, however seemingly harmless, will cause alarm in those folks.

So... I was wondering, might there perhaps be away to trick pp itself into using always a different *.ico file, instead of the Camel?

The reason I want that, (aside from vanity) is to flag those *.exe files I've written apart from any that have been downloaded. Since running one on Windows always gives the pop-up warning "May harm your computer," I've gotten folks here to trust the in-house ones which have a non-camel icon.

I've searched my whole PC for every instance of the camel, and replaced it temporarily, trying out pp to see if it got carried through. But not even replacing the pp.ico camel inside of Strawberry itself had no effect. Camels come out the other end, no matter what. I like the camel just fine. I do. But I need to enforce some distinction in-house for scripts that I've written, if only because now folks are used to it.

Since no longer I can change the icon after making the *.exe, is there any way to fool pp into using a different *.ico originally?


In reply to Icon for pp on Strawberry by aplonis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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, details, 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, summary, 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.