diff --git a/AutoTx/Resources/Update-AutoTxService.ps1 b/AutoTx/Resources/Update-AutoTxService.ps1 index b754d702d89baabb9dc6db1056cdbab3c240f041..933cd80f231bad800e952abadee33c2fa13dbd4a 100644 --- a/AutoTx/Resources/Update-AutoTxService.ps1 +++ b/AutoTx/Resources/Update-AutoTxService.ps1 @@ -2,12 +2,20 @@ # AutoTx service binaries and configuration file -# ------------------------------------------------------------------------------ -$InstallationPath = "C:\Tools\AutoTx" -$ServiceName = "AutoTx" +[CmdletBinding()] +Param( + [Parameter(Mandatory=$True)][string] $UpdaterSettings +) + +try { + . $UpdaterSettings +} +catch { + $ex = $_.Exception.Message + Write-Host "Error reading settings file: '$($UpdaterSettings)' [$($ex)]" + Exit +} -$UpdateSourcePath = "C:\ATX\TARGET\d-vamp-dw\_AUTOTX_" -# ------------------------------------------------------------------------------ function Check-ServiceState([string]$ServiceName) {