diff --git a/Updater/Update-Service.ps1 b/Updater/Update-Service.ps1 index 45a725bcdb62da419afe36eafb4a77e916c137f0..9382ef683f871f09ae65833e3dcaa8120b25424c 100644 --- a/Updater/Update-Service.ps1 +++ b/Updater/Update-Service.ps1 @@ -244,7 +244,7 @@ function Update-File { function Update-Configuration { $NewConfig = "$($UpdateConfigPath)\configuration.xml" if (Test-Path -PathType Leaf $NewConfig) { - $ret = Update-File $NewConfig $InstallationPath + $ret = Update-File $NewConfig $ConfigPath } else { $ret = $False Write-Verbose "No configuration file found at '$($NewConfig)'." @@ -387,6 +387,7 @@ $UpdateBinariesPath = "$($UpdateSourcePath)\Service\Binaries" $LogfileUpload = "$($UpdateSourcePath)\Logs\$($env:COMPUTERNAME)" Exit-IfDirMissing $InstallationPath "installation" +Exit-IfDirMissing $ConfigPath "configuration files" Exit-IfDirMissing $UpdateSourcePath "update source" Exit-IfDirMissing $UpdateConfigPath "configuration update" Exit-IfDirMissing $UpdateMarkerPath "update marker" diff --git a/Updater/UpdaterConfig-Example.inc.ps1 b/Updater/UpdaterConfig-Example.inc.ps1 index 21bea61d87beb50077d074a56fd42b0623022bd9..6c3d3e6e9ac45ccba550f17f595c5dd69d05645b 100644 --- a/Updater/UpdaterConfig-Example.inc.ps1 +++ b/Updater/UpdaterConfig-Example.inc.ps1 @@ -2,6 +2,7 @@ $ServiceName = "AutoTx" $InstallationPath = "C:\Tools\$($ServiceName)" +$ConfigPath = "$($InstallationPath)" $LogPath = "$($InstallationPath)" $UpdateSourcePath = "\\fileserver.mydomain.xy\share\_AUTOTX_"