VMware Cloud Community
jonmarsh
Enthusiast
Enthusiast

Spawning an executable during post installation action pauses the installation

Our package contains a mixture of DLL and executables. One of the executable has to be pre-launched to be a listener service. As part of post installation action --> system action ----> run program the required executable is attached.  The built is done and during test run, installation pauses until the spawned executable is closed.

However our requirement is to have the spawned process to run in the background and installation completes. Any pointers to resolve the issue would be appreciated

0 Kudos
2 Replies
michieldhont_
Hot Shot
Hot Shot

You can run an application in the background appending "&" to the arguments, similar to how it is done on Unix, so the installation can continue successfully without waiting for the application ends. For example:

       <runProgram progressText="Launch ${project.fullName}" >
           <program>${installdir}/bin/app.exe</program>
           <programArguments>&amp;</programArguments>
       </runProgram>

Please note that the "&" needs to be written in XML escape sequence.

Regards,

Michiel

jonmarsh
Enthusiast
Enthusiast

Thanks, It worked.

Tags (1)
0 Kudos