Updated to .NET Framework 4.7.2 due to platform limitations, added email cc, bcc and some fixes.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
param(
|
||||
[string]$InstallPath = 'C:\Tools\BizTalkMonitorConfigGenerator',
|
||||
[string]$ConfigPath
|
||||
)
|
||||
|
||||
Set-StrictMode -Version Latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
if (-not $ConfigPath) {
|
||||
$ConfigPath = Join-Path $InstallPath 'generator-settings.json'
|
||||
}
|
||||
|
||||
$exePath = Join-Path $InstallPath 'BizTalkMonitorConfigGenerator.exe'
|
||||
if (-not (Test-Path -LiteralPath $exePath)) {
|
||||
throw "Executable wurde nicht gefunden: $exePath"
|
||||
}
|
||||
|
||||
if (-not (Test-Path -LiteralPath $ConfigPath)) {
|
||||
throw "Konfigurationsdatei wurde nicht gefunden: $ConfigPath"
|
||||
}
|
||||
|
||||
& $exePath $ConfigPath
|
||||
$exitCode = $LASTEXITCODE
|
||||
Write-Host "ExitCode: $exitCode"
|
||||
exit $exitCode
|
||||
Reference in New Issue
Block a user