Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: pp hide console GUI (citrusutils cavapackager)

by Anonymous Monk
on Apr 21, 2018 at 23:12 UTC ( [id://1213358]=note: print w/replies, xml ) Need Help??


in reply to 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

But

To change pp icon uninstall PAR::Packer, replace .ico file, reinstall PAR::Packer

citrusperl/cavapackager support making exe with .ico file changing, and without using Win32::Exe (IIRC)

See createdistribution/createexecutable or cavapackager

To hide children use  use Win32 qw(SW_HIDE); Win32::SetChildShowWindow(SW_HIDE); Wperl.exe fails with Tk + piped process ( Win32 )

Replies are listed 'Best First'.
Re^2: pp hide console GUI (citrusutils cavapackager)
by afoken (Chancellor) on Apr 22, 2018 at 19:00 UTC
    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". ;-)
      Well :)
Re^2: pp hide console GUI (citrusutils cavapackager)
by Anonymous Monk on Apr 22, 2018 at 09:38 UTC

    Citrusperl/Cavapackager: never been able to match the right citrusperl with cavapackager. Cavapackager always complained that perl - no matter which version I installed and set in cavapackager - was not compatible...

      Cool story

        If you give me the URL of citrusperl working with cavapackager, I'll be happy to give it a try again.

Log In?
Username:
Password:

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

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

    No recent polls found