forked from norman/fusionpbx-install.sh-github-mirror
Update install-webplatform.ps1 (#152)
This commit is contained in:
@@ -12,12 +12,15 @@ Function Install-WebPlatform() {
|
|||||||
if (-not (Test-Path "${env:ProgramFiles}\Microsoft\Web Platform Installer\WebPlatformInstaller.exe")) {
|
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"
|
$url = "http://download.microsoft.com/download/F/4/2/F42AB12D-C935-4E65-9D98-4E56F9ACBC8E/wpilauncher.exe"
|
||||||
$filename = Get-File $url
|
$filename = Get-File $url
|
||||||
Start-Process $filename -Wait
|
Start-Process $filename
|
||||||
|
Start-Sleep -s 25
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
#Start-Process "C:\Program Files\Microsoft\Web Platform Installer\WebPlatformInstaller.exe /silent" -Wait
|
#Start-Process "C:\Program Files\Microsoft\Web Platform Installer\WebPlatformInstaller.exe /silent" -Wait
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Get-Process WebPlatformInstaller | ? { $_.CloseMainWindow() | Out-Null }
|
||||||
|
|
||||||
# list available applications - All, Available
|
# list available applications - All, Available
|
||||||
# WebpiCmd-x64.exe /list /listoption:Available
|
# WebpiCmd-x64.exe /list /listoption:Available
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user