From a0f7aa4fe65c8f6163910adfbb7149006b14b772 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 15 Jun 2015 13:43:29 +0200 Subject: [PATCH] Move NSClient++ installation step after all other wizard steps refs #9263 --- agent/windows-setup-agent/SetupWizard.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/agent/windows-setup-agent/SetupWizard.cs b/agent/windows-setup-agent/SetupWizard.cs index 15952c76a..6186f3311 100644 --- a/agent/windows-setup-agent/SetupWizard.cs +++ b/agent/windows-setup-agent/SetupWizard.cs @@ -176,17 +176,6 @@ namespace Icinga private void ConfigureService() { - if (chkInstallNSCP.Checked) - { - SetConfigureStatus(0, "Waiting for NSClient++ installation to complete..."); - - Process proc = new Process(); - proc.StartInfo.FileName = "msiexec.exe"; - proc.StartInfo.Arguments = "/i \"" + Program.Icinga2InstallDir + "\\sbin\\NSCP-Win32.msi\""; - proc.Start(); - proc.WaitForExit(); - } - SetConfigureStatus(0, "Updating configuration files..."); string output; @@ -260,6 +249,17 @@ namespace Icinga return; } + if (chkInstallNSCP.Checked) + { + SetConfigureStatus(85, "Waiting for NSClient++ installation to complete..."); + + Process proc = new Process(); + proc.StartInfo.FileName = "msiexec.exe"; + proc.StartInfo.Arguments = "/i \"" + Program.Icinga2InstallDir + "\\sbin\\NSCP-Win32.msi\""; + proc.Start(); + proc.WaitForExit(); + } + SetConfigureStatus(100, "Finished."); FinishConfigure(); -- 2.50.1