From 48165a244bd63ef5cbbe4b3b6ad6ba96d487961a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 3 Jan 2018 03:29:44 -0700 Subject: [PATCH] Update install-webplatform.ps1 --- windows/resources/install-webplatform.ps1 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/windows/resources/install-webplatform.ps1 b/windows/resources/install-webplatform.ps1 index f2913de..5bb599c 100644 --- a/windows/resources/install-webplatform.ps1 +++ b/windows/resources/install-webplatform.ps1 @@ -6,7 +6,6 @@ Function Install-WebPlatform() { #send message if (Get-Installed-App "*Web Platform*") { Write-Host "Web Platform Installer is already installed" - return } #download and install the web platform installer @@ -16,7 +15,7 @@ Function Install-WebPlatform() { Start-Process $filename -Wait } else { - Start-Process "C:\Program Files\Microsoft\Web Platform Installer\WebPlatformInstaller.exe" -Wait + #Start-Process "C:\Program Files\Microsoft\Web Platform Installer\WebPlatformInstaller.exe /silent" -Wait } # list available applications - All, Available @@ -26,12 +25,12 @@ Function Install-WebPlatform() { if (-not (Test-Path "${env:ProgramFiles}\PHP\v7.1\php.exe")) { $cpu = Get-CPU if ($cpu -eq "x86") { - $command = "WebpiCmd.exe /install /Products:PHP71 /AcceptEula" + ."C:\Program Files\Microsoft\Web Platform Installer\WebpiCmd-x64.exe" "/install" "/Products:PHP71" "/AcceptEula" } else { - $command = "WebpiCmd-x64.exe /install /Products:PHP71x64 /AcceptEula" + ."C:\Program Files\Microsoft\Web Platform Installer\WebpiCmd-x64.exe" "/install" "/Products:PHP71x64" "/AcceptEula" } - Start-Process $command -Wait } -} \ No newline at end of file +} +#Install-WebPlatform