Monks,

I am using pp (with the latest version of Strawberry perl 5.24 64bit on Windows) to build an executable out of my code. There are various references to the ability to set the Windows executable header with 10 specific resource tags including LegalCopyright and ProductVersion. One of the references is here: http://search.cpan.org/~autrijus/PAR-0.85_01/script/pp I have installed the latest version of pp and this feature which the docs say is invoked using --info does not exist in my pp.

pp itself works well and produces functional executable for systems without perl installed, but my employer wants the LegalCopyright and ProductVersion to be set. I have tried various external tools like "Resource Hacker", but they seem to mess up the generated executable and I get many of the following messages:

at -e line 631. format error: bad signature: 0x08000000 at offset 11057307 in file my-executable.exe

I suspect the errors have to to with the compressed nature of a pp generated executable, but the bottom line is I need a way of setting these Windows executable resource tags.

Thanks in advance,

Michael McGill

In reply to pp and setting Windows LegalCopyright in executable header by mpmcgill

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.