I
Size: a a a
I
I
VB
VB
SM
I
SM
SM
SM
I
SM
CR
VB
EK
EK
SM
SM
Z
Z
[bool]SetKey([Context]$context, [string]$path, [bool]$isCipher)
{
$keyPath = [System.IO.Path]::Combine($context.SupplyPath, $path);
if ($isCipher -eq $true)
{
$value = @("Cipher", "/path:$($keyPath)", "/value:$($context.Settings.ChipherKey)", "/q")
}
else
{
$value = @("Signature", "/path:$($keyPath)", "/value:$($context.Settings.SignatureKey)", "/q")
}
return $this.T($context, "SetKey", $value)
}
Z
[bool]T([Context]$context, [string]$verb, [object[]]$args)
{
& $context.TPath @($verb,$args) | Out-Null
if ($LASTEXITCODE -ne 0)
{
(Get-Host).UI.WriteErrorLine("Installation failed with error code: $LASTEXITCODE`nSee the details in log file: $context.LogPath")
return $false;
}
return $true
}