Skip to content

Commit

Permalink
nirlauncher using incorrect temp directory #127
Browse files Browse the repository at this point in the history
  • Loading branch information
dtgm committed Jun 8, 2016
1 parent 0715f55 commit c1abb59
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions automatic/nirlauncher/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ $checksumType = 'sha1'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$installFile = Join-Path $toolsDir "$($packageName).exe"

$chocTempDir = Join-Path $Env:Temp "chocolatey"
$tempDir = Join-Path $chocTempDir "$packageName"
if (![System.IO.Directory]::Exists($tempDir)) {[System.IO.Directory]::CreateDirectory($tempDir)}
$zipFile = Join-Path $tempDir "$($packageName).zip"
$chocoTempDir = Join-Path $Env:Temp "$packageName"
if (![System.IO.Directory]::Exists($chocoTempDir)) {[System.IO.Directory]::CreateDirectory($chocoTempDir)}
$zipFile = Join-Path $chocoTempDir "$($packageName).zip"

$referer = "http://launcher.nirsoft.net/download.html"
$wc = New-Object System.Net.WebClient
Expand Down

0 comments on commit c1abb59

Please sign in to comment.