We actually overwrite write-host with src\helpers\functions\write-host.ps1 which does logging and stuff.

----------------------------------------
 From: "Rich Siegel" <notifications@github.com>
Sent: Thursday, April 18, 2013 8:14 PM
To: "chocolatey/chocolatey" <chocolatey@noreply.github.com>
Subject: Re: [chocolatey] Update Install-ChocolateyPackage to check for cached package installers (#109)

In src/helpers/functions/Install-ChocolateyPackage.ps1: >    try { >      Write-Debug "Running 'Install-ChocolateyPackage' for $packageName with url:`'$url`', args: `'$silentArgs`' "; >   >      $chocTempDir = Join-Path $env:TEMP "chocolatey" >      $tempDir = Join-Path $chocTempDir "$packageName" >      if (![System.IO.Directory]::Exists($tempDir)) {[System.IO.Directory]::CreateDirectory($tempDir)} > -    $file = Join-Path $tempDir "$($packageName)Install.$fileType" > -   > -    Get-ChocolateyWebFile $packageName $file $url $url64bit > + > +    $remoteFilename = [System.IO.Path]::GetFileNameWithoutExtension($url) > +    $file = Join-Path $tempDir "Install-$remoteFilename.$fileType" > + > +    if (![System.IO.File]::Exists($file)) { > +      Get-ChocolateyWebFile $packageName $file $url $url64bit > +    } else { > +      Write-Host "$packageName installer exists in temp directory, download skipped."  

can we use write-output... 

http://windowsitpro.com/powershell/q-should-i-ever-use-write-host-powershell -
Reply to this email directly or view it on GitHub.