diff --git a/AutoTx-Updater/Update-Service.ps1 b/AutoTx-Updater/Update-Service.ps1 index 07b4bc84a038a1f9a00d544fbd7aa5499c4bd56b..4c204a54066f5b63abef5a854732d9e61ae429f1 100644 --- a/AutoTx-Updater/Update-Service.ps1 +++ b/AutoTx-Updater/Update-Service.ps1 @@ -227,7 +227,8 @@ function Copy-ServiceFiles { function Update-ServiceBinaries { $MarkerFile = "$($UpdateMarkerPath)\$($env:COMPUTERNAME)" if (Test-Path "$MarkerFile" -Type Leaf) { - Return + Write-Verbose "Found marker ($($MarkerFile)), not updating service." + Return $False } Log-Info "Marker file ($($MarkerFile)) missing, trying to update service." Stop-MyService @@ -240,6 +241,7 @@ function Update-ServiceBinaries { Log-Error "Creating $($MarkerFile) FAILED!`n$($_.Exception.Message)" Exit } + Return $True }