diff --git a/AutoTx-Updater/Update-Service.ps1 b/AutoTx-Updater/Update-Service.ps1 index 4c204a54066f5b63abef5a854732d9e61ae429f1..68843e4a01084e797db764720be32765d89ae83b 100644 --- a/AutoTx-Updater/Update-Service.ps1 +++ b/AutoTx-Updater/Update-Service.ps1 @@ -204,23 +204,16 @@ function Update-Configuration { function Copy-ServiceFiles { - Write-Host -NoNewLine "Updating service binaries: " try { Copy-Item -Recurse -Force -ErrorAction Stop ` -Path "$UpdateBinariesPath" ` -Destination "$InstallationPath" - # Copy-FileIfNew "configuration.xml" $ServiceDir - # Copy-FileIfNew "status.xml" $ServiceDir - # Copy-FileIfNew "service.log" $ServiceDir - # Clear-Content "$($ServiceDir)\service.log" - Write-Host "[OK]" -Fore Green } catch { - $ex = $_.Exception - Write-Host "[FAILED]" -Fore Red - Write-Host $ex.Message + Log-Error "Updating service binaries FAILED!`n$($_.Exception.Message)" Exit } + Log-Info "Updated service binaries!" }