Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

pp hide gui system call

by IB2017 (Pilgrim)
on Aug 24, 2018 at 23:04 UTC ( #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


      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.


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

        Why not try a more Windows-eske vbs solution?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2021-05-06 16:06 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (77 votes). Check out past polls.