++ed by:

2 PAUSE users
2 non-PAUSE users.

Steffen Müller
and 1 contributors


Win32::Exe - Manipulate Win32 executable files


This document describes version 0.10 of Win32::Exe, released January 14, 2007.


    use Win32::Exe;
    my $exe = Win32::Exe->new('c:/windows/notepad.exe');

    # Get version information
    print $exe->version_info->get('FileDescription'), ": ",
        $exe->version_info->get('LegalCopyright'), "\n";

    # Dump icons in an executable
    foreach my $icon ($exe->icons) {
        printf "Icon: %s x %s (%s colors)\n",
               $icon->Width, $icon->Height, 2 ** $icon->BitCount;

    # Import icons from a .exe or .ico file and writes back the file
    $exe->update( icon => '/c/windows/taskman.exe' );

    # Change it to a console application, then save to another .exe
    # Add a manifest section
    $exe->update( manifest => $mymanifestxml );
    # or a default
    $exe->update( defaultmanifest => 1 );


This module parses and manipulating Win32 PE/COFF executable headers, including version information, icons and other resources.

More documentation will be provided in due time. For now, please look at the test files in the source distributions t/ directory for examples of using this module.


Audrey Tang <cpan@audreyt.org>

Mark Dootson

Steffen Mueller <smueller@cpan.org>


Copyright 2004-2007 by Audrey Tang <cpan@audreyt.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html