private void ExecuteBuild() { _buildRunning.Value++; string hostName = HostName.Value; string seedHostName = SeedHostName.Value; UICall(TerminalLines.Clear); var builder = new SetupBuilder(hostName, AddSeed.Value ? seedHostName : null, _config, s => UICall(() => TerminalLines.Add(s)), Context.System, _deploymentApi, _repositoryApi, ActionInvoker); var id = Guid.NewGuid().ToString().Substring(0, 5); _server.AddPendingInstallations(id, builder, AddShortcut); AddShortcut.Set(false); AddSeed.Set(false); HostName.Set(string.Empty); SeedHostName.Set(string.Empty); _buildRunning.Value--; }