diff --git a/Updater/Update-Service.ps1 b/Updater/Update-Service.ps1 index 55689c00b1350a923c5f4adc6ef1e9c601f64e93..84784f26a401c15446d403963bfc1e2942586fd6 100644 --- a/Updater/Update-Service.ps1 +++ b/Updater/Update-Service.ps1 @@ -70,9 +70,10 @@ function ServiceIsBusy { function Exit-IfDirMissing([string]$DirName, [string]$Desc) { if (Test-Path -PathType Container $DirName) { + Write-Verbose "Verified $($Desc) path: [$($DirName)]" Return } - $msg = "ERROR: can't find / access $($Desc) path: $($DirName)" + $msg = "ERROR: can't find / access $($Desc) path: [$($DirName)]" Send-MailReport -Subject "path or permission error" -Body $msg Exit } @@ -265,9 +266,9 @@ function Copy-ServiceFiles { Write-Host "ERROR: couldn't find package matching '$($Pattern)'!" Exit } + Write-Verbose "Found update source package: $($PkgDir)" Stop-MyService "Trying to update service using package [$($PkgDir)]." - Write-Verbose "Update source package: $($PkgDir)" Copy-Item -Recurse -Force -ErrorAction Stop ` -Path "$($UpdateBinariesPath)\$($PkgDir)\$($ServiceName)\*" ` -Destination "$InstallationPath"