From 3315fa09dc370c3c6295b8253f16af032af689c2 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 22 Oct 2019 21:58:30 +0530 Subject: [PATCH] Overwrite existing PHP on windows --- src/scripts/win32.ps1 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 3deba4d4..6eaa22b8 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -30,12 +30,7 @@ if($installed -ne $version) { if($version -lt '7.0') { Install-Module -Name VcRedist -Force } - Uninstall-Php C:\tools\php - Install-Php -Version $version -Architecture x86 -ThreadSafe $true -InstallVC -Path C:\tools\php$version -TimeZone UTC -InitialPhpIni Production -Force >$null 2>&1 - (Get-PhpSwitcher).targets - Initialize-PhpSwitcher -Alias C:\tools\php -Scope CurrentUser -Force - Add-PhpToSwitcher -Name $version -Path C:\tools\php$version -Force - Switch-Php $version -Force + Install-Php -Version $version -Architecture x86 -ThreadSafe $true -InstallVC -Path C:\tools\php -TimeZone UTC -InitialPhpIni Production -Force >$null 2>&1 $status = "Installed PHP$version" }