Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ARM64 Win32 32bit emulation #1800

Closed
joaocgreis opened this issue Apr 17, 2019 · 11 comments
Closed

Support ARM64 Win32 32bit emulation #1800

joaocgreis opened this issue Apr 17, 2019 · 11 comments

Comments

@joaocgreis
Copy link
Contributor

When running on ARM64 Windows (PROCESSOR_ARCHITECTURE environment variable is ARM64 or Get-WMIObject win32_Processor | Select-Object Architecture returns 12), Chocolatey should default to install x86 packages instead of x64.

This is because Windows can only emulate 32 bit x86. Running 64 bit executables is not supported. I don't know if there are plans to support ARM64 natively in the future, but for now this change would make Chocolatey run well.

cc @jkunkee @MichelLopez

What You Are Seeing?

On ARM64, packages that have a x64 version fail either during installation or when used.

If --forcex86 is used, packages install and work well.

What is Expected?

The x86 version should be installed without having to specify --forcex86 when running on ARM64.

How Did You Get This To Happen? (Steps to Reproduce)

Install any package with a x64 version on a ARM64 Windows machine.

Output Log

Full Log Output

2019-04-17 08:00:02,348 7424 [DEBUG] - XmlConfiguration is now operational
2019-04-17 08:00:02,724 7424 [INFO ] - ============================================================
2019-04-17 08:00:04,283 7424 [INFO ] - Chocolatey v0.10.13
2019-04-17 08:00:04,331 7424 [DEBUG] - Chocolatey is running on Windows v 10.0.17134.0
2019-04-17 08:00:04,347 7424 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2019-04-17 08:00:04,347 7424 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2019-04-17 08:00:04,395 7424 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install -y python2 --debug --verbose
2019-04-17 08:00:04,411 7424 [DEBUG] - Received arguments: install -y python2 --debug --verbose
2019-04-17 08:00:04,797 7424 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2019-04-17 08:00:04,880 7424 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2019-04-17 08:00:04,912 7424 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2019-04-17 08:00:05,394 7424 [DEBUG] - Performing validation checks.
2019-04-17 08:00:05,458 7424 [DEBUG] - Global Configuration Validation Checks:
2019-04-17 08:00:05,458 7424 [DEBUG] -  - Package Exit Code / Exit On Reboot = Checked
2019-04-17 08:00:05,474 7424 [DEBUG] - System State Validation Checks:
2019-04-17 08:00:05,490 7424 [DEBUG] -  Reboot Requirement Checks:
2019-04-17 08:00:05,505 7424 [DEBUG] -  - Pending Computer Rename = Checked
2019-04-17 08:00:05,505 7424 [DEBUG] -  - Pending Component Based Servicing = Checked
2019-04-17 08:00:05,521 7424 [DEBUG] -  - Pending Windows Auto Update = Checked
2019-04-17 08:00:05,521 7424 [DEBUG] -  - Pending File Rename Operations = Checked
2019-04-17 08:00:05,537 7424 [DEBUG] -  - Pending Windows Package Installer = Checked
2019-04-17 08:00:05,537 7424 [DEBUG] -  - Pending Windows Package Installer SysWow64 = Checked
2019-04-17 08:00:05,553 7424 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2019-04-17 08:00:05,569 7424 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2019-04-17 08:00:05,585 7424 [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.
2019-04-17 08:00:05,649 7424 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\arm64\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='True'|Verbose='True'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='python2'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='python2'|
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.13.0'|
Information.ChocolateyProductVersion='0.10.13'|
Information.FullName='choco, Version=0.10.13.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='False'|
Information.Is64BitProcess='False'|Information.IsInteractive='True'|
Information.UserName='arm64'|Information.UserDomainName='ARM64-02'|
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.UseEnhancedExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
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'|
ApiKeyCommand.Remove='False'|PinCommand.Command='unknown'|
OutdatedCommand.IgnorePinned='False'|Proxy.BypassOnLocal='True'|
2019-04-17 08:00:05,665 7424 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2019-04-17 08:00:05,696 7424 [INFO ] - Installing the following packages:
2019-04-17 08:00:05,712 7424 [INFO ] - python2
2019-04-17 08:00:05,712 7424 [INFO ] - By installing you accept licenses for the packages.
2019-04-17 08:00:06,175 7424 [DEBUG] - Using 'https://chocolatey.org/api/v2/'.
2019-04-17 08:00:07,255 7424 [DEBUG] - - Supports prereleases? 'True'.
2019-04-17 08:00:07,270 7424 [DEBUG] - - Is ServiceBased? 'True'.
2019-04-17 08:00:07,957 7424 [DEBUG] - Package 'python2' found on source 'https://chocolatey.org/api/v2/'
2019-04-17 08:00:22,675 7424 [INFO ] - [NuGet] Installing 'python2 2.7.16'.
2019-04-17 08:00:22,738 7424 [DEBUG] - [NuGet] Added file 'LICENSE.txt' to folder 'python2\legal'.
2019-04-17 08:00:22,754 7424 [DEBUG] - [NuGet] Added file 'VERIFICATION.txt' to folder 'python2\legal'.
2019-04-17 08:00:22,770 7424 [DEBUG] - [NuGet] Added file 'chocolateyInstall.ps1' to folder 'python2\tools'.
2019-04-17 08:00:22,817 7424 [DEBUG] - [NuGet] Added file 'python-2.7.16.amd64.msi' to folder 'python2\tools'.
2019-04-17 08:00:22,881 7424 [DEBUG] - [NuGet] Added file 'python-2.7.16.msi' to folder 'python2\tools'.
2019-04-17 08:00:23,283 7424 [DEBUG] - [NuGet] Added file 'python2.nuspec' to folder 'python2'.
2019-04-17 08:00:23,378 7424 [DEBUG] - [NuGet] Added file 'python2.nupkg' to folder 'python2'.
2019-04-17 08:00:23,394 7424 [INFO ] - [NuGet] Successfully installed 'python2 2.7.16'.
2019-04-17 08:00:23,410 7424 [INFO ] - 
python2 v2.7.16 [Approved]
2019-04-17 08:00:23,489 7424 [INFO ] - python2 package files install completed. Performing other installation steps.
2019-04-17 08:00:24,042 7424 [DEBUG] - Setting installer args for python2
2019-04-17 08:00:24,058 7424 [DEBUG] - Setting package parameters for python2
2019-04-17 08:00:24,058 7424 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\python2\tools\chocolateyInstall.ps1':
2019-04-17 08:00:24,105 7424 [DEBUG] - # This file should be identical for all python* packages
# https://docs.python.org/3/using/windows.html#installing-without-ui

$installDir  = '{0}\Python{1}' -f $Env:SystemDrive, ($Env:ChocolateyPackageVersion -replace '\.').Substring(0,2)
if ($Env:ChocolateyPackageParameters -match '/InstallDir:\s*(.+)') {
    $installDir = $Matches[1]
    if ($installDir.StartsWith("'") -or $installDir.StartsWith('"')){  $installDir = $installDir -replace '^.|.$' }
}
$installArgs  = '/qn /norestart ALLUSERS=1 ADDLOCAL=ALL TargetDir="{0}"' -f $installDir

$toolsPath = Split-Path -parent $MyInvocation.MyCommand.Definition

$params = @{
  packageName    = $env:ChocolateyPackageName
  fileType       = 'msi'
  silentArgs     = $installArgs
  file           = "$toolsPath\python-2.7.16.msi"
  file64         = "$toolsPath\python-2.7.16.amd64.msi"
}

Install-ChocolateyInstallPackage @params
Write-Host "Installed to '$installDir'"

if (($Env:PYTHONHOME -ne $null) -and ($Env:PYTHONHOME -ne $InstallDir)) {
   Write-Warning "Environment variable PYTHONHOME points to different version: $Env:PYTHONHOME"
}

Write-Host "Adding $installDir to PATH if needed"
Install-ChocolateyPath $installDir 'Machine'

Get-ChildItem $toolsPath\*.msi | ForEach-Object { Remove-Item $_ -ea 0; if (Test-Path $_) { Set-Content "$_.ignore" } }

2019-04-17 08:00:24,263 7424 [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\python2\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''']
2019-04-17 08:00:24,294 7424 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2019-04-17 08:00:26,331 7424 [DEBUG] - Host version is 5.1.17134.1, PowerShell Version is '5.1.17134.590' and CLR Version is '4.0.30319.42000'.
2019-04-17 08:00:29,015 7424 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2019-04-17 08:00:29,030 7424 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2019-04-17 08:00:29,030 7424 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2019-04-17 08:00:29,046 7424 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2019-04-17 08:00:29,046 7424 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2019-04-17 08:00:29,059 7424 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2019-04-17 08:00:29,059 7424 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2019-04-17 08:00:29,059 7424 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2019-04-17 08:00:29,059 7424 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-04-17 08:00:29,075 7424 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2019-04-17 08:00:29,075 7424 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2019-04-17 08:00:29,091 7424 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2019-04-17 08:00:29,091 7424 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-04-17 08:00:29,091 7424 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2019-04-17 08:00:29,106 7424 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2019-04-17 08:00:29,106 7424 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2019-04-17 08:00:29,122 7424 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2019-04-17 08:00:29,122 7424 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2019-04-17 08:00:29,122 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2019-04-17 08:00:29,138 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2019-04-17 08:00:29,138 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2019-04-17 08:00:29,153 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2019-04-17 08:00:29,169 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2019-04-17 08:00:29,169 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2019-04-17 08:00:29,185 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2019-04-17 08:00:29,185 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2019-04-17 08:00:29,185 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2019-04-17 08:00:29,201 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2019-04-17 08:00:29,201 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2019-04-17 08:00:29,217 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2019-04-17 08:00:29,217 7424 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2019-04-17 08:00:29,232 7424 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2019-04-17 08:00:29,248 7424 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2019-04-17 08:00:29,248 7424 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2019-04-17 08:00:29,248 7424 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2019-04-17 08:00:29,264 7424 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2019-04-17 08:00:29,264 7424 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-04-17 08:00:29,280 7424 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2019-04-17 08:00:29,280 7424 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2019-04-17 08:00:29,280 7424 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2019-04-17 08:00:29,295 7424 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2019-04-17 08:00:29,295 7424 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2019-04-17 08:00:29,311 7424 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2019-04-17 08:00:29,327 7424 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2019-04-17 08:00:29,327 7424 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2019-04-17 08:00:29,343 7424 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2019-04-17 08:00:29,343 7424 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2019-04-17 08:00:29,343 7424 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2019-04-17 08:00:29,358 7424 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2019-04-17 08:00:29,358 7424 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2019-04-17 08:00:29,374 7424 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2019-04-17 08:00:29,374 7424 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2019-04-17 08:00:29,390 7424 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2019-04-17 08:00:29,469 7424 [DEBUG] - Loading community extensions
2019-04-17 08:00:29,564 7424 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
2019-04-17 08:00:29,580 7424 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
2019-04-17 08:00:30,410 7424 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-04-17 08:00:30,427 7424 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2019-04-17 08:00:30,443 7424 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2019-04-17 08:00:30,443 7424 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2019-04-17 08:00:30,458 7424 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2019-04-17 08:00:30,458 7424 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-04-17 08:00:30,474 7424 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2019-04-17 08:00:30,490 7424 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2019-04-17 08:00:30,506 7424 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2019-04-17 08:00:30,506 7424 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2019-04-17 08:00:30,506 7424 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2019-04-17 08:00:30,522 7424 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2019-04-17 08:00:30,522 7424 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2019-04-17 08:00:30,538 7424 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2019-04-17 08:00:30,553 7424 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2019-04-17 08:00:30,553 7424 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2019-04-17 08:00:30,569 7424 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-visualstudio\chocolatey-visualstudio.extension.psm1'
2019-04-17 08:00:30,569 7424 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-visualstudio\chocolatey-visualstudio.extension.psm1'.
2019-04-17 08:00:33,047 7424 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioComponent'.
2019-04-17 08:00:33,063 7424 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioWorkload'.
2019-04-17 08:00:33,074 7424 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstaller'.
2019-04-17 08:00:33,074 7424 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstallerHealth'.
2019-04-17 08:00:33,090 7424 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstance'.
2019-04-17 08:00:33,090 7424 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioVsixInstaller'.
2019-04-17 08:00:33,106 7424 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudio'.
2019-04-17 08:00:33,106 7424 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudioInstaller'.
2019-04-17 08:00:33,106 7424 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudioVsixExtension'.
2019-04-17 08:00:33,121 7424 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioComponent'.
2019-04-17 08:00:33,137 7424 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioProduct'.
2019-04-17 08:00:33,137 7424 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioWorkload'.
2019-04-17 08:00:33,137 7424 [INFO ] - VERBOSE: Exporting function 'Uninstall-VisualStudio'.
2019-04-17 08:00:33,153 7424 [INFO ] - VERBOSE: Exporting function 'Uninstall-VisualStudioVsixExtension'.
2019-04-17 08:00:33,153 7424 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioComponent'.
2019-04-17 08:00:33,184 7424 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioWorkload'.
2019-04-17 08:00:33,184 7424 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstaller'.
2019-04-17 08:00:33,200 7424 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstallerHealth'.
2019-04-17 08:00:33,200 7424 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstance'.
2019-04-17 08:00:33,200 7424 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioVsixInstaller'.
2019-04-17 08:00:33,215 7424 [INFO ] - VERBOSE: Importing function 'Install-VisualStudio'.
2019-04-17 08:00:33,215 7424 [INFO ] - VERBOSE: Importing function 'Install-VisualStudioInstaller'.
2019-04-17 08:00:33,231 7424 [INFO ] - VERBOSE: Importing function 'Install-VisualStudioVsixExtension'.
2019-04-17 08:00:33,231 7424 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioComponent'.
2019-04-17 08:00:33,231 7424 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioProduct'.
2019-04-17 08:00:33,247 7424 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioWorkload'.
2019-04-17 08:00:33,247 7424 [INFO ] - VERBOSE: Importing function 'Uninstall-VisualStudio'.
2019-04-17 08:00:33,263 7424 [INFO ] - VERBOSE: Importing function 'Uninstall-VisualStudioVsixExtension'.
2019-04-17 08:00:33,278 7424 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2019-04-17 08:00:33,310 7424 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2019-04-17 08:00:33,791 7424 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2019-04-17 08:00:33,807 7424 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2019-04-17 08:00:33,823 7424 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2019-04-17 08:00:33,823 7424 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2019-04-17 08:00:33,839 7424 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2019-04-17 08:00:33,839 7424 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2019-04-17 08:00:33,855 7424 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2019-04-17 08:00:33,871 7424 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2019-04-17 08:00:33,871 7424 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2019-04-17 08:00:33,871 7424 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2019-04-17 08:00:33,887 7424 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2019-04-17 08:00:33,887 7424 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2019-04-17 08:00:33,903 7424 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-04-17 08:00:33,903 7424 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2019-04-17 08:00:33,903 7424 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2019-04-17 08:00:33,918 7424 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2019-04-17 08:00:33,918 7424 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-04-17 08:00:33,934 7424 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2019-04-17 08:00:33,934 7424 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2019-04-17 08:00:33,934 7424 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2019-04-17 08:00:33,950 7424 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2019-04-17 08:00:33,950 7424 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2019-04-17 08:00:33,966 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2019-04-17 08:00:33,966 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2019-04-17 08:00:33,966 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2019-04-17 08:00:33,982 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2019-04-17 08:00:33,982 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2019-04-17 08:00:33,998 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2019-04-17 08:00:33,998 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2019-04-17 08:00:34,013 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2019-04-17 08:00:34,029 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2019-04-17 08:00:34,029 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2019-04-17 08:00:34,029 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2019-04-17 08:00:34,045 7424 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2019-04-17 08:00:34,045 7424 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2019-04-17 08:00:34,077 7424 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2019-04-17 08:00:34,077 7424 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2019-04-17 08:00:34,077 7424 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2019-04-17 08:00:34,092 7424 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2019-04-17 08:00:34,108 7424 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2019-04-17 08:00:34,108 7424 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-04-17 08:00:34,124 7424 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2019-04-17 08:00:34,124 7424 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2019-04-17 08:00:34,124 7424 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2019-04-17 08:00:34,140 7424 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2019-04-17 08:00:34,140 7424 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2019-04-17 08:00:34,156 7424 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2019-04-17 08:00:34,156 7424 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2019-04-17 08:00:34,156 7424 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2019-04-17 08:00:34,171 7424 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2019-04-17 08:00:34,171 7424 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2019-04-17 08:00:34,187 7424 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2019-04-17 08:00:34,187 7424 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2019-04-17 08:00:34,187 7424 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2019-04-17 08:00:34,203 7424 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioComponent'.
2019-04-17 08:00:34,203 7424 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioWorkload'.
2019-04-17 08:00:34,219 7424 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstaller'.
2019-04-17 08:00:34,219 7424 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstallerHealth'.
2019-04-17 08:00:34,219 7424 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstance'.
2019-04-17 08:00:34,235 7424 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioVsixInstaller'.
2019-04-17 08:00:34,235 7424 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudio'.
2019-04-17 08:00:34,250 7424 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudioInstaller'.
2019-04-17 08:00:34,250 7424 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudioVsixExtension'.
2019-04-17 08:00:34,250 7424 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioComponent'.
2019-04-17 08:00:34,266 7424 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioProduct'.
2019-04-17 08:00:34,266 7424 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioWorkload'.
2019-04-17 08:00:34,282 7424 [INFO ] - VERBOSE: Exporting function 'Uninstall-VisualStudio'.
2019-04-17 08:00:34,282 7424 [INFO ] - VERBOSE: Exporting function 'Uninstall-VisualStudioVsixExtension'.
2019-04-17 08:00:34,282 7424 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2019-04-17 08:00:34,298 7424 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2019-04-17 08:00:34,298 7424 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2019-04-17 08:00:34,314 7424 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2019-04-17 08:00:34,314 7424 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2019-04-17 08:00:34,329 7424 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2019-04-17 08:00:34,329 7424 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2019-04-17 08:00:34,345 7424 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2019-04-17 08:00:34,345 7424 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2019-04-17 08:00:34,394 7424 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2019-04-17 08:00:34,410 7424 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2019-04-17 08:00:34,410 7424 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioComponent'.
2019-04-17 08:00:34,410 7424 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioWorkload'.
2019-04-17 08:00:34,426 7424 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2019-04-17 08:00:34,426 7424 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2019-04-17 08:00:34,441 7424 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2019-04-17 08:00:34,441 7424 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2019-04-17 08:00:34,441 7424 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2019-04-17 08:00:34,457 7424 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2019-04-17 08:00:34,457 7424 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2019-04-17 08:00:34,473 7424 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2019-04-17 08:00:34,473 7424 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2019-04-17 08:00:34,473 7424 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2019-04-17 08:00:34,489 7424 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2019-04-17 08:00:34,489 7424 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2019-04-17 08:00:34,505 7424 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2019-04-17 08:00:34,521 7424 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2019-04-17 08:00:34,521 7424 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2019-04-17 08:00:34,552 7424 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2019-04-17 08:00:34,600 7424 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2019-04-17 08:00:34,600 7424 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2019-04-17 08:00:34,615 7424 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstaller'.
2019-04-17 08:00:34,615 7424 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstallerHealth'.
2019-04-17 08:00:34,631 7424 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstance'.
2019-04-17 08:00:34,631 7424 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioVsixInstaller'.
2019-04-17 08:00:34,631 7424 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2019-04-17 08:00:34,647 7424 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2019-04-17 08:00:34,647 7424 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2019-04-17 08:00:34,663 7424 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2019-04-17 08:00:34,679 7424 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2019-04-17 08:00:34,679 7424 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2019-04-17 08:00:34,741 7424 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2019-04-17 08:00:34,773 7424 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2019-04-17 08:00:34,773 7424 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2019-04-17 08:00:34,789 7424 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2019-04-17 08:00:34,789 7424 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2019-04-17 08:00:34,805 7424 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2019-04-17 08:00:34,820 7424 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2019-04-17 08:00:34,820 7424 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2019-04-17 08:00:34,836 7424 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2019-04-17 08:00:34,836 7424 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2019-04-17 08:00:34,852 7424 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2019-04-17 08:00:34,868 7424 [INFO ] - VERBOSE: Importing function 'Install-VisualStudio'.
2019-04-17 08:00:34,900 7424 [INFO ] - VERBOSE: Importing function 'Install-VisualStudioInstaller'.
2019-04-17 08:00:34,900 7424 [INFO ] - VERBOSE: Importing function 'Install-VisualStudioVsixExtension'.
2019-04-17 08:00:34,915 7424 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2019-04-17 08:00:34,915 7424 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2019-04-17 08:00:34,915 7424 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2019-04-17 08:00:34,931 7424 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioComponent'.
2019-04-17 08:00:34,931 7424 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioProduct'.
2019-04-17 08:00:34,947 7424 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioWorkload'.
2019-04-17 08:00:34,947 7424 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2019-04-17 08:00:34,962 7424 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2019-04-17 08:00:34,962 7424 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2019-04-17 08:00:34,978 7424 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2019-04-17 08:00:34,978 7424 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2019-04-17 08:00:34,978 7424 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2019-04-17 08:00:34,994 7424 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-04-17 08:00:34,994 7424 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2019-04-17 08:00:35,010 7424 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2019-04-17 08:00:35,010 7424 [INFO ] - VERBOSE: Importing function 'Uninstall-VisualStudio'.
2019-04-17 08:00:35,025 7424 [INFO ] - VERBOSE: Importing function 'Uninstall-VisualStudioVsixExtension'.
2019-04-17 08:00:35,025 7424 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2019-04-17 08:00:35,041 7424 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2019-04-17 08:00:35,041 7424 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2019-04-17 08:00:35,041 7424 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2019-04-17 08:00:35,057 7424 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2019-04-17 08:00:35,057 7424 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2019-04-17 08:00:35,080 7424 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2019-04-17 08:00:35,080 7424 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2019-04-17 08:00:35,080 7424 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2019-04-17 08:00:35,080 7424 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2019-04-17 08:00:35,096 7424 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2019-04-17 08:00:35,096 7424 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2019-04-17 08:00:35,111 7424 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2019-04-17 08:00:35,111 7424 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2019-04-17 08:00:35,414 7424 [DEBUG] - Running 'ChocolateyScriptRunner' for python2 v2.7.16 with packageScript 'C:\ProgramData\chocolatey\lib\python2\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\python2', installArguments: '', packageParameters: '',
2019-04-17 08:00:35,495 7424 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\python2\tools\chocolateyInstall.ps1'
2019-04-17 08:00:35,945 7424 [DEBUG] - Running Install-ChocolateyInstallPackage -file64 'C:\ProgramData\chocolatey\lib\python2\tools\python-2.7.16.amd64.msi' -fileType 'msi' -silentArgs '/qn /norestart ALLUSERS=1 ADDLOCAL=ALL TargetDir="C:\Python27"' -packageName 'python2' -file 'C:\ProgramData\chocolatey\lib\python2\tools\python-2.7.16.msi' 
2019-04-17 08:00:36,008 7424 [DEBUG] - Running Get-ProcessorBits -compare '32' 
2019-04-17 08:00:36,115 7424 [INFO ] - Installing 64-bit python2...
2019-04-17 08:00:36,483 7424 [DEBUG] - Ensuring 'C:\' exists
2019-04-17 08:00:36,787 7424 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0' -workingDirectory 'C:\ProgramData\chocolatey\lib\python2\tools' -statements '/i "C:\ProgramData\chocolatey\lib\python2\tools\python-2.7.16.amd64.msi" /qn /norestart ALLUSERS=1 ADDLOCAL=ALL TargetDir="C:\Python27" ' -exeToRun 'C:\WINDOWS\System32\msiexec.exe' 
2019-04-17 08:00:36,945 7424 [DEBUG] - Test-ProcessAdminRights: returning True
2019-04-17 08:00:37,008 7424 [DEBUG] - Elevating permissions and running ["C:\WINDOWS\System32\msiexec.exe" /i "C:\ProgramData\chocolatey\lib\python2\tools\python-2.7.16.amd64.msi" /qn /norestart ALLUSERS=1 ADDLOCAL=ALL TargetDir="C:\Python27" ]. This may take a while, depending on the statements.
2019-04-17 08:00:38,040 7424 [INFO ] - VERBOSE: T h i s   i n s t a l l a t i o n   p a c k a g e   i s   n o t   s u p p o r t e d   b y   t h i s   p r o c e s s o r   t y p e .   C o n t a c t   y o u r   p r o d u c t   v e n d o r . 
2019-04-17 08:00:38,056 7424 [INFO ] - VERBOSE:  
2019-04-17 08:00:38,056 7424 [INFO ] - VERBOSE:  
2019-04-17 08:00:38,123 7424 [DEBUG] - Command ["C:\WINDOWS\System32\msiexec.exe" /i "C:\ProgramData\chocolatey\lib\python2\tools\python-2.7.16.amd64.msi" /qn /norestart ALLUSERS=1 ADDLOCAL=ALL TargetDir="C:\Python27" ] exited with '1633'.
2019-04-17 08:00:38,185 7424 [WARN ] - WARNING: Installation of this MSI is not supported on this platform. Contact package maintainer(s) if you feel this is in error or if you need an architecture that is not available with the current packaging.
2019-04-17 08:00:38,361 7424 [ERROR] - ERROR: Running ["C:\WINDOWS\System32\msiexec.exe" /i "C:\ProgramData\chocolatey\lib\python2\tools\python-2.7.16.amd64.msi" /qn /norestart ALLUSERS=1 ADDLOCAL=ALL TargetDir="C:\Python27" ] was not successful. Exit code was '1633'. Exit code indicates the following: Installation of this MSI is not supported on this platform. Contact package maintainer(s) if you feel this is in error or if you need an architecture that is not available with the current packaging..
 at Start-ChocolateyProcessAsAdmin, C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.ps1: line 317
at Install-ChocolateyInstallPackage, C:\ProgramData\chocolatey\helpers\functions\Install-ChocolateyInstallPackage.ps1: line 326
at <ScriptBlock>, C:\ProgramData\chocolatey\lib\python2\tools\chocolateyInstall.ps1: line 21
at <ScriptBlock>, C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1: line 48
at <ScriptBlock>, <No file>: line 1
2019-04-17 08:00:38,424 7424 [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\python2\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '1633'.
2019-04-17 08:00:38,472 7424 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a']
2019-04-17 08:00:38,631 7424 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116'
2019-04-17 08:00:39,094 7424 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\python2'
2019-04-17 08:00:39,510 7424 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python2\python2.nupkg'
  with checksum 'AFA19F6A9B77C3F0790F9C7ECB810CE4'
2019-04-17 08:00:39,526 7424 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python2\python2.nuspec'
  with checksum 'DD26B30E22968C5E3E82BF0C5AFF4627'
2019-04-17 08:00:39,542 7424 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python2\legal\LICENSE.txt'
  with checksum '93E852765BD8C3D9A01D55D68F9FCC49'
2019-04-17 08:00:39,542 7424 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python2\legal\VERIFICATION.txt'
  with checksum '85ED28790E3107C0D2090EB060E8251C'
2019-04-17 08:00:39,558 7424 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python2\tools\chocolateyInstall.ps1'
  with checksum '07DD2CAB8B7E275B615182BDF0B4765C'
2019-04-17 08:00:39,860 7424 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python2\tools\python-2.7.16.amd64.msi'
  with checksum '2841E92BA89A6F036305A8A07FBE9D18'
2019-04-17 08:00:39,891 7424 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python2\tools\python-2.7.16.amd64.msi.ignore'
  with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956'
2019-04-17 08:00:40,113 7424 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\python2\tools\python-2.7.16.msi'
  with checksum '01A8C4BCA5F69E6F05E80495D5A5BCCB'
2019-04-17 08:00:40,416 7424 [DEBUG] - Attempting to replace "C:\ProgramData\chocolatey\.chocolatey\python2.2.7.16\.files"
 with "C:\ProgramData\chocolatey\.chocolatey\python2.2.7.16\.files.7424.update".
 Backup placed at "C:\ProgramData\chocolatey\.chocolatey\python2.2.7.16\.files.backup".
2019-04-17 08:00:40,447 7424 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python2.2.7.16\.files.backup".
2019-04-17 08:00:40,463 7424 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\.chocolatey\python2.2.7.16\.files.7424.update"
 to "C:\ProgramData\chocolatey\.chocolatey\python2.2.7.16\.files".
2019-04-17 08:00:40,479 7424 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python2.2.7.16\.files.7424.update".
2019-04-17 08:00:40,494 7424 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python2.2.7.16\.arguments".
2019-04-17 08:00:40,510 7424 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python2.2.7.16\.extra".
2019-04-17 08:00:40,526 7424 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python2.2.7.16\.version".
2019-04-17 08:00:40,526 7424 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python2.2.7.16\.sxs".
2019-04-17 08:00:40,542 7424 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\python2.2.7.16\.pin".
2019-04-17 08:00:40,558 7424 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2019-04-17 08:00:40,589 7424 [ERROR] - The install of python2 was NOT successful.
2019-04-17 08:00:40,605 7424 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\python2\tools\chocolateyInstall.ps1'.
 See log for details.
2019-04-17 08:00:40,637 7424 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\python2'
 to 'C:\ProgramData\chocolatey\lib-bad\python2'
2019-04-17 08:00:42,739 7424 [DEBUG] - Attempting to delete file "C:\Users\arm64\AppData\Local\NuGet\Cache\python2.2.7.16.nupkg".
2019-04-17 08:00:42,818 7424 [WARN ] - 
Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2019-04-17 08:00:42,833 7424 [INFO ] - 
2019-04-17 08:00:42,833 7424 [ERROR] - Failures
2019-04-17 08:00:42,849 7424 [ERROR] -  - python2 (exited 1633) - Error while running 'C:\ProgramData\chocolatey\lib\python2\tools\chocolateyInstall.ps1'.
 See log for details.
2019-04-17 08:00:42,865 7424 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2019-04-17 08:00:43,057 7424 [DEBUG] - Exiting with 1633

@jkunkee
Copy link

jkunkee commented Apr 17, 2019

The ARM64 Win32 SDK is already out, so projects can produce ARM64 packages. Ideally, native (ARM64) would be preferred, then x86, but avoiding x64 on ARM64 is necessary.

At the current moment there are no plans to ship x64 emulation, though I'd expect x86 emulation to outperform it for most workloads if it were to exist.

@vielmetti
Copy link

Just ran into this this morning! I'll retry with --forcex86.

@ferventcoder
Copy link
Member

This seems easy enough to add (famous last words I know).

@ferventcoder ferventcoder changed the title x86 packages should be default on ARM64 Support ARM64 by selecting x86 architecture Apr 18, 2019
@ferventcoder ferventcoder changed the title Support ARM64 by selecting x86 architecture Support ARM64 by selecting x86 32bit architecture Apr 18, 2019
ferventcoder added a commit that referenced this issue Apr 18, 2019
ARM64 ships x86 32-bit emulation, but as Microsoft (jkunkee) has
indicated, there are no current plans to ship x86-64 emulation. It
is preferred to automatically select 32bit architecture when the
PROCESSOR_ARCHITECTURE is ARM64 to ensure successful installations on
ARM64 architecture.
ferventcoder added a commit to ferventcoder/choco that referenced this issue Apr 18, 2019
* stable:
  (chocolateyGH-1800) Prefer 32-bit when ARM64 Architecture
@ferventcoder
Copy link
Member

@vielmetti @joaocgreis Just made the changes and will be shipping a beta of this this morning for you to test out.

@ferventcoder
Copy link
Member

A beta has been pushed up to the community repository - it will take awhile to go through moderation. You can get it quicker if you download it from this link: https://chocolatey.box.com/shared/static/szps4j8cuzdkgz8xhvxn3xvcaf9g6bvp.nupkg

@ferventcoder
Copy link
Member

This has been committed to stable as of b30427d and will be in Chocolatey v0.10.14.

@vielmetti
Copy link

Reporting success with --forcex86, at least for the one test of choco install vlc --forcex86.

(I thought that vlc had an arm64 version though?)

@ferventcoder
Copy link
Member

@vielmetti It likely does, but that isn't built into the package selection process - that would need to be done in each package to select the proper arch. That's a much bigger change that we'll need to communicate out wider with the community.

@ferventcoder ferventcoder changed the title Support ARM64 by selecting x86 32bit architecture Support ARM64 Win32 32bit emulation Apr 18, 2019
@ferventcoder
Copy link
Member

@vielmetti just added #1803 - subscribe to that for better support of ARM architectures, at least from a packaging perspective.

@ferventcoder
Copy link
Member

@jkunkee thanks for the quick feedback on this issue!

@joaocgreis
Copy link
Contributor Author

@ferventcoder I tested the beta package and it does not work. The environment variable PROCESSOR_ARCHITECTURE is defined system-wide as ARM64, but PowerShell apparently runs emulated and this is what is defined:

PS C:\> $env:PROCESSOR_ARCHITECTURE
x86
PS C:\> $env:PROCESSOR_ARCHITEW6432
ARM64

I was not aware of this difference in PowerShell when I opened this issue, I'm sorry for providing misleading information.

I tested this change and it works:

--- a/src/chocolatey.resources/helpers/functions/Get-OSArchitectureWidth.ps1
+++ b/src/chocolatey.resources/helpers/functions/Get-OSArchitectureWidth.ps1
@@ -53,7 +53,8 @@ param(
   Write-FunctionCallLogMessage -Invocation $MyInvocation -Parameters $PSBoundParameters

   $bits = 64
-  if (([System.IntPtr]::Size -eq 4) -and (Test-Path env:\PROCESSOR_ARCHITEW6432)) {
+  $processorArchiteW6432 = $env:PROCESSOR_ARCHITEW6432
+  if ($processorArchiteW6432 -and $processorArchiteW6432 -eq 'AMD64') {
     $bits = 64
   } elseif ([System.IntPtr]::Size -eq 4) {
     $bits = 32

@ferventcoder feel free to modify this as you see fit and commit, or let me know if I should open a PR.

joaocgreis added a commit to joaocgreis/choco that referenced this issue Apr 29, 2019
PowerShell runs emulated in ARM64 Windows systems. Thus, it is also
necessary to check the PROCESSOR_ARCHITEW6432 to determine if
Chocolatey should prefer 32-bit packages.
ferventcoder pushed a commit that referenced this issue May 26, 2019
PowerShell runs emulated in ARM64 Windows systems. Thus, it is also
necessary to check the PROCESSOR_ARCHITEW6432 to determine if
Chocolatey should prefer 32-bit packages.
ferventcoder added a commit that referenced this issue May 26, 2019
* pr1810:
  (GH-1800) Prefer 32-bit in ARM64 emulated PowerShell
ferventcoder added a commit to ferventcoder/choco that referenced this issue May 26, 2019
* stable:
  (chocolateyGH-1788) Use LiteralPath in Get-UninstallRegistryKey
  (chocolateyGH-1800) Prefer 32-bit in ARM64 emulated PowerShell
  (doc) Corrected typo
  (maint) Corrected whitespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants
@vielmetti @ferventcoder @joaocgreis @jkunkee @gep13 and others