Skip to content
Snippets Groups Projects
Commit 766eac18 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard: Committed by Niko Ehrenfeuchter (adm)
Browse files

Move configuration to a separate file, require parameter.

Refers to #13
parent 8f11b8d9
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment