in reply to Re: pp and setting Windows LegalCopyright in executable header
in thread pp and setting Windows LegalCopyright in executable header

I just attempted to modify this information in a pp'd binary with Visual Studio 2013 by opening the exe and attempting to edit the VERSION tag information. It works when you check properties of the file, but the file becomes corrupted and no longer Does The Right Thing.

Replies are listed 'Best First'.
Re^3: pp and setting Windows LegalCopyright in executable header
by mpmcgill (Novice) on Dec 07, 2016 at 20:11 UTC

    That is the behaviour I have seen with all the tools for changing the exe header I have tried. The properties change, but the executable becomes corrupted with messages that look like:

    format error: bad signature: 0x00004000 at offset 5069472 in file <my-file>

    Oddly the executable appears to work, but these messages are a problem and may indicate a larger underlying issue.

      You could always hardcode the licensing/copyright etc within the Perl code itself, and display it with a flag:

      perlscript.exe --version

      Possible output:

      (c) 2016 Company, Inc. License: Blah Version: 9999999999999999999999999999999.991/2