anchor.diff:    $env:Path = [Environment]::GetEnvironmentVariable('Path',[System.EnvironmentVariableTarget]::Machine);
   }
   
  -Write-Host 'Ensuring chocolatey.nupkg is in the lib folder'
  +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); }
  
positive.code: }
  
  # call chocolatey install
  Write-Host "Installing chocolatey on this machine"
  $toolsFolder = Join-Path $tempDir "tools"
  $chocInstallPS1 = Join-Path $toolsFolder "chocolateyInstall.ps1"
  
  & $chocInstallPS1
  
  Write-Host 'Ensuring chocolatey commands are on the path'
  $chocInstallVariableName = "ChocolateyInstall"
  $chocoPath = [Environment]::GetEnvironmentVariable($chocInstallVariableName, [System.EnvironmentVariableTarget]::User)
  if ($chocoPath -eq $null -or $chocoPath -eq '') {
  
negative.code: 
  if ($unzipMethod -eq '7zip') {
    # download 7zip
    Write-Output "Download 7Zip commandline tool"
    $7zaExe = Join-Path $tempDir '7za.exe'
  
    Download-File 'https://chocolatey.org/7za.exe' "$7zaExe"
  
    # unzip the package
    Write-Output "Extracting $file to $tempDir..."
    Start-Process "$7zaExe" -ArgumentList "x -o`"$tempDir`" -y `"$file`"" -Wait -NoNewWindow
  } else {
    $shellApplication = new-object -com shell.application
  