diff --git a/Updater/Update-Service.ps1 b/Updater/Update-Service.ps1 index cb0190bc16886b94fbefcdb07e420a2b64100fd7..8ccaa6ba4bfb10d991771809df5385adb5ee9f5c 100644 --- a/Updater/Update-Service.ps1 +++ b/Updater/Update-Service.ps1 @@ -568,6 +568,7 @@ Exit-IfDirMissing $UploadPathLogs "log file target" # terminates the entire script: Upload-LogFiles +$UpdItems = @() $ConfigShouldBeUpdated = NewConfig-Available $ConfigPath $ServiceShouldBeUpdated = ServiceUpdate-Requested if (-Not ($ConfigShouldBeUpdated -Or $ServiceShouldBeUpdated)) { @@ -579,13 +580,15 @@ if (-Not ($ConfigShouldBeUpdated -Or $ServiceShouldBeUpdated)) { $ConfigToTest = $ConfigPath if ($ConfigShouldBeUpdated) { $ConfigToTest = $UpdPathConfig + $UpdItems += "configuration files" } # define which configuration checker executable should be used for testing: $ConfigTestBinary = "$($InstallationPath)\AutoTxConfigTest.exe" if ($ServiceShouldBeUpdated) { $UpdPackage = Find-InstallationPackage - $ConfigTestBinary = "$($UpdPackage)\AutoTx\AutoTxConfigTest.exe" + $ConfigTestBinary = "$($UpdPackage)\$($ServiceName)\AutoTxConfigTest.exe" + $UpdItems += "service binaries" } # now we're all set and can run the config test: @@ -607,7 +610,7 @@ if (-Not ($ConfigValid)) { # (1) something needs to be updated (config, service or both) # AND # (2) the configuration validates with the corresponding service version -$UpdSummary = "" +Write-Verbose "Required update action items:`n> - $($UpdItems -join "`n> - ")`n" if ($ConfigShouldBeUpdated) { $ConfigUpdated = Update-Configuration