diff --git a/AutoTx/Resources/Update-AutoTxService.ps1 b/AutoTx/Resources/Update-AutoTxService.ps1 index c6d316df065720e85b2739aa1cb93d3234de79bb..e3773a27abe5c45b76eb895c47cded7602b515a3 100644 --- a/AutoTx/Resources/Update-AutoTxService.ps1 +++ b/AutoTx/Resources/Update-AutoTxService.ps1 @@ -20,6 +20,8 @@ $Me = $MyInvocation.MyCommand -replace '.ps1' +### function definitions ##################################################### + function Check-ServiceState([string]$ServiceName) { $Continue = $True try { @@ -227,6 +229,8 @@ function Log-Info([string]$Message) { Log-Message -Type Information -Message $Message -Id 1 } +################################################################################ + # first check if the service is installed and running at all