Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: pp hide console GUI (citrusutils cavapackager)

by afoken (Chancellor)
on Apr 22, 2018 at 19:00 UTC ( [id://1213382]=note: print w/replies, xml ) Need Help??


in reply to Re: pp hide console GUI (citrusutils cavapackager)
in thread pp hide console GUI

Win32::Exe has issues for a long time Bug #110605 for Win32-Exe: exe_update produces broken EXE file when ProductName/FileDescription is specified

Well, it should be quite easy to patch the console/windowed flag in the EXE file without Win32::Exe. Wikipedia has a nice overview image in Portable Executable, and Microsoft currently offers a detailed description in PE Format (Windows). The relevant field is located in the optional headers, section Windows-specific fields. Its name is simply "Subsystem" and should contain a value documented in Windows Subsystem. IMAGE_SUBSYSTEM_WINDOWS_GUI = 2 indicates a windowed application, IMAGE_SUBSYSTEM_WINDOWS_CUI = 3 indicates a console application. There are more valid values, including OS/2, POSIX subsystem, drivers, EFI and XBOX stuff.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^3: pp hide console GUI (citrusutils cavapackager)
by Anonymous Monk on Apr 23, 2018 at 06:27 UTC
    Well :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1213382]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-19 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found