feat: WinImage 9.0

- extract zip to tools directory, add batch file
This commit is contained in:
Iristyle
2013-07-14 11:29:00 -04:00
parent fa41ec8dbc
commit e4b0eb58c2
3 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
$package = 'WinImage'
try {
$location = Join-Path $Env:SystemDrive $Env:Chocolatey_Bin_Root
if (!(Test-Path $location))
{
$location = Join-Path $Env:SystemDrive 'tools'
}
$location = Join-Path $location $package
Remove-Item $location -Recurse -Force
Push-Location $Env:ChocolateyInstall\bin
$batch = 'winimage.bat'
if (Test-Path $batch)
{
Remove-Item $batch
}
Pop-Location
Write-ChocolateySuccess $package
} catch {
Write-ChocolateyFailure $package "$($_.Exception.Message)"
throw
}