Using Par::Packer I've generated a standalone executable for a script that needs to run on systems with no Perl installed. pp is using the visual C++ compiler.

The executable runs fine on a dev machine with ActiveState 5.10 installed. On the first test machine (same OS as the dev machine) I'm getting side by side errors.

The first error was

Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error message: The referenced assembly is not installed on your system.

I assumed this was because the test machine didn't have the visual c++ libraries installed.

Once I put the libraries from the /redist/x86/Microsoft.VC90.CRT directory in the same directory as the executable I got this error

Syntax error in manifest or policy file "E:\Microsoft.VC90.CRT.MANIFEST" on line 4

The manifest file in question was taken directly from the redist directory in visual c++. Here's the manifest file:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1. +0"> <noInheritable></noInheritable> <assemblyIdentity type="win32"name="Microsoft.VC90.CRT"version="9. +0.30729.1" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e +3b"></assemblyIdentity> . . (Truncated for brevity) . . </file> </assembly>

Has anyone else encountered these issues?

Update: Turns out installing the Visual C++ 2008 Redistributable solves the issues. Now if only there were a Perl module to create an installer to install the Redistributable package with the executable...


In reply to Side by side errors in pp generated exe by spivey49

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.