| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /ProgramData/chocolatey/extensions/chocolatey-dotnetfx/ |
Upload File : |
<#
.SYNOPSIS
Returns the exit code set earlier by a native installer executed via the Start-ChocolateyProcessAsAdmin helper.
.OUTPUT
System.Int32 or $null
#>
function Get-NativeInstallerExitCode
{
[CmdletBinding()]
Param
(
)
End
{
$exitCodeString = Get-EnvironmentVariable -Name ChocolateyExitCode -Scope Process
if ([string]::IsNullOrEmpty($exitCodeString))
{
return $null
}
[int] $exitCode = 0
if (-not ([int]::TryParse($exitCodeString, [ref]$exitCode)))
{
Write-Warning "Unable to parse ChocolateyExitCode value: $exitCodeString"
return $null
}
return $exitCode
}
}