.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "EXE_UPDATE 1p" .TH EXE_UPDATE 1p "2022-08-14" "perl v5.34.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" exe_update \- Modify windows executable files .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBexe_update\fR [ \fB\-\-gui\fR | \fB\-\-console\fR ] [ \fB\-\-icon\fR \fIiconfile\fR ] [ \fB\-\-manifest\fR \fImanifestfile\fR ] [ \fB\-\-info\fR \fIkey=value;...\fR ] \fIexefile\fR .SH "DESCRIPTION" .IX Header "DESCRIPTION" This program rewrites \s-1PE\s0 headers in a Windows executable file. It can change whether the executable runs with a console window, as well as setting the icons, manifest and version information associated with it. In general, a \s-1PE\s0 file must have an existing resource section or you cannot add icons, manifests or version info. However, on Win32 platforms a new resource section will be created if none exists. .SH "OPTIONS" .IX Header "OPTIONS" Options are available in a \fIshort\fR form and a \fIlong\fR form. For example, the three lines below are all equivalent: .PP .Vb 3 \& % exe_update \-i new.ico input.exe \& % exe_update \-\-icon new.ico input.exe \& % exe_update \-\-icon=new.ico input.exe .Ve .IP "\fB\-c\fR, \fB\-\-console\fR" 4 .IX Item "-c, --console" Set the executable to always display a console window. .IP "\fB\-g\fR, \fB\-\-gui\fR" 4 .IX Item "-g, --gui" Set the executable so it does not have a console window. .IP "\fB\-i\fR, \fB\-\-icon\fR=\fI\s-1FILE\s0\fR" 4 .IX Item "-i, --icon=FILE" Specify an icon file (in \fI.ico\fR, \fI.exe\fR or \fI.dll\fR format) for the executable. .IP "\fB\-m\fR, \fB\-\-manifest\fR=\fI\s-1FILE\s0\fR" 4 .IX Item "-m, --manifest=FILE" Specify a manifest file in \fI.xml\fR format for the executable. .IP "\fB\-N\fR, \fB\-\-info\fR=\fIKEY=VAL\fR" 4 .IX Item "-N, --info=KEY=VAL" Attach version information for the executable. The name/value pair is joined by \f(CW\*(C`=\*(C'\fR. You may specify \f(CW\*(C`\-N\*(C'\fR multiple times, or use \f(CW\*(C`;\*(C'\fR to link several pairs. .Sp These special \f(CW\*(C`KEY\*(C'\fR names are recognized: .Sp .Vb 3 \& Comments CompanyName FileDescription FileVersion \& InternalName LegalCopyright LegalTrademarks OriginalFilename \& ProductName ProductVersion .Ve .IP "\fB\-A\fR, \fB\-\-manifestargs\fR=\fIKEY=VAL\fR" 4 .IX Item "-A, --manifestargs=KEY=VAL" As an alternative to specifying a manifest file, specify manifest attributes. The name/value pair is joined by \f(CW\*(C`=\*(C'\fR. You may specify \f(CW\*(C`\-A\*(C'\fR multiple times, or use \f(CW\*(C`;\*(C'\fR to link several pairs. This option may be preferable to using a manifest file as these attributes will be combined with any existing manifest that may be in the executable. .Sp These special \f(CW\*(C`KEY\*(C'\fR names are recognized: .Sp .Vb 2 \& ExecutionLevel UIAccess ExecName Description \& CommonControls Version .Ve .Sp The CommonControls key is a simple boolean value to indicate that the Common Controls Version 6.0.0.0 dependency should be added to the manifest. .Sp e.g .Sp \&\-\-manifestargs=\*(L"ExecutionLevel=requireAdministrator;ExecName=My.App;CommonControls=1\*(R" \&\-\-manifestargs=\*(L"Version=1.3.6.7895;UIAccess=false\*(R" .SH "AUTHORS" .IX Header "AUTHORS" Audrey Tang .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright 2004, 2006, 2010 by Audrey Tang . .PP This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. .PP See