Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

How to add file version to a executable made from Perl script ?

by samta (Initiate)
on Jan 18, 2012 at 02:45 UTC ( #948468=perlquestion: print w/replies, xml ) Need Help??
samta has asked for the wisdom of the Perl Monks concerning the following question:

HI, I have converted a perl script into an executable using PAR. Not sure how can I add the File version information to the executable. It is usually handled using the resource file or .pro file. How can this be achieved in Perl. Pls help ..
  • Comment on How to add file version to a executable made from Perl script ?

Replies are listed 'Best First'.
Re: How to add file version to a executable made from Perl script ?
by Anonymous Monk on Jan 18, 2012 at 03:32 UTC
    $ perldoc pp |grep -B10 ProductName -N, --info=*KEY=VAL* Add additional information for the packed file, both in "META. +yml" and in the executable header (if applicable). The name/value p +air is joined by "=". You may specify "-N" multiple times, or use ";" + to link several pairs. For Win32 executables, these special "KEY" names are recognize +d: Comments CompanyName FileDescription FileVersio +n InternalName LegalCopyright LegalTrademarks OriginalFi +lename ProductName ProductVersion

    exe_update.pl

      When I try to run the command exe_update.exe, I am getting the following usage message in return, seems I am not using the command in correct manner.

      C:\Working\TEM\Source_Code\PatchMgmtSG\TEMAutomation\fixlettester>exe_update.p--info FileVersion=1.2 FixletTester.exe Usage: exe_update.pl --console --icon file.ico [--manifest file.xm --info key=value --manifestargs key=value file.exe

      Pls suggest ...

        Have a coffe/tea/water break, then read Behind the GUI lives the Shell and the docs again

        I usually use something like this

        #!/usr/bin/perl -- use strict; use warnings; system 'pp', '-x', 'satin.pl', '-o', 'satin.exe', '-N', 'LegalTrademarks=dLegalTrademarks', '-N', 'Comments=dComments', '-N', 'FileVersion=0.6.6.6', '-N', 'ProductVersion=0.6.6.6', '-N', 'OriginalFilename=satin.pl', '-N', 'InternalName=satin.exe', '-N', 'FileDescription=dFileDescription', '-N', 'LegalCopyright=dLegalCopyright', '-N', 'CompanyName=Satin', '-N', 'ProductName=Satin', ;

        Though there are WinXP problems Bug #69570 for Win32-Exe: create_resource_section() fails

        I don't know if http://www.cavapackager.com/ has the same problem, oh well

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://948468]
Approved by McDarren
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2016-09-26 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (491 votes). Check out past polls.