Skip to content

Instantly share code, notes, and snippets.

@fabriciofx
Created August 8, 2018 19:14
Show Gist options
  • Select an option

  • Save fabriciofx/b461869fb85dc10daf6fa6922f672f30 to your computer and use it in GitHub Desktop.

Select an option

Save fabriciofx/b461869fb85dc10daf6fa6922f672f30 to your computer and use it in GitHub Desktop.
2018-08-08 16:09:41,434 7568 [DEBUG] - XmlConfiguration is now operational
2018-08-08 16:09:41,485 7568 [INFO ] - ============================================================
2018-08-08 16:09:41,663 7568 [INFO ] - Chocolatey v0.10.11
2018-08-08 16:09:41,676 7568 [DEBUG] - Chocolatey is running on Windows v 10.0.17134.0
2018-08-08 16:09:41,681 7568 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2018-08-08 16:09:41,685 7568 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2018-08-08 16:09:41,699 7568 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install jre8
2018-08-08 16:09:41,705 7568 [DEBUG] - Received arguments: install jre8
2018-08-08 16:09:41,757 7568 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2018-08-08 16:09:41,768 7568 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2018-08-08 16:09:41,780 7568 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2018-08-08 16:09:42,032 7568 [DEBUG] - The source 'http://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2018-08-08 16:09:42,040 7568 [DEBUG] -
NOTE: Hiding sensitive configuration data! Please double and triple
check to be sure no sensitive data is shown, especially if copying
output to a gist for review.
2018-08-08 16:09:42,054 7568 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\fbc\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='http://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='False'|Verbose='False'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|
AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='jre8'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='jre8'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.17134.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='0.10.11.0'|
Information.ChocolateyProductVersion='0.10.11'|
Information.FullName='choco, Version=0.10.11.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='fbc'|Information.UserDomainName='HADES'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
ListCommand.PageSize='25'|ListCommand.Exact='False'|
ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'|
PinCommand.Command='unknown'|OutdatedCommand.IgnorePinned='False'|
Proxy.BypassOnLocal='True'|
2018-08-08 16:09:42,107 7568 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2018-08-08 16:09:42,117 7568 [INFO ] - Installing the following packages:
2018-08-08 16:09:42,125 7568 [INFO ] - jre8
2018-08-08 16:09:42,133 7568 [INFO ] - By installing you accept licenses for the packages.
2018-08-08 16:09:42,179 7568 [DEBUG] - Source 'http://chocolatey.org/api/v2/' is configured to bypass proxies.
2018-08-08 16:09:44,248 7568 [INFO ] - [NuGet] Installing 'jre8 8.0.181'.
2018-08-08 16:09:44,260 7568 [DEBUG] - [NuGet] Added file 'chocolateyInstall.ps1' to folder 'jre8\tools'.
2018-08-08 16:09:44,267 7568 [DEBUG] - [NuGet] Added file 'chocolateyUninstall.ps1' to folder 'jre8\tools'.
2018-08-08 16:09:44,275 7568 [DEBUG] - [NuGet] Added file 'thisJreInstalled.ps1' to folder 'jre8\tools'.
2018-08-08 16:09:44,338 7568 [DEBUG] - [NuGet] Added file 'jre8.nuspec' to folder 'jre8'.
2018-08-08 16:09:44,346 7568 [DEBUG] - [NuGet] Added file 'jre8.nupkg' to folder 'jre8'.
2018-08-08 16:09:44,352 7568 [INFO ] - [NuGet] Successfully installed 'jre8 8.0.181'.
2018-08-08 16:09:44,360 7568 [INFO ] -
jre8 v8.0.181 [Approved]
2018-08-08 16:09:44,382 7568 [INFO ] - jre8 package files install completed. Performing other installation steps.
2018-08-08 16:09:44,473 7568 [DEBUG] - Setting installer args for jre8
2018-08-08 16:09:44,480 7568 [DEBUG] - Setting package parameters for jre8
2018-08-08 16:09:44,486 7568 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\jre8\tools\chocolateyInstall.ps1':
2018-08-08 16:09:44,499 7568 [DEBUG] - try {
$arguments = @{}
# Now we can use the $env:chocolateyPackageParameters inside the Chocolatey package
$packageParameters = $env:chocolateyPackageParameters
# Default value
$exclude = $null
# Now parse the packageParameters using good old regular expression
if ($packageParameters) {
$match_pattern = "\/(?<option>([a-zA-Z0-9]+)):(?<value>([`"'])?([a-zA-Z0-9- \(\)\s_\\:\.]+)([`"'])?)|\/(?<option>([a-zA-Z]+))"
$option_name = 'option'
$value_name = 'value'
if ($packageParameters -match $match_pattern ){
$results = $packageParameters | Select-String $match_pattern -AllMatches
$results.matches | % {
$arguments.Add(
$_.Groups[$option_name].Value.Trim(),
$_.Groups[$value_name].Value.Trim())
}
}
else
{
Throw "Package Parameters were found but were invalid (REGEX Failure)"
}
if($arguments.ContainsKey("exclude")) {
Write-Host "exclude Argument Found"
$exclude = $arguments["exclude"]
}
} else {
Write-Debug "No Package Parameters Passed in"
}
$scriptDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$packageName = 'jre8'
# Modify these values -----------------------------------------------------
# Find download URLs at http://www.java.com/en/download/manual.jsp
$url = 'https://javadl.oracle.com/webapps/download/AutoDL?BundleId=234472_96a7b8442fe848ef90c96a2fad6ed6d1'
$checksum32 = '9E5E6A1C5D26D93454751E65486F728233FDAC3B50FF763F6709FB87DD960CE5'
$url64 = 'https://javadl.oracle.com/webapps/download/AutoDL?BundleId=234474_96a7b8442fe848ef90c96a2fad6ed6d1'
$checksum64 = 'CD2F756133D59525869ACB605A54EFD132FCD7EAF53E2EC040D92EF40A2EA60A'
$oldVersion = '8.0.1710.11'
$version = '8.0.1810.13'
#--------------------------------------------------------------------------
$homepath = $version -replace "(\d+\.\d+)\.(\d\d)(.*)",'jre1.$1_$2'
$installerType = 'exe'
$installArgs = "/s REBOOT=0 SPONSORS=0 AUTO_UPDATE=0 $32dir"
$installArgs64 = "/s REBOOT=0 SPONSORS=0 AUTO_UPDATE=0 $64dir"
$osBitness = Get-ProcessorBits
Write-Output "Searching if new version exists..."
$checkreg64 = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion | Where-Object { $_.DisplayName -like '*Java 8*' -and ([Version]$_.DisplayVersion) -eq $version} -ErrorAction SilentlyContinue
$checkreg32 = Get-ItemProperty HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion | Where-Object { $_.DisplayName -like '*Java 8*' -and ([Version]$_.DisplayVersion) -eq $version} -ErrorAction SilentlyContinue
# Checks if JRE 32/64-bit in the same version is already installed and if the user excluded 32-bit Java.
# Otherwise it downloads and installs it.
# This is to avoid unnecessary downloads and 1603 errors.
if ($checkreg32 -ne $null)
{
Write-Output "Java Runtime Environment $version (32-bit) is already installed. Skipping download and installation"
}
elseif ($exclude -ne "32")
{
Write-Output "Installing JRE $version 32-bit"
Install-ChocolateyPackage $packageName $installerType $installArgs $url -checksum $checksum32 -checksumtype 'sha256'
}
else
{
Write-Output "Java Runtime Environment $Version (32-bit) excluded for installation"
}
# Only check for the 64-bit version if the system is 64-bit
if ($osBitness -eq 64)
{
if ($checkreg64 -ne $null)
{
Write-Output "Java Runtime Environment $version (64-bit) is already installed. Skipping download and installation"
}
elseif ($exclude -ne "64")
{
Write-Output "Installing JRE $version 64-bit"
Install-ChocolateyPackage $packageName $installerType $installArgs64 -url64bit $url64 -checksum64 $checksum64 -checksumtype64 'sha256'
}
else
{
Write-Output "Java Runtime Environment $Version (64-bit) excluded for installation"
}
}
#Uninstalls the previous version of Java if either version exists
Write-Output "Searching if the previous version exists..."
$checkoldreg64 = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, PSChildName | Where-Object { $_.DisplayName -like '*Java 8*' -and ([Version]$_.DisplayVersion) -eq $oldversion} -ErrorAction SilentlyContinue
$checkoldreg32 = Get-ItemProperty HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, PSChildName | Where-Object { $_.DisplayName -like '*Java 8*' -and ([Version]$_.DisplayVersion) -eq $oldversion} -ErrorAction SilentlyContinue
if($checkoldreg32 -ne $null)
{
Write-Warning "Uninstalling JRE version $oldVersion 32bit"
$32 = $checkoldreg32.PSChildName
Start-ChocolateyProcessAsAdmin "/qn /norestart /X$32" -exeToRun "msiexec.exe" -validExitCodes @(0,1605,3010)
}
if($checkoldreg64 -ne $null)
{
Write-Warning "Uninstalling JRE version $oldVersion $osBitness bit" #Formatted weird because this is used if run on a x86 install
$64 = $checkoldreg64.PSChildName
Start-ChocolateyProcessAsAdmin "/qn /norestart /X$64" -exeToRun "msiexec.exe" -validExitCodes @(0,1605,3010)
}
} catch {
#Write-ChocolateyFailure $packageName $($_.Exception.Message)
throw
}
2018-08-08 16:09:44,534 7568 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\jre8\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''']
2018-08-08 16:09:44,952 7568 [DEBUG] - Host version is 5.1.17134.1, PowerShell Version is '5.1.17134.165' and CLR Version is '4.0.30319.42000'.
2018-08-08 16:09:46,473 7568 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2018-08-08 16:09:46,492 7568 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2018-08-08 16:09:46,512 7568 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2018-08-08 16:09:46,531 7568 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2018-08-08 16:09:46,561 7568 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2018-08-08 16:09:46,598 7568 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2018-08-08 16:09:46,618 7568 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2018-08-08 16:09:46,638 7568 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2018-08-08 16:09:46,659 7568 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2018-08-08 16:09:46,684 7568 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2018-08-08 16:09:46,707 7568 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2018-08-08 16:09:46,728 7568 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2018-08-08 16:09:46,747 7568 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2018-08-08 16:09:46,764 7568 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2018-08-08 16:09:46,784 7568 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2018-08-08 16:09:46,802 7568 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2018-08-08 16:09:46,822 7568 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2018-08-08 16:09:46,841 7568 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2018-08-08 16:09:46,860 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2018-08-08 16:09:46,879 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2018-08-08 16:09:46,898 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2018-08-08 16:09:46,917 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2018-08-08 16:09:46,936 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2018-08-08 16:09:46,955 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2018-08-08 16:09:46,975 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2018-08-08 16:09:46,994 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2018-08-08 16:09:47,013 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2018-08-08 16:09:47,032 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2018-08-08 16:09:47,051 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2018-08-08 16:09:47,070 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2018-08-08 16:09:47,090 7568 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2018-08-08 16:09:47,109 7568 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2018-08-08 16:09:47,128 7568 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2018-08-08 16:09:47,148 7568 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2018-08-08 16:09:47,167 7568 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2018-08-08 16:09:47,186 7568 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2018-08-08 16:09:47,206 7568 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2018-08-08 16:09:47,226 7568 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2018-08-08 16:09:47,246 7568 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2018-08-08 16:09:47,266 7568 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2018-08-08 16:09:47,285 7568 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2018-08-08 16:09:47,305 7568 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2018-08-08 16:09:47,325 7568 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2018-08-08 16:09:47,345 7568 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2018-08-08 16:09:47,366 7568 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2018-08-08 16:09:47,386 7568 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2018-08-08 16:09:47,406 7568 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2018-08-08 16:09:47,427 7568 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2018-08-08 16:09:47,447 7568 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2018-08-08 16:09:47,467 7568 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2018-08-08 16:09:47,487 7568 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2018-08-08 16:09:47,507 7568 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2018-08-08 16:09:47,527 7568 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2018-08-08 16:09:47,550 7568 [DEBUG] - Loading community extensions
2018-08-08 16:09:47,588 7568 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
2018-08-08 16:09:47,610 7568 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
2018-08-08 16:09:48,004 7568 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2018-08-08 16:09:48,024 7568 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2018-08-08 16:09:48,044 7568 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2018-08-08 16:09:48,064 7568 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2018-08-08 16:09:48,084 7568 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2018-08-08 16:09:48,104 7568 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2018-08-08 16:09:48,125 7568 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2018-08-08 16:09:48,143 7568 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2018-08-08 16:09:48,164 7568 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2018-08-08 16:09:48,183 7568 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2018-08-08 16:09:48,202 7568 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2018-08-08 16:09:48,222 7568 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2018-08-08 16:09:48,242 7568 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2018-08-08 16:09:48,261 7568 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2018-08-08 16:09:48,281 7568 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2018-08-08 16:09:48,301 7568 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2018-08-08 16:09:48,322 7568 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2018-08-08 16:09:48,342 7568 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2018-08-08 16:09:48,362 7568 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2018-08-08 16:09:48,383 7568 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2018-08-08 16:09:48,404 7568 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2018-08-08 16:09:48,424 7568 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2018-08-08 16:09:48,445 7568 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2018-08-08 16:09:48,466 7568 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2018-08-08 16:09:48,486 7568 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2018-08-08 16:09:48,506 7568 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2018-08-08 16:09:48,527 7568 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2018-08-08 16:09:48,547 7568 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2018-08-08 16:09:48,567 7568 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2018-08-08 16:09:48,587 7568 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2018-08-08 16:09:48,608 7568 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2018-08-08 16:09:48,628 7568 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2018-08-08 16:09:48,648 7568 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2018-08-08 16:09:48,668 7568 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2018-08-08 16:09:48,688 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2018-08-08 16:09:48,709 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2018-08-08 16:09:48,729 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2018-08-08 16:09:48,750 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2018-08-08 16:09:48,770 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2018-08-08 16:09:48,791 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2018-08-08 16:09:48,811 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2018-08-08 16:09:48,832 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2018-08-08 16:09:48,852 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2018-08-08 16:09:48,872 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2018-08-08 16:09:48,892 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2018-08-08 16:09:48,914 7568 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2018-08-08 16:09:48,934 7568 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2018-08-08 16:09:48,956 7568 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2018-08-08 16:09:48,977 7568 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2018-08-08 16:09:48,998 7568 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2018-08-08 16:09:49,018 7568 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2018-08-08 16:09:49,039 7568 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2018-08-08 16:09:49,060 7568 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2018-08-08 16:09:49,082 7568 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2018-08-08 16:09:49,105 7568 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2018-08-08 16:09:49,126 7568 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2018-08-08 16:09:49,147 7568 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2018-08-08 16:09:49,169 7568 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2018-08-08 16:09:49,190 7568 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2018-08-08 16:09:49,211 7568 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2018-08-08 16:09:49,232 7568 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2018-08-08 16:09:49,253 7568 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2018-08-08 16:09:49,274 7568 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2018-08-08 16:09:49,296 7568 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2018-08-08 16:09:49,317 7568 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2018-08-08 16:09:49,338 7568 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2018-08-08 16:09:49,359 7568 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2018-08-08 16:09:49,380 7568 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2018-08-08 16:09:49,401 7568 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2018-08-08 16:09:49,422 7568 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2018-08-08 16:09:49,443 7568 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2018-08-08 16:09:49,465 7568 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2018-08-08 16:09:49,487 7568 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2018-08-08 16:09:49,508 7568 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2018-08-08 16:09:49,529 7568 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2018-08-08 16:09:49,550 7568 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2018-08-08 16:09:49,570 7568 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2018-08-08 16:09:49,590 7568 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2018-08-08 16:09:49,610 7568 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2018-08-08 16:09:49,631 7568 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2018-08-08 16:09:49,651 7568 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2018-08-08 16:09:49,670 7568 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2018-08-08 16:09:49,690 7568 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2018-08-08 16:09:49,710 7568 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2018-08-08 16:09:49,731 7568 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2018-08-08 16:09:49,749 7568 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2018-08-08 16:09:49,769 7568 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2018-08-08 16:09:49,789 7568 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2018-08-08 16:09:49,809 7568 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2018-08-08 16:09:49,829 7568 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2018-08-08 16:09:49,849 7568 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2018-08-08 16:09:49,869 7568 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2018-08-08 16:09:49,888 7568 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2018-08-08 16:09:49,909 7568 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2018-08-08 16:09:49,929 7568 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2018-08-08 16:09:49,948 7568 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2018-08-08 16:09:49,969 7568 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2018-08-08 16:09:49,989 7568 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2018-08-08 16:09:50,010 7568 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2018-08-08 16:09:50,031 7568 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2018-08-08 16:09:50,051 7568 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2018-08-08 16:09:50,070 7568 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2018-08-08 16:09:50,092 7568 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2018-08-08 16:09:50,112 7568 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2018-08-08 16:09:50,132 7568 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2018-08-08 16:09:50,151 7568 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2018-08-08 16:09:50,171 7568 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2018-08-08 16:09:50,191 7568 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2018-08-08 16:09:50,211 7568 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2018-08-08 16:09:50,231 7568 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2018-08-08 16:09:50,251 7568 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2018-08-08 16:09:50,271 7568 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2018-08-08 16:09:50,290 7568 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2018-08-08 16:09:50,310 7568 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2018-08-08 16:09:50,330 7568 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2018-08-08 16:09:50,349 7568 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2018-08-08 16:09:50,369 7568 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2018-08-08 16:09:50,390 7568 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2018-08-08 16:09:50,410 7568 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2018-08-08 16:09:50,430 7568 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2018-08-08 16:09:50,451 7568 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2018-08-08 16:09:50,472 7568 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2018-08-08 16:09:50,491 7568 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2018-08-08 16:09:50,512 7568 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2018-08-08 16:09:50,533 7568 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2018-08-08 16:09:50,553 7568 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2018-08-08 16:09:50,574 7568 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2018-08-08 16:09:50,594 7568 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2018-08-08 16:09:50,614 7568 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2018-08-08 16:09:50,634 7568 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2018-08-08 16:09:50,654 7568 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2018-08-08 16:09:50,674 7568 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2018-08-08 16:09:50,693 7568 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2018-08-08 16:09:50,713 7568 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2018-08-08 16:09:50,830 7568 [DEBUG] - Running 'ChocolateyScriptRunner' for jre8 v8.0.181 with packageScript 'C:\ProgramData\chocolatey\lib\jre8\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\jre8', installArguments: '', packageParameters: '',
2018-08-08 16:09:50,857 7568 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\jre8\tools\chocolateyInstall.ps1'
2018-08-08 16:09:50,902 7568 [DEBUG] - No Package Parameters Passed in
2018-08-08 16:09:50,945 7568 [DEBUG] - Running Get-ProcessorBits
2018-08-08 16:09:50,970 7568 [INFO ] - Searching if new version exists...
2018-08-08 16:09:51,108 7568 [ERROR] - ERROR: Specified cast is not valid.
2018-08-08 16:09:51,130 7568 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\jre8\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'.
2018-08-08 16:09:51,152 7568 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a']
2018-08-08 16:09:51,455 7568 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116'
2018-08-08 16:09:51,531 7568 [WARN ] - Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
2018-08-08 16:09:51,550 7568 [DEBUG] - Logging of values is not turned on by default because it
could potentially expose sensitive data. If you understand the risk,
please see `choco feature -h` for information to turn it on.
2018-08-08 16:09:51,570 7568 [DEBUG] - The following values have been added/changed (may contain sensitive data):
2018-08-08 16:09:51,590 7568 [DEBUG] - * PATHEXT='[REDACTED]' (User)
2018-08-08 16:09:51,660 7568 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\jre8'
2018-08-08 16:09:51,681 7568 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\jre8\jre8.nupkg'
with checksum '0B5EDF39443CCB6991A28E7B8798B499'
2018-08-08 16:09:51,700 7568 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\jre8\jre8.nuspec'
with checksum 'CFEA3240CB37E74A003B46853472DCB1'
2018-08-08 16:09:51,719 7568 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\jre8\tools\chocolateyInstall.ps1'
with checksum 'E83845E0C10018AF33580ABC480E415F'
2018-08-08 16:09:51,737 7568 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\jre8\tools\chocolateyUninstall.ps1'
with checksum '4B7A4D65C739871EBC12A4D89EE2C603'
2018-08-08 16:09:51,757 7568 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\jre8\tools\thisJreInstalled.ps1'
with checksum '11582402A4211505F6F5B024C7EBCEED'
2018-08-08 16:09:51,790 7568 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\jre8.8.0.181\.arguments".
2018-08-08 16:09:51,809 7568 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\jre8.8.0.181\.extra".
2018-08-08 16:09:51,827 7568 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\jre8.8.0.181\.version".
2018-08-08 16:09:51,846 7568 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\jre8.8.0.181\.sxs".
2018-08-08 16:09:51,865 7568 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\jre8.8.0.181\.pin".
2018-08-08 16:09:51,885 7568 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2018-08-08 16:09:51,904 7568 [ERROR] - The install of jre8 was NOT successful.
2018-08-08 16:09:51,925 7568 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\jre8\tools\chocolateyInstall.ps1'.
See log for details.
2018-08-08 16:09:51,948 7568 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\jre8'
to 'C:\ProgramData\chocolatey\lib-bad\jre8'
2018-08-08 16:09:53,971 7568 [DEBUG] - Attempting to delete file "C:\Users\fbc\AppData\Local\NuGet\Cache\jre8.8.0.181.nupkg".
2018-08-08 16:09:53,999 7568 [WARN ] -
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2018-08-08 16:09:54,018 7568 [INFO ] -
2018-08-08 16:09:54,037 7568 [ERROR] - Failures
2018-08-08 16:09:54,057 7568 [ERROR] - - jre8 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\jre8\tools\chocolateyInstall.ps1'.
See log for details.
2018-08-08 16:09:54,079 7568 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2018-08-08 16:09:54,118 7568 [DEBUG] - Exiting with -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment