develooper Front page | perl.par | Postings from September 2008

.exe won't run on other Win32 computers

From:
matt schmalzigan
Date:
September 17, 2008 02:11
Subject:
.exe won't run on other Win32 computers
Message ID:
2331eade0809161438u66cacee7uf97e4c618514eae7@mail.gmail.com
Hi

I am using Strawberry Perl v5.10 on Windows XP v5.1 SP3 and I am trying to
compile a simple script so that it can run on other Windows XP computers.  I
downloaded the modules with cpan.

I typed:
>pp -vo browser.exe browser_script.pl

This generated browser.exe that runs perfectly on my computer.  However, it
does not run as I expect on other Windows computers.  It opens a IE, but it
does not navigate to the URL.  I don't know why.  Thanks for any help you
can provide.

Here is the output from the above command:

C:\strawberry\perl\bin/pp: Packing browser_script.pl
C:\strawberry\perl\bin/pp: Generating a fresh 'parl'.
C:\strawberry\perl\bin/pp: Running parlgWiyOLg.exe -B -Obrowser.exe
ppRNBJQ.par
Packing "Carp.pm"...
Written as "Carp.pm"
Packing "AutoLoader.pm"...
Written as "AutoLoader.pm"
Packing "Carp/Heavy.pm"...
Written as "Carp/Heavy.pm"
Packing "Compress/Raw/Zlib.pm"...
Written as "Compress/Raw/Zlib.pm"
Packing "Compress/Zlib.pm"...
Written as "Compress/Zlib.pm"
Packing "Config.pm"...
Written as "Config.pm"
Packing "Config_heavy.pl"...
Written as "Config_heavy.pl"
Packing "Cwd.pm"...
Written as "Cwd.pm"
Packing "DynaLoader.pm"...
Written as "DynaLoader.pm"
Packing "Errno.pm"...
Written as "Errno.pm"
Packing "Exporter.pm"...
Written as "Exporter.pm"
Packing "Exporter/Heavy.pm"...
Written as "Exporter/Heavy.pm"
Packing "Fcntl.pm"...
Written as "Fcntl.pm"
Packing "File/Basename.pm"...
Written as "File/Basename.pm"
Packing "File/Copy.pm"...
Written as "File/Copy.pm"
Packing "File/Find.pm"...
Written as "File/Find.pm"
Packing "File/Glob.pm"...
Written as "File/Glob.pm"
Packing "File/GlobMapper.pm"...
Written as "File/GlobMapper.pm"
Packing "File/Path.pm"...
Written as "File/Path.pm"
Packing "File/Spec.pm"...
Written as "File/Spec.pm"
Packing "File/Spec/Unix.pm"...
Written as "File/Spec/Unix.pm"
Packing "File/Spec/Win32.pm"...
Written as "File/Spec/Win32.pm"
Packing "File/Temp.pm"...
Written as "File/Temp.pm"
Packing "IO.pm"...
Written as "IO.pm"
Packing "IO/Compress/Adapter/Deflate.pm"...
Written as "IO/Compress/Adapter/Deflate.pm"
Packing "IO/Compress/Base.pm"...
Written as "IO/Compress/Base.pm"
Packing "IO/Compress/Base/Common.pm"...
Written as "IO/Compress/Base/Common.pm"
Packing "IO/Compress/Gzip.pm"...
Written as "IO/Compress/Gzip.pm"
Packing "IO/Compress/Gzip/Constants.pm"...
Written as "IO/Compress/Gzip/Constants.pm"
Packing "IO/Compress/RawDeflate.pm"...
Written as "IO/Compress/RawDeflate.pm"
Packing "IO/Compress/Zlib/Extra.pm"...
Written as "IO/Compress/Zlib/Extra.pm"
Packing "IO/File.pm"...
Written as "IO/File.pm"
Packing "IO/Handle.pm"...
Written as "IO/Handle.pm"
Packing "IO/Seekable.pm"...
Written as "IO/Seekable.pm"
Packing "IO/Uncompress/Adapter/Inflate.pm"...
Written as "IO/Uncompress/Adapter/Inflate.pm"
Packing "IO/Uncompress/Base.pm"...
Written as "IO/Uncompress/Base.pm"
Packing "IO/Uncompress/Gunzip.pm"...
Written as "IO/Uncompress/Gunzip.pm"
Packing "IO/Uncompress/RawInflate.pm"...
Written as "IO/Uncompress/RawInflate.pm"
Packing "List/Util.pm"...
Written as "List/Util.pm"
Packing "Scalar/Util.pm"...
Written as "Scalar/Util.pm"
Packing "SelectSaver.pm"...
Written as "SelectSaver.pm"
Packing "Symbol.pm"...
Written as "Symbol.pm"
Packing "Time/Local.pm"...
Written as "Time/Local.pm"
Packing "UNIVERSAL.pm"...
Written as "UNIVERSAL.pm"
Packing "Win32.pm"...
Written as "Win32.pm"
Packing "XSLoader.pm"...
Written as "XSLoader.pm"
Packing "auto/Compress/Raw/Zlib/autosplit.ix"...
Written as "auto/Compress/Raw/Zlib/autosplit.ix"
Packing "auto/Compress/Zlib/autosplit.ix"...
Written as "auto/Compress/Zlib/autosplit.ix"
Packing "auto/DynaLoader/dl_findfile.al"...
Written as "auto/DynaLoader/dl_findfile.al"
Packing "base.pm"...
Written as "base.pm"
Packing "bytes.pm"...
Written as "bytes.pm"
Packing "constant.pm"...
Written as "constant.pm"
Packing "integer.pm"...
Written as "integer.pm"
Packing "lib.pm"...
Written as "lib.pm"
Packing "overload.pm"...
Written as "overload.pm"
Packing "re.pm"...
Written as "re.pm"
Packing "strict.pm"...
Written as "strict.pm"
Packing "utf8.pm"...
Written as "utf8.pm"
Packing "vars.pm"...
Written as "vars.pm"
Packing "warnings.pm"...
Written as "warnings.pm"
Packing "warnings/register.pm"...
Written as "warnings/register.pm"
Packing "Archive/Zip.pm"...
Written as "Archive/Zip.pm"
Packing "Archive/Zip/Archive.pm"...
Written as "Archive/Zip/Archive.pm"
Packing "Archive/Zip/DirectoryMember.pm"...
Written as "Archive/Zip/DirectoryMember.pm"
Packing "Archive/Zip/FileMember.pm"...
Written as "Archive/Zip/FileMember.pm"
Packing "Archive/Zip/Member.pm"...
Written as "Archive/Zip/Member.pm"
Packing "Archive/Zip/NewFileMember.pm"...
Written as "Archive/Zip/NewFileMember.pm"
Packing "Archive/Zip/StringMember.pm"...
Written as "Archive/Zip/StringMember.pm"
Packing "Archive/Zip/ZipFileMember.pm"...
Written as "Archive/Zip/ZipFileMember.pm"
Packing "PAR.pm"...
Written as "PAR.pm"
Packing "PAR/Dist.pm"...
Written as "PAR/Dist.pm"
Packing "PAR/Filter.pm"...
Written as "PAR/Filter.pm"
Packing "PAR/Filter/PodStrip.pm"...
Written as "PAR/Filter/PodStrip.pm"
Packing "PAR/Heavy.pm"...
Written as "PAR/Heavy.pm"
Packing "PAR/SetupProgname.pm"...
Written as "PAR/SetupProgname.pm"
Packing "PAR/SetupTemp.pm"...
Written as "PAR/SetupTemp.pm"
Packing
"C:\DOCUME~1\MSCHMA~1\LOCALS~1\Temp\par-mschmalzigan\cache-c621e4117c14f34b2f9572cc77be8449637b1410/1230191e.dll"...
Written as "auto/IO/IO.dll"
Packing
"C:\DOCUME~1\MSCHMA~1\LOCALS~1\Temp\par-mschmalzigan\cache-c621e4117c14f34b2f9572cc77be8449637b1410/268c0bc1.dll"...
Written as "auto/Compress/Raw/Zlib/Zlib.dll"
Packing
"C:\DOCUME~1\MSCHMA~1\LOCALS~1\Temp\par-mschmalzigan\cache-c621e4117c14f34b2f9572cc77be8449637b1410/28c63afe.dll"...
Written as "auto/Cwd/Cwd.dll"
Packing
"C:\DOCUME~1\MSCHMA~1\LOCALS~1\Temp\par-mschmalzigan\cache-c621e4117c14f34b2f9572cc77be8449637b1410/479267d3.dll"...
Written as "auto/Win32/Win32.dll"
Packing
"C:\DOCUME~1\MSCHMA~1\LOCALS~1\Temp\par-mschmalzigan\cache-c621e4117c14f34b2f9572cc77be8449637b1410/86facd04.dll"...
Written as "auto/List/Util/Util.dll"
Packing
"C:\DOCUME~1\MSCHMA~1\LOCALS~1\Temp\par-mschmalzigan\cache-c621e4117c14f34b2f9572cc77be8449637b1410/93f7a9e7.dll"...
Written as "auto/File/Glob/Glob.dll"
Packing
"C:\DOCUME~1\MSCHMA~1\LOCALS~1\Temp\par-mschmalzigan\cache-c621e4117c14f34b2f9572cc77be8449637b1410/dc5616b3.dll"...
Written as "auto/Fcntl/Fcntl.dll"

Here is my script if you need it:

#!perl -w
use diagnostics;
use strict;
#use Win32::InternetExplorer::Window;
use Win32::IEAutomation;


while ( 1 )
{
  my $ie = Win32::IEAutomation->new(visible => 1, maximize => 1);

  $ie->gotoURL('http://www.myspace.com/zacknichols2');
  my ($sec, $min, $hour, $day, $mon, $year, $wday, $yday, $isdst) =
localtime( time() ); ## get current min

  my $sleep_time = $min * 60 + 10 * 60;  #add 10 minutes to current minute
of hour

  sleep($sleep_time); #sleep for 10 mins while song plays
  #$ie->Reload();
  $ie->closeIE();
}



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About