fog snapins - parallel execution
- FOG Version: 1.2.0
- OS: Ubuntu
- Service Version: latest
- OS: Windows 7
I distribute several snapins to our Windows 7 clients with selfextracting archives and batch scripts on run. When several snapins are being deployed, the fog client executes them parallel at the same time. This leads to errors, when there are multiple msiexec commands running, because only one msiexec install can run at the same time.
Is there a way to tell the fog client oder server only to execute one snapin after the other?
@MarkusK This depends entirely on your snapin, it simply accepts the exit code it gets from the program it is told to run.
If this is not the desired behavior, you need to alter your setup.
@Tom-Elliott that sounds good to me as a concept. But I have the issue, that two selfextracting zips with batch scripts are being executed at the same time.
Does the snapin system already return an exit code 0, when the selfextracting archive is downloaded and not only when the execution of the install script is completed?
In the winrar SFX options I had to set “Setup program/Wait and return exit code”. Now it works. Thanks for the answer, that lead me to the solution.
This post is deleted!
I solved this because it’s not a fog problem.
When several snapins are being deployed, the fog client executes them parallel at the same time.
That’s not a fog issue, that’s your script’s issue. You need to write it so that it waits per-command.
I’m guessing you launch a batch script which launches a msiexec and then closes rather than waiting
I don’t understand.
The snapin system IS one at a time. If your snapins are running in “background” this is a piece of the snapin itself returning an exit code to the client making the client believe it has completed that previous run.