-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProxyAddressManager.ps1
More file actions
32 lines (25 loc) · 991 Bytes
/
Copy pathProxyAddressManager.ps1
File metadata and controls
32 lines (25 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[CmdletBinding()]
param(
[switch]$SkipModulePreflight,
[switch]$NoGui,
[switch]$SmokeTestGui
)
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
$bootstrapModulePath = Join-Path -Path $PSScriptRoot -ChildPath 'src\Bootstrap\ProxyAddressManager.Bootstrap.psm1'
$guiModulePath = Join-Path -Path $PSScriptRoot -ChildPath 'src\Gui\ProxyAddressManager.Gui.psm1'
$configPath = Join-Path -Path $PSScriptRoot -ChildPath 'config\appsettings.json'
Import-Module -Name $bootstrapModulePath -Force
Import-Module -Name $guiModulePath -Force
if (-not $SkipModulePreflight) {
Start-ProxyAddressManagerBootstrap -AppRoot $PSScriptRoot -ConfigPath $configPath | Out-Null
}
if ($SmokeTestGui) {
Test-PamGuiShell -AppRoot $PSScriptRoot -ConfigPath $configPath | Out-Null
Write-Host 'GUI-Smoke-Test erfolgreich abgeschlossen.' -ForegroundColor Green
return
}
if ($NoGui) {
return
}
Show-PamMainWindow -AppRoot $PSScriptRoot -ConfigPath $configPath | Out-Null