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?