EXE_UPDATE(1p)
π exe_update β bestie edition π
ok so before we even get into it: this page lives in the User Contributed Perl Documentation section, which means it's the 1p manual, and the star of the show is a lil program called exe_update. she's giving Windows-executable-glow-up, she's giving PE-header-makeover, and she is so ready to help you. let's go π¦
β¨ SYNOPSIS β¨
exe_update [ --gui | --console ] [ --icon iconfile ]
[ --manifest manifestfile ]
[ --info key=value;... ] exefile
πΈ DESCRIPTION πΈ
okay so picture this: exe_update rewrites the PE headers in a Windows executable file. that's the whole vibe. it can flip whether the executable pops open a console window, and it can set the icons, the manifest, and the version info that are attached to it. main character energy, honestly π
but here's the tea β and it's important, so listen: generally speaking, a PE file has to already have an existing resource section, or you literally cannot add icons, manifests, or version info. no resource section, no slay. π
the one exception: on Win32 platforms, a brand new resource section will be created if none exists. so if you're on Win32 you're fine, and if you're notβ¦ bestie, check first. π
π OPTIONS π
every option here comes in a short form and a long form, and they're all equivalent β no favorites. for example, these three lines do the exact same thing:
% exe_update -i new.ico input.exe
% exe_update --icon new.ico input.exe
% exe_update --icon=new.ico input.exe
-c,--consoleβ sets the executable to always display a console window. it's a console girlie now, permanently. π₯οΈ-g,--guiβ sets the executable so it does not have a console window. clean, quiet, mysterious. β¨-i,--icon=FILEβ specify an icon file for the executable. the icon file can be in.ico,.exeor.dllformat. pick your fighter. π-m,--manifest=FILEβ specify a manifest file for the executable, and it's gotta be in.xmlformat. π-N,--info=KEY=VALβ attach version information to the executable. the name and value pair get joined by"=". you can specify-Nmultiple times, or you can use";"to link several pairs together in one go. multitasking icon π
these special KEY names are recognized:
Comments CompanyName FileDescription FileVersion
InternalName LegalCopyright LegalTrademarks OriginalFilename
ProductName ProductVersion
-A,--manifestargs=KEY=VALβ as an alternative to specifying a manifest file, you can specify manifest attributes instead. the name/value pair is joined by"=". you may specify-Amultiple times, or use";"to link several pairs. this option may be preferable to using a manifest file, because these attributes will be combined with any existing manifest that may already be in the executable. so you're adding to the fit, not replacing it π«Ά
these special KEY names are recognized:
ExecutionLevel UIAccess ExecName Description
CommonControls Version
the CommonControls key is a simple boolean value, and it indicates that the Common Controls Version 6.0.0.0 dependency should be added to the manifest. yes queen, add the dependency. β
e.g.
--manifestargs="ExecutionLevel=requireAdministrator;ExecName=My.App;CommonControls=1"
--manifestargs="Version=1.3.6.7895;UIAccess=false"
π AUTHORS π
Audrey Tang <cpan@audreyt.org> β we stan, no cap. π
π COPYRIGHT π
Copyright 2004, 2006, 2010 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. so go forth and remix, respectfully. β¨
See <http://www.perl.com/perl/misc/Artistic.html> β the whole legal moment, go read it if you want the fine print bestie π§
and that's the page!! this wasperl v5.34.0, dated2022-08-14, filed underEXE_UPDATE(1p). thank you for coming to my ted talk, ily, go update some executables ππ¦πΈ
π¦ where this page comes from
- debian bookworm: libwin32-exe-perl 0.17-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libwin32-exe-perl 0.17-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libwin32-exe-perl 0.17-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libwin32-exe-perl 0.17-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libwin32-exe-perl 0.17-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms