fusionpbx-install.sh/windows/resources/install-7zip.ps1

12 lines
409 B
PowerShell
Raw Normal View History

2018-01-03 09:13:29 +01:00
. .\resources\get-file.ps1
if (-not (Test-Path "c:\Program Files\7-Zip\7z.exe")) {
$cpu = $env:PROCESSOR_ARCHITECTURE
Write-Host "Downloading and Installing 7-Zip for $cpu" -ForegroundColor Cyan
if ($cpu -eq "x86") {
$zip7 = Get-File http://www.7-zip.org/a/7z1604.msi
}
else {
$zip7 = Get-File http://www.7-zip.org/a/7z1604-x64.msi
}
Start-Process msiexec "/i $zip7 /passive /qb" -Wait
}