Issue #1798732 by sun, Dean Reilly, mbrett5062, chx, westie, alexpott,...
Issue #1798732 by sun, Dean Reilly, mbrett5062, chx, westie, alexpott, juanolalla, Mark Carver, catch, jthorson, cam8001, Berdir: Convert install_task(), install_time() and install_current_batch() to use the state system.