cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JannyLan
Level 3

How to get a setup luancher file's file version/Product Version by perl/nant scripts-

Hi,

I have the perl scripts like this:

use Win32::File::VersionInfo;

my $ISFile=$ARGV[0];
my $ISFileInfo = GetFileVersionInfo($ARGV[1]);
if ($ISFileInfo)
{
$ARGV[1]=$ISFileInfo->{FileVersion};
}

Then I got the following error:

[exec] Can't locate Win32/File/VersionInfo.pm in @INC (@INC contains: C:/Program Files/Perl/lib C:/Program Files/Perl/site/lib .) at D:\WindowsBuildScripts/support\getInstallFileVersion.pl line 1.
[exec] BEGIN failed--compilation aborted at D:\WindowsBuildScripts/support\getInstallFileVersion.pl line 1.

I tried to copy a VersionInfo.pm from internet to C:/Program Files/Perl/lib/Win32/File folder, but the error is still on.
Labels (1)
0 Kudos
(1) Reply
RobertDickau
Flexera Alumni

(Follow-up of sorts [thread=187472]here[/thread].)
0 Kudos