If this is for a file you are downloading in the action, be sure to copy it out of the __Downloads folder first and run it from the new location, do it doesn’t keep the download folder locked
I tried to spawn the DataCardUtilitiesServer.exe within a batch file, but couldn’t get that to work. So, I separated the launch of the executable and added the run command to the generated code. This worked! Thanks
override wait
hidden=true
completion=job
wait run.bat
// Launch Data Card Utility - custom because wouldn't work in run.bat - action hangs in running state.
run "C:\Program Files\PhilipsRespironics\Care Orchestrator\Data Card Utilities\DataCardUtilitiesServer.exe"
When you say ‘completion not returning’ do you mean that it installed but that the exit code was interpreted by BES as other than success? That certainly can happen, SWD fixlets by default pass whatever the installer outputs to stderr, but a software developer decides what that is, and BES can’t know every weird thing that might get 2>&1’d, so it really only reliably works with msiexec let’s be real.
By default the ‘wait’ command spawns a child process, waits for the process to complete, and provides the process return code back to the BES Client where it can be referenced as ‘exit code of action’.
In contrast ‘run’, by default, creates a new detached process, does not wait for the process to complete, and continues running the next ActionScript command (or completing the action) while the spawned process may continue running in the background. When using the ‘run’ method we do not have access to the spawned process’ return code (and in fact that process might still be running after the Action completes).
I’d have to check the behavior in your instance, though, as you are overriding the defaults with the ‘override’ command. I’m not certain of the behavior of ‘run’ with ‘completion=job’. I’m also not sure I understand from your posting which behavior you are seeing, and what behavior you expect to see.