Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

#-------------------------------------------------------------------------------
#   Documentation
#

=pod

=for htmltoc    FAQ::Windows::Add an icon to an EXE

=head1 NAME

How to add an icon to a Windows Executable

=head1 SYNOPSIS

The following fragment uses a JATS provided tool to create a simple Resource
file that contains version information and an icon. The icon will appear in
Windows Explorer displays.

    # In the build.pl file
    #   Create a resource file
    #
    BuildVersion ( '--Style=WinRC', '--File=MyRes.rc',
                                    '--Comment=This is a comment',
                                    '--Description=This is a description',
                                    '--Icon=ProgIcon.ico'
                                    );

    # In a makefile.pl
    #   Build a program
    #
    Prog            ( '*', 'MyProg', @OBJS );
    Prog            ( '*', 'MyProg', '--Resource=MyRes.rc' );