diff --git a/AutoTx-Updater/Update-Service.ps1 b/AutoTx-Updater/Update-Service.ps1 index 18741128c96c092ee7ca6ac2567e5dd208b9818f..82fc5e3fcb790435e5b35c59f22c78f30f57f646 100644 --- a/AutoTx-Updater/Update-Service.ps1 +++ b/AutoTx-Updater/Update-Service.ps1 @@ -226,7 +226,7 @@ function Copy-ServiceFiles { function Update-ServiceBinaries { $MarkerFile = "$($UpdateMarkerPath)\$($env:COMPUTERNAME)" if (Test-Path "$MarkerFile" -Type Leaf) { - Write-Verbose "Found marker ($($MarkerFile)), not updating service." + Write-Verbose "Found marker [$($MarkerFile)], not updating service." Return $False } Log-Info "Marker file ($($MarkerFile)) missing, trying to update service." @@ -234,12 +234,13 @@ function Update-ServiceBinaries { Copy-ServiceFiles try { New-Item -Type File "$MarkerFile" -ErrorAction Stop | Out-Null - Write-Verbose "Created marker file: $($MarkerFile)" + Write-Verbose "Created marker file [$($MarkerFile)]." } catch { - Log-Error "Creating $($MarkerFile) FAILED!`n$($_.Exception.Message)" + Log-Error "Creating [$($MarkerFile)] FAILED!`n$($_.Exception.Message)" Exit } + Log-Info "Service binaries were updated successfully." Return $True }