Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

pp hide gui system call

by IB2017 (Pilgrim)
on Aug 24, 2018 at 23:04 UTC ( [id://1221066]=perlquestion: print w/replies, xml ) Need Help??

IB2017 has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks

I recently moved from PerlApp to PAR/pp in order to package a GUI tool into an executable for Windows (.exe). I suppress the Shell with the option -g. This works fine. However, the application needs to start other .exe (non Perl) to perform some tasks. To do so I use system. Now my problem: This operation opens a Shell for the time the .exe is executed. How can I suppress this Shell? With my old packager, there was -automatically - no Shell displayed when I called system. Any ideas?

Replies are listed 'Best First'.
Re: pp hide gui system call
by beech (Parson) on Aug 25, 2018 at 00:50 UTC

      Hi

      The post you pointed at has to to with packaging your own Perl script into an executable and hide the console. This is not my problem as it is already working fine. From my no-GUI executable (packed with pp) I start other third-party executables (that I can not manipolate/compile/modify them). When they run, however, they open the console to perform their task. BUT: if I pack my own executable with PerlApp, if this executable starts the same third parties executable, NO console is shown. This is what I am trying to achieve with the same application packed with pp.

      I hope it is more clear now.

        Interesting, can you show how you package a bare minimum test case which replicates what you are seeing with the perlapp build? I'd be interested in seeing a packaged (via perlapp) version of the minimal example, perhaps it's something that can be replicated in another tool.

        The post you pointed at has to to with packaging your own Perl script into an executable and hide the console.

        Hi

        Thats the top of the post, the replies section on the other hand ;)

        Why not try a more Windows-eske vbs solution?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1221066]
Approved by Paladin
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found