mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 14:36:15 -05:00
test: check retained state inside the actual configuration tree
This commit is contained in:
1 file changed
+1
-1
@@ -23,7 +23,7 @@ foreach ($name in @('gpgui.exe', 'gpauth.exe')) {
|
|||||||
$process = Start-Process (Join-Path $destination $name) -ArgumentList '--version' -PassThru -Wait
|
$process = Start-Process (Join-Path $destination $name) -ArgumentList '--version' -PassThru -Wait
|
||||||
if ($process.ExitCode -ne 0) { throw "The installed $name cannot start." }
|
if ($process.ExitCode -ne 0) { throw "The installed $name cannot start." }
|
||||||
}
|
}
|
||||||
$state = Join-Path $env:LOCALAPPDATA 'GP Connect'
|
$state = Join-Path $env:LOCALAPPDATA 'GP Connect\config\protected-state'
|
||||||
New-Item -ItemType Directory -Force $state | Out-Null
|
New-Item -ItemType Directory -Force $state | Out-Null
|
||||||
$marker = Join-Path $state 'ci-install-retention'
|
$marker = Join-Path $state 'ci-install-retention'
|
||||||
[IO.File]::WriteAllText($marker, 'retain user settings')
|
[IO.File]::WriteAllText($marker, 'retain user settings')
|
||||||
|
|||||||
Reference in new issue
Block a user