Re: Incrementing a build number in PerlApp
by Foo JH other posts by this author
Mar 2 2008 9:17AM messages near this date
RE: Incrementing a build number in PerlApp
|
RE: Incrementing a build number in PerlApp
Hey Jan,
GetFileVersion() returns the file version, which is not the
ProductVersion that I think everybody uses (including Jenda).
If I am to look at the Version tab on the exe I generated, I see Product
Version listed under 'Other version information'. How can we read this info?
Jan Dubois wrote:
> On Sat, 01 Mar 2008, Foo JH wrote:
>
> > Thanks all for helping me with the buildin number thingy. Just 1 more
> > question:
> > 1. I think I can register the build number, but how do i read it back
> > in my script? Sorry, I've pored through the only docs, but can't
> > find anything. Maybe I missed it somewhere.
> >
>
> Do you mean the build number of the running executable?
> The full path to the current executable is available via PerlApp::exe(),
> and you can get version information with Win32::GetFileVersion():
>
> require Win32;
> my @version = Win32::GetFileVersion(PerlApp::exe());
> print "Version ", join(".", @version), "\n";
>
> Cheers,
> -Jan
>
>
>
_______________________________________________
PDK mailing list
PDK@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Foo JH
Jan Dubois
Jenda Krynicky
Foo JH
huub
Foo JH
Jan Dubois
Foo JH
Jan Dubois
Foo JH
Jan Dubois
Foo JH
|