Move NSClient++ installation step after all other wizard steps

refs #9263
This commit is contained in:
Gunnar Beutner 2015-06-15 13:43:29 +02:00
parent d904e171a5
commit a0f7aa4fe6
1 changed files with 11 additions and 11 deletions

View File

@ -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();