@Tom-Elliott Wow, thank you so much! That was incredibly fast, and reboot_rerun is exactly what I was hoping for.
I haven’t been able to test it yet. I’ll update to the dev-branch and fog-agent 0.1.38, set up the return codes as you described and report back how it works.
One thing I noticed while going through our old logs from the 1.5.10 days: TIA Portal sometimes needed up to 8 reboots for a full installation, depending on which components and prerequisites were already present. These logs come from my PowerShell script, which writes its own log for every run. If that’s still the case, the fixed limit of 5 re-runs would probably not be enough, and these installations would end up as failed even though everything is working as intended.
Would it be possible to make the maximum number of reboot_rerun cycles configurable? For example:
a per-snapin setting (e.g. “Max reboot re-runs”), since the number of reboots depends heavily on the installer, and
a global default in the FOG settings (keeping 5 as the default value) for all snapins that don’t override it.
That way the protection against endless reboot loops stays in place, but large multi-stage installers like TIA Portal could get a higher limit (e.g. 10) without affecting other snapins.
Thanks again for all your work, this already helps us a lot!