Update install-webplatform.ps1 (#152)

This commit is contained in:
Len 2018-01-27 00:44:50 -05:00 committed by FusionPBX
parent 68162fb1a2
commit 110ea265dd
1 changed files with 4 additions and 1 deletions

View File

@ -12,12 +12,15 @@ Function Install-WebPlatform() {
if (-not (Test-Path "${env:ProgramFiles}\Microsoft\Web Platform Installer\WebPlatformInstaller.exe")) {
$url = "http://download.microsoft.com/download/F/4/2/F42AB12D-C935-4E65-9D98-4E56F9ACBC8E/wpilauncher.exe"
$filename = Get-File $url
Start-Process $filename -Wait
Start-Process $filename
Start-Sleep -s 25
}
else {
#Start-Process "C:\Program Files\Microsoft\Web Platform Installer\WebPlatformInstaller.exe /silent" -Wait
}
Get-Process WebPlatformInstaller | ? { $_.CloseMainWindow() | Out-Null }
# list available applications - All, Available
# WebpiCmd-x64.exe /list /listoption:Available