diff --git a/Updater/Update-Service.ps1 b/Updater/Update-Service.ps1 index 574938bb3edac14711995dcaf65a6c7b4871dac1..64f0cadc665daec1b7235e8fede5d0b294e1b696 100644 --- a/Updater/Update-Service.ps1 +++ b/Updater/Update-Service.ps1 @@ -31,7 +31,6 @@ function ServiceIsRunning([string]$ServiceName) { function ServiceIsBusy { - $StatusXml = "$($InstallationPath)\status.xml" try { [xml]$XML = Get-Content $StatusXml -ErrorAction Stop # careful, we need a string comparison here: @@ -551,6 +550,8 @@ $ServiceRunningBefore = ServiceIsRunning $ServiceName $ConfigPath = "$($InstallationPath)\conf" $LogPath = "$($InstallationPath)" +$StatusXml = "$($InstallationPath)\status.xml" + $UpdPathConfig = "$($UpdateSourcePath)\Configs" $UpdPathMarkerFiles = "$($UpdateSourcePath)\Service\UpdateMarkers"