anchor.diff:  $tempDir = Join-Path $chocTempDir "chocInstall"
   if (![System.IO.Directory]::Exists($tempDir)) {[System.IO.Directory]::CreateDirectory($tempDir)}
   $file = Join-Path $tempDir "chocolatey.zip"
  +$chocErrorLog = Join-Path $tempDir "chocError.log"
   
   function Download-File {
   param (
     [string]$url,
     [string]$file
    )
  -  Write-Host "Downloading $url to $file"
  +  Write-Output "Downloading $url to $file"
     $downloader = new-object System.Net.WebClient
     $downloader.Proxy.Credentials=[System.Net.CredentialCache]::DefaultNetworkCredentials;
     $downloader.DownloadFile($url, $file)
  
positive.code: 
  if ($unzipMethod -eq '7zip') {
    # download 7zip
    Write-Host "Download 7Zip commandline tool"
    $7zaExe = Join-Path $tempDir '7za.exe'
  
    Download-File 'https://chocolatey.org/7za.exe' "$7zaExe"
  
    # unzip the package
    Write-Host "Extracting $file to $tempDir..."
    Start-Process "$7zaExe" -ArgumentList "x -o`"$tempDir`" -y `"$file`"" -Wait -NoNewWindow
  } else {
    $shellApplication = new-object -com shell.application
  
negative.code:   $env:Path = [Environment]::GetEnvironmentVariable('Path',[System.EnvironmentVariableTarget]::Machine);
  }
  
  Write-Output 'Ensuring chocolatey.nupkg is in the lib folder'
  $chocoPkgDir = Join-Path $chocoPath 'lib\chocolatey'
  $nupkg = Join-Path $chocoPkgDir 'chocolatey.nupkg'
  if (![System.IO.Directory]::Exists($chocoPkgDir)) { [System.IO.Directory]::CreateDirectory($chocoPkgDir); }
  