chocolatey-community / chocolatey-packages

Chocolatey Community Maintainers Team Packages - packages that are managed and maintained by core community team for community package repository (https://community.chocolatey.org/packages)
https://community.chocolatey.org/profiles/chocolatey-community
Apache License 2.0
443 stars 375 forks source link

(php) Access Denied when launching executable #1979

Closed davidenco closed 1 year ago

davidenco commented 2 years ago

Chocolatey Version

1.1.0

Chocolatey License

No response

Package Version

8.1.10

Current Behaviour

Using Windows 10 x64.

PHP installs fine, but any attempt to run the EXE files results in "Access is denied".

Reverting back to PHP 8.1.9 works fine.

Expected Behaviour

No response

Steps To Reproduce

  1. Windows 10 x64
  2. Run "choco install php --package-parameters='"/InstallDir:C:\tools\PHP"' -y"
  3. Run "C:\tools\PHP\php.exe" or any other PHP EXE in that folder to get "Access is denied."

Environment

- Operating System: Windows 10 x64
- PowerShell Version: 5.1.19041.1682
- Shell: cmd

Chocolatey Log

2022-08-31 12:48:24,242 9512 [DEBUG] - XmlConfiguration is now operational
2022-08-31 12:48:24,289 9512 [INFO ] - ============================================================
2022-08-31 12:48:24,446 9512 [INFO ] - Chocolatey v1.1.0
2022-08-31 12:48:24,446 9512 [DEBUG] - Chocolatey is running on Windows v 10.0.19044.0
2022-08-31 12:48:24,446 9512 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2022-08-31 12:48:24,446 9512 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2022-08-31 12:48:24,462 9512 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install php --package-parameters='"/InstallDir:C:\tools\PHP"' -y
2022-08-31 12:48:24,462 9512 [DEBUG] - Received arguments: install php --package-parameters='/InstallDir:C:\tools\PHP' -y
2022-08-31 12:48:24,506 9512 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2022-08-31 12:48:24,506 9512 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2022-08-31 12:48:24,522 9512 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2022-08-31 12:48:24,569 9512 [DEBUG] - Performing validation checks.
2022-08-31 12:48:24,569 9512 [DEBUG] - Global Configuration Validation Checks:
2022-08-31 12:48:24,569 9512 [DEBUG] -  - Package Exit Code / Exit On Reboot = Checked
2022-08-31 12:48:24,569 9512 [DEBUG] - System State Validation Checks:
2022-08-31 12:48:24,584 9512 [DEBUG] -  Reboot Requirement Checks:
2022-08-31 12:48:24,584 9512 [DEBUG] -  - Pending Computer Rename = Checked
2022-08-31 12:48:24,584 9512 [DEBUG] -  - Pending Component Based Servicing = Checked
2022-08-31 12:48:24,584 9512 [DEBUG] -  - Pending Windows Auto Update = Checked
2022-08-31 12:48:24,584 9512 [DEBUG] -  - Pending File Rename Operations = Ignored
2022-08-31 12:48:24,584 9512 [DEBUG] -  - Pending Windows Package Installer = Checked
2022-08-31 12:48:24,584 9512 [DEBUG] -  - Pending Windows Package Installer SysWow64 = Checked
2022-08-31 12:48:24,584 9512 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2022-08-31 12:48:24,584 9512 [DEBUG] - The source 'https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
2022-08-31 12:48:24,600 9512 [DEBUG] - 
NOTE: Hiding sensitive configuration data! Please double and triple
 check to be sure no sensitive data is shown, especially if copying
 output to a gist for review.
2022-08-31 12:48:24,600 9512 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\d.reade\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://community.chocolatey.org/api/v2/'|SourceType='normal'|
Debug='False'|Verbose='False'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|
DisableCompatibilityChecks='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='php'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='php'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|PackageParameters='/InstallDir:C:\tools\PHP'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.19044.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='1.1.0.0'|
Information.ChocolateyProductVersion='1.1.0'|
Information.FullName='choco, Version=1.1.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='d.reade'|Information.UserDomainName='READES'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='False'|Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Information.CurrentDirectory='C:\tools'|
Features.AutoUninstaller='True'|
Features.ChecksumFiles='True'|Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseEnhancedExitCodes='False'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='True'|
ListCommand.LocalOnly='False'|ListCommand.IdOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|
ListCommand.Exact='False'|ListCommand.ByIdOnly='False'|
ListCommand.ByTagOnly='False'|ListCommand.IdStartsWith='False'|
ListCommand.OrderByPopularity='False'|ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'|
ApiKeyCommand.Remove='False'|PinCommand.Command='unknown'|
OutdatedCommand.IgnorePinned='False'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='unknown'|
2022-08-31 12:48:24,600 9512 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2022-08-31 12:48:24,600 9512 [INFO ] - Installing the following packages:
2022-08-31 12:48:24,616 9512 [INFO ] - php
2022-08-31 12:48:24,616 9512 [INFO ] - By installing, you accept licenses for the packages.
2022-08-31 12:48:24,695 9512 [DEBUG] - Using 'https://community.chocolatey.org/api/v2/'.
2022-08-31 12:48:25,102 9512 [DEBUG] - - Supports prereleases? 'True'.
2022-08-31 12:48:25,102 9512 [DEBUG] - - Is ServiceBased? 'True'.
2022-08-31 12:48:25,243 9512 [DEBUG] - Package 'php' found on source 'https://community.chocolatey.org/api/v2/'
2022-08-31 12:48:25,306 9512 [INFO ] - [NuGet] Attempting to resolve dependency 'vcredist140 (= 14.28.29325.2)'.
2022-08-31 12:48:25,400 9512 [INFO ] - [NuGet] Attempting to resolve dependency 'chocolatey-core.extension (= 1.3.3)'.
2022-08-31 12:48:25,446 9512 [INFO ] - [NuGet] Attempting to resolve dependency 'chocolatey-compatibility.extension (= 1.0.0)'.
2022-08-31 12:48:25,468 9512 [INFO ] - [NuGet] Attempting to resolve dependency 'KB3033929 (= 1.0.3)'.
2022-08-31 12:48:25,484 9512 [INFO ] - [NuGet] Attempting to resolve dependency 'chocolatey-windowsupdate.extension (= 1.0.4)'.
2022-08-31 12:48:25,515 9512 [INFO ] - [NuGet] Attempting to resolve dependency 'KB3035131 (= 1.0.3)'.
2022-08-31 12:48:25,531 9512 [INFO ] - [NuGet] Attempting to resolve dependency 'KB2919355 (= 1.0.20160915)'.
2022-08-31 12:48:25,547 9512 [INFO ] - [NuGet] Attempting to resolve dependency 'KB2919442 (= 1.0.20160915)'.
2022-08-31 12:48:25,562 9512 [INFO ] - [NuGet] Attempting to resolve dependency 'kb2999226 (= 1.0.20170509)'.
2022-08-31 12:48:37,774 9512 [INFO ] - [NuGet] Attempting to resolve dependency 'chocolatey (= 0.10.0)'.
2022-08-31 12:48:38,089 9512 [INFO ] - [NuGet] Installing 'php 8.1.10'.
2022-08-31 12:48:38,089 9512 [DEBUG] - [NuGet] Added file 'LICENSE.txt' to folder 'php\legal'.
2022-08-31 12:48:38,089 9512 [DEBUG] - [NuGet] Added file 'VERIFICATION.txt' to folder 'php\legal'.
2022-08-31 12:48:38,089 9512 [DEBUG] - [NuGet] Added file 'chocolateyInstall.ps1' to folder 'php\tools'.
2022-08-31 12:48:38,089 9512 [DEBUG] - [NuGet] Added file 'chocolateyUninstall.ps1' to folder 'php\tools'.
2022-08-31 12:48:38,105 9512 [DEBUG] - [NuGet] Added file 'helpers.ps1' to folder 'php\tools'.
2022-08-31 12:48:38,121 9512 [DEBUG] - [NuGet] Added file 'php-8.1.10-nts-Win32-vs16-x64.zip' to folder 'php\tools'.
2022-08-31 12:48:38,152 9512 [DEBUG] - [NuGet] Added file 'php-8.1.10-nts-Win32-vs16-x86.zip' to folder 'php\tools'.
2022-08-31 12:48:38,168 9512 [DEBUG] - [NuGet] Added file 'php-8.1.10-Win32-vs16-x64.zip' to folder 'php\tools'.
2022-08-31 12:48:38,199 9512 [DEBUG] - [NuGet] Added file 'php-8.1.10-Win32-vs16-x86.zip' to folder 'php\tools'.
2022-08-31 12:48:38,496 9512 [DEBUG] - [NuGet] Added file 'php.nupkg' to folder 'php'.
2022-08-31 12:48:38,776 9512 [DEBUG] - [NuGet] Added file 'php.nuspec' to folder 'php'.
2022-08-31 12:48:38,776 9512 [INFO ] - [NuGet] Successfully installed 'php 8.1.10'.
2022-08-31 12:48:38,776 9512 [INFO ] - 
php v8.1.10 [Approved]
2022-08-31 12:48:38,792 9512 [INFO ] - php package files install completed. Performing other installation steps.
2022-08-31 12:48:38,901 9512 [DEBUG] - Setting installer args for php
2022-08-31 12:48:38,901 9512 [DEBUG] - Setting package parameters for php
2022-08-31 12:48:38,901 9512 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\php\tools\chocolateyInstall.ps1':
2022-08-31 12:48:38,901 9512 [DEBUG] - $ErrorActionPreference = 'Stop'

$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
. $toolsPath\helpers.ps1

$installLocation = GetInstallLocation "$toolsPath\.."

if ($installLocation) {
  Write-Host "Uninstalling previous version of php..."
  UninstallPackage -libDirectory "$toolsPath\.." -packageName $env:ChocolateyPackageName
  Uninstall-ChocolateyPath $installLocation
}

$pp = Get-PackageParameters

$filesInfo = @{
  filets32  = "$toolsPath\php-8.1.10-Win32-vs16-x86.zip"
  filets64  = "$toolsPath\php-8.1.10-Win32-vs16-x64.zip"
  filents32 = "$toolsPath\php-8.1.10-nts-Win32-vs16-x86.zip"
  filents64 = "$toolsPath\php-8.1.10-nts-Win32-vs16-x64.zip"
}

if ($pp.ThreadSafe) {
  $file32 = $filesInfo.filets32
  $file64 = $filesInfo.filets64
} else {
  $file32 = $filesInfo.filents32
  $file64 = $filesInfo.filents64
}

$packageArgs = @{
  packageName    = $env:ChocolateyPackageName
  file           = $file32
  file64         = $file64
}

$newInstallLocation = $packageArgs.Destination = GetNewInstallLocation $packageArgs.packageName $env:ChocolateyPackageVersion $pp

Get-ChocolateyUnzip @packageArgs

Get-ChildItem $toolsPath\*.zip | ForEach-Object { Remove-Item $_ -ea 0; if (Test-Path $_) { Set-Content "$_.ignore" } }

if (!$pp.DontAddToPath) { Install-ChocolateyPath $newInstallLocation 'Machine' }

$php_ini_path = $newInstallLocation + '/php.ini'

if (($installLocation -ne $newInstallLocation) -and (Test-Path "$installLocation\php.ini")) {
  Write-Host "Moving old configuration file."
  Move-Item "$installLocation\php.ini" "$php_ini_path"

  $di = Get-ChildItem $installLocation -ea 0 | Measure-Object
  if ($di.Count -eq 0) {
    Write-Host "Removing old install location."
    Remove-Item -Force -ea 0 $installLocation
  }
}

if (!(Test-Path $php_ini_path)) {
  Write-Host 'Creating default php.ini'
  Copy-Item $newInstallLocation/php.ini-production $php_ini_path

  Write-Host 'Configuring PHP extensions directory'
  (Get-Content $php_ini_path) -replace ';\s?extension_dir = "ext"', 'extension_dir = "ext"' | Set-Content $php_ini_path
}

if (!$pp.ThreadSafe) { Write-Host 'Please make sure you have CGI installed in IIS for local hosting' }

2022-08-31 12:48:38,932 9512 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\php\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '/InstallDir:C:\tools\PHP'']
2022-08-31 12:48:38,932 9512 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-GB, PublicKeyToken=31bf3856ad364e35, requested by ''
2022-08-31 12:48:39,172 9512 [DEBUG] - Host version is 5.1.19041.1, PowerShell Version is '5.1.19041.1682' and CLR Version is '4.0.30319.42000'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2022-08-31 12:48:39,904 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2022-08-31 12:48:39,920 9512 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2022-08-31 12:48:39,935 9512 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2022-08-31 12:48:39,935 9512 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2022-08-31 12:48:39,935 9512 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2022-08-31 12:48:39,935 9512 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2022-08-31 12:48:39,935 9512 [DEBUG] - Loading community extensions
2022-08-31 12:48:39,951 9512 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'
2022-08-31 12:48:39,951 9512 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'.
2022-08-31 12:48:39,998 9512 [DEBUG] - Function 'Get-PackageParameters' exists, ignoring export.
2022-08-31 12:48:39,998 9512 [DEBUG] - Function 'Get-UninstallRegistryKey' exists, ignoring export.
2022-08-31 12:48:39,998 9512 [DEBUG] - Exporting function 'Install-ChocolateyDesktopLink' for backwards compatibility
2022-08-31 12:48:39,998 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2022-08-31 12:48:39,998 9512 [DEBUG] - Exporting function 'Write-ChocolateyFailure' for backwards compatibility
2022-08-31 12:48:39,998 9512 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2022-08-31 12:48:40,013 9512 [DEBUG] - Exporting function 'Write-ChocolateySuccess' for backwards compatibility
2022-08-31 12:48:40,013 9512 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2022-08-31 12:48:40,013 9512 [DEBUG] - Exporting function 'Write-FileUpdateLog' for backwards compatibility
2022-08-31 12:48:40,013 9512 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2022-08-31 12:48:40,013 9512 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2022-08-31 12:48:40,013 9512 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2022-08-31 12:48:40,013 9512 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2022-08-31 12:48:40,013 9512 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2022-08-31 12:48:40,013 9512 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
2022-08-31 12:48:40,013 9512 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
2022-08-31 12:48:40,092 9512 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2022-08-31 12:48:40,092 9512 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2022-08-31 12:48:40,092 9512 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2022-08-31 12:48:40,092 9512 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2022-08-31 12:48:40,092 9512 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2022-08-31 12:48:40,092 9512 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2022-08-31 12:48:40,092 9512 [INFO ] - VERBOSE: Exporting function 'Remove-Process'.
2022-08-31 12:48:40,092 9512 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2022-08-31 12:48:40,092 9512 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2022-08-31 12:48:40,092 9512 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2022-08-31 12:48:40,092 9512 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2022-08-31 12:48:40,092 9512 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2022-08-31 12:48:40,092 9512 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2022-08-31 12:48:40,092 9512 [INFO ] - VERBOSE: Importing function 'Remove-Process'.
2022-08-31 12:48:40,092 9512 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'
2022-08-31 12:48:40,107 9512 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'.
2022-08-31 12:48:40,154 9512 [INFO ] - VERBOSE: Exporting function 'Install-DotNetFramework'.
2022-08-31 12:48:40,154 9512 [INFO ] - VERBOSE: Exporting function 'Install-DotNetDevPack'.
2022-08-31 12:48:40,154 9512 [INFO ] - VERBOSE: Importing function 'Install-DotNetDevPack'.
2022-08-31 12:48:40,154 9512 [INFO ] - VERBOSE: Importing function 'Install-DotNetFramework'.
2022-08-31 12:48:40,154 9512 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2022-08-31 12:48:40,154 9512 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2022-08-31 12:48:40,248 9512 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2022-08-31 12:48:40,248 9512 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2022-08-31 12:48:40,248 9512 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2022-08-31 12:48:40,248 9512 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2022-08-31 12:48:40,248 9512 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2022-08-31 12:48:40,248 9512 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2022-08-31 12:48:40,248 9512 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2022-08-31 12:48:40,248 9512 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2022-08-31 12:48:40,248 9512 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2022-08-31 12:48:40,248 9512 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2022-08-31 12:48:40,248 9512 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2022-08-31 12:48:40,248 9512 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2022-08-31 12:48:40,263 9512 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2022-08-31 12:48:40,279 9512 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2022-08-31 12:48:40,279 9512 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2022-08-31 12:48:40,280 9512 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-08-31 12:48:40,280 9512 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2022-08-31 12:48:40,281 9512 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2022-08-31 12:48:40,281 9512 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2022-08-31 12:48:40,282 9512 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2022-08-31 12:48:40,283 9512 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2022-08-31 12:48:40,283 9512 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2022-08-31 12:48:40,284 9512 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2022-08-31 12:48:40,284 9512 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2022-08-31 12:48:40,285 9512 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2022-08-31 12:48:40,286 9512 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2022-08-31 12:48:40,286 9512 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2022-08-31 12:48:40,287 9512 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2022-08-31 12:48:40,287 9512 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2022-08-31 12:48:40,288 9512 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2022-08-31 12:48:40,289 9512 [INFO ] - VERBOSE: Exporting function 'Remove-Process'.
2022-08-31 12:48:40,289 9512 [INFO ] - VERBOSE: Exporting function 'Install-DotNetDevPack'.
2022-08-31 12:48:40,290 9512 [INFO ] - VERBOSE: Exporting function 'Install-DotNetFramework'.
2022-08-31 12:48:40,290 9512 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2022-08-31 12:48:40,291 9512 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2022-08-31 12:48:40,292 9512 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2022-08-31 12:48:40,292 9512 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2022-08-31 12:48:40,293 9512 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2022-08-31 12:48:40,293 9512 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2022-08-31 12:48:40,294 9512 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2022-08-31 12:48:40,295 9512 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2022-08-31 12:48:40,295 9512 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2022-08-31 12:48:40,296 9512 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-DotNetDevPack'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-DotNetFramework'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Remove-Process'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2022-08-31 12:48:40,312 9512 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2022-08-31 12:48:40,328 9512 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2022-08-31 12:48:40,328 9512 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2022-08-31 12:48:40,328 9512 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2022-08-31 12:48:40,328 9512 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2022-08-31 12:48:40,328 9512 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2022-08-31 12:48:40,328 9512 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2022-08-31 12:48:40,328 9512 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2022-08-31 12:48:40,328 9512 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2022-08-31 12:48:40,328 9512 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2022-08-31 12:48:40,328 9512 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2022-08-31 12:48:40,328 9512 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2022-08-31 12:48:40,328 9512 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2022-08-31 12:48:40,328 9512 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2022-08-31 12:48:40,328 9512 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2022-08-31 12:48:40,375 9512 [DEBUG] - ---------------------------Script Execution---------------------------
2022-08-31 12:48:40,375 9512 [DEBUG] - Running 'ChocolateyScriptRunner' for php v8.1.10 with packageScript 'C:\ProgramData\chocolatey\lib\php\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\php', installArguments: '', packageParameters: '/InstallDir:C:\tools\PHP',
2022-08-31 12:48:40,375 9512 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\php\tools\chocolateyInstall.ps1'
2022-08-31 12:48:40,406 9512 [DEBUG] - Checking for uninstall text document in C:\ProgramData\chocolatey\lib\php\tools\..
2022-08-31 12:48:40,437 9512 [DEBUG] - Running Get-PackageParameters 
2022-08-31 12:48:40,437 9512 [DEBUG] - Parsing $env:ChocolateyPackageParameters and $env:ChocolateyPackageParametersSensitive for parameters
2022-08-31 12:48:40,453 9512 [DEBUG] - Adding package param 'InstallDir'='C:\tools\PHP'
2022-08-31 12:48:40,500 9512 [DEBUG] - Running Get-ChocolateyUnzip -destination 'C:\tools\PHP' -fileFullPath64 'C:\ProgramData\chocolatey\lib\php\tools\php-8.1.10-nts-Win32-vs16-x64.zip' -packageName 'php' -fileFullPath 'C:\ProgramData\chocolatey\lib\php\tools\php-8.1.10-nts-Win32-vs16-x86.zip' 
2022-08-31 12:48:40,500 9512 [DEBUG] - Running Get-ProcessorBits -compare '32' 
2022-08-31 12:48:40,515 9512 [INFO ] - Extracting 64-bit C:\ProgramData\chocolatey\lib\php\tools\php-8.1.10-nts-Win32-vs16-x64.zip to C:\tools\PHP...
2022-08-31 12:48:40,547 9512 [DEBUG] - 7zip found at 'C:\ProgramData\chocolatey\tools\7z.exe'
2022-08-31 12:48:40,547 9512 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\tools\7z.exe' x -aoa -bd -bb1 -o"C:\tools\PHP" -y "C:\ProgramData\chocolatey\lib\php\tools\php-8.1.10-nts-Win32-vs16-x64.zip"]
2022-08-31 12:48:41,492 9512 [INFO ] - VERBOSE: 7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
2022-08-31 12:48:41,492 9512 [INFO ] - VERBOSE: 
2022-08-31 12:48:41,492 9512 [INFO ] - VERBOSE: Scanning the drive for archives:
2022-08-31 12:48:41,492 9512 [INFO ] - VERBOSE: 1 file, 30663735 bytes (30 MiB)
2022-08-31 12:48:41,492 9512 [INFO ] - VERBOSE: 
2022-08-31 12:48:41,492 9512 [INFO ] - VERBOSE: Extracting archive: C:\ProgramData\chocolatey\lib\php\tools\php-8.1.10-nts-Win32-vs16-x64.zip
2022-08-31 12:48:41,492 9512 [INFO ] - VERBOSE: 
2022-08-31 12:48:41,492 9512 [INFO ] - VERBOSE: --
2022-08-31 12:48:41,508 9512 [INFO ] - VERBOSE: Path = C:\ProgramData\chocolatey\lib\php\tools\php-8.1.10-nts-Win32-vs16-x64.zip
2022-08-31 12:48:41,508 9512 [INFO ] - VERBOSE: Type = zip
2022-08-31 12:48:41,508 9512 [INFO ] - VERBOSE: Physical Size = 30663735
2022-08-31 12:48:41,508 9512 [INFO ] - VERBOSE: 
2022-08-31 12:48:41,508 9512 [INFO ] - VERBOSE: - deplister.exe
2022-08-31 12:48:41,508 9512 [INFO ] - VERBOSE: - dev\php8.lib
2022-08-31 12:48:41,508 9512 [INFO ] - VERBOSE: - ext\
2022-08-31 12:48:41,508 9512 [INFO ] - VERBOSE: - extras\
2022-08-31 12:48:41,508 9512 [INFO ] - VERBOSE: - extras\ssl\
2022-08-31 12:48:41,508 9512 [INFO ] - VERBOSE: - extras\ssl\openssl.cnf
2022-08-31 12:48:41,523 9512 [INFO ] - VERBOSE: - ext\php_bz2.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_com_dotnet.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_curl.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_dba.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_dl_test.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - dev\
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_exif.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_ffi.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_fileinfo.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_ftp.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_gd.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_gettext.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_gmp.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_imap.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_intl.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_ldap.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_mysqli.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_enchant.dll
2022-08-31 12:48:41,524 9512 [INFO ] - VERBOSE: - ext\php_oci8_19.dll
2022-08-31 12:48:41,540 9512 [INFO ] - VERBOSE: - ext\php_opcache.dll
2022-08-31 12:48:41,541 9512 [INFO ] - VERBOSE: - ext\php_odbc.dll
2022-08-31 12:48:41,541 9512 [INFO ] - VERBOSE: - ext\php_openssl.dll
2022-08-31 12:48:41,541 9512 [INFO ] - VERBOSE: - ext\php_pdo_firebird.dll
2022-08-31 12:48:41,541 9512 [INFO ] - VERBOSE: - ext\php_pdo_mysql.dll
2022-08-31 12:48:41,541 9512 [INFO ] - VERBOSE: - ext\php_pdo_oci.dll
2022-08-31 12:48:41,541 9512 [INFO ] - VERBOSE: - ext\php_pdo_odbc.dll
2022-08-31 12:48:41,541 9512 [INFO ] - VERBOSE: - ext\php_pdo_pgsql.dll
2022-08-31 12:48:41,541 9512 [INFO ] - VERBOSE: - ext\php_pdo_sqlite.dll
2022-08-31 12:48:41,541 9512 [INFO ] - VERBOSE: - ext\php_pgsql.dll
2022-08-31 12:48:41,541 9512 [INFO ] - VERBOSE: - ext\php_shmop.dll
2022-08-31 12:48:41,541 9512 [INFO ] - VERBOSE: - ext\php_snmp.dll
2022-08-31 12:48:41,541 9512 [INFO ] - VERBOSE: - ext\php_soap.dll
2022-08-31 12:48:41,556 9512 [INFO ] - VERBOSE: - ext\php_sockets.dll
2022-08-31 12:48:41,556 9512 [INFO ] - VERBOSE: - ext\php_sodium.dll
2022-08-31 12:48:41,556 9512 [INFO ] - VERBOSE: - ext\php_sqlite3.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - ext\php_sysvshm.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - ext\php_mbstring.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - ext\php_tidy.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - ext\php_xsl.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - ext\php_zend_test.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - glib-2.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - gmodule-2.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - icudt70.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - icuin70.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - icuio70.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - icuuc70.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - lib\
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - libcrypto-1_1-x64.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - libenchant2.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - libpq.dll
2022-08-31 12:48:41,572 9512 [INFO ] - VERBOSE: - libsasl.dll
2022-08-31 12:48:41,588 9512 [INFO ] - VERBOSE: - libsodium.dll
2022-08-31 12:48:41,589 9512 [INFO ] - VERBOSE: - libsqlite3.dll
2022-08-31 12:48:41,590 9512 [INFO ] - VERBOSE: - libssh2.dll
2022-08-31 12:48:41,591 9512 [INFO ] - VERBOSE: - libssl-1_1-x64.dll
2022-08-31 12:48:41,591 9512 [INFO ] - VERBOSE: - lib\enchant\
2022-08-31 12:48:41,592 9512 [INFO ] - VERBOSE: - lib\enchant\libenchant2_hunspell.dll
2022-08-31 12:48:41,593 9512 [INFO ] - VERBOSE: - license.txt
2022-08-31 12:48:41,594 9512 [INFO ] - VERBOSE: - news.txt
2022-08-31 12:48:41,595 9512 [INFO ] - VERBOSE: - nghttp2.dll
2022-08-31 12:48:41,596 9512 [INFO ] - VERBOSE: - phar.phar.bat
2022-08-31 12:48:41,597 9512 [INFO ] - VERBOSE: - pharcommand.phar
2022-08-31 12:48:41,598 9512 [INFO ] - VERBOSE: - php-cgi.exe
2022-08-31 12:48:41,599 9512 [INFO ] - VERBOSE: - php-win.exe
2022-08-31 12:48:41,600 9512 [INFO ] - VERBOSE: - php.exe
2022-08-31 12:48:41,600 9512 [INFO ] - VERBOSE: - php.ini-development
2022-08-31 12:48:41,601 9512 [INFO ] - VERBOSE: - php.ini-production
2022-08-31 12:48:41,602 9512 [INFO ] - VERBOSE: - php8.dll
2022-08-31 12:48:41,603 9512 [INFO ] - VERBOSE: - php8embed.lib
2022-08-31 12:48:41,604 9512 [INFO ] - VERBOSE: - php8phpdbg.dll
2022-08-31 12:48:41,605 9512 [INFO ] - VERBOSE: - phpdbg.exe
2022-08-31 12:48:41,605 9512 [INFO ] - VERBOSE: - readme-redist-bins.txt
2022-08-31 12:48:41,606 9512 [INFO ] - VERBOSE: - README.md
2022-08-31 12:48:41,607 9512 [INFO ] - VERBOSE: - snapshot.txt
2022-08-31 12:48:41,608 9512 [INFO ] - VERBOSE: Everything is Ok
2022-08-31 12:48:41,609 9512 [INFO ] - VERBOSE: 
2022-08-31 12:48:41,610 9512 [INFO ] - VERBOSE: Folders: 6
2022-08-31 12:48:41,611 9512 [INFO ] - VERBOSE: Files: 74
2022-08-31 12:48:41,612 9512 [INFO ] - VERBOSE: Size:       81284844
2022-08-31 12:48:41,612 9512 [INFO ] - VERBOSE: Compressed: 30663735
2022-08-31 12:48:41,630 9512 [DEBUG] - $exitCode was passed null
2022-08-31 12:48:41,630 9512 [DEBUG] - Command ['C:\ProgramData\chocolatey\tools\7z.exe' x -aoa -bd -bb1 -o"C:\tools\PHP" -y "C:\ProgramData\chocolatey\lib\php\tools\php-8.1.10-nts-Win32-vs16-x64.zip"] exited with '0'.
2022-08-31 12:48:41,646 9512 [DEBUG] - 7z exit code: 0
2022-08-31 12:48:41,646 9512 [INFO ] - C:\tools\PHP
2022-08-31 12:48:41,677 9512 [DEBUG] - Running Install-ChocolateyPath -pathToInstall 'C:\tools\PHP' -pathType 'Machine' 
2022-08-31 12:48:41,677 9512 [DEBUG] - Running Update-SessionEnvironment 
2022-08-31 12:48:41,693 9512 [INFO ] - VERBOSE: Refreshing environment variables from the registry.
2022-08-31 12:48:41,834 9512 [INFO ] - Creating default php.ini
2022-08-31 12:48:41,834 9512 [INFO ] - Configuring PHP extensions directory
2022-08-31 12:48:41,893 9512 [INFO ] - Please make sure you have CGI installed in IIS for local hosting
2022-08-31 12:48:41,893 9512 [DEBUG] - ----------------------------------------------------------------------
2022-08-31 12:48:41,893 9512 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\php\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '/InstallDir:C:\tools\PHP''] exited with '0'.
2022-08-31 12:48:41,909 9512 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2022-08-31 12:48:41,941 9512 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2022-08-31 12:48:42,067 9512 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\php'
2022-08-31 12:48:42,067 9512 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\php\php-8.1.10-nts-Win32-vs16-x64.zip.txt'
  with checksum '3407DCE12DEC4F0CF6B0860EF328077F'
2022-08-31 12:48:42,365 9512 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\php\php.nupkg'
  with checksum '3E755AF4EB548B50D04CAF3C5DE19604'
2022-08-31 12:48:42,365 9512 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\php\php.nuspec'
  with checksum '427E5DB7CB2FFE0AF6560B6E11F4623F'
2022-08-31 12:48:42,365 9512 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\php\legal\LICENSE.txt'
  with checksum '60B87C09985188FD87DDBA0ED163594D'
2022-08-31 12:48:42,365 9512 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\php\legal\VERIFICATION.txt'
  with checksum '43C9D33470B97BFA7ABCD1DFC8B19CAB'
2022-08-31 12:48:42,365 9512 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\php\tools\chocolateyInstall.ps1'
  with checksum '3B16BB09F73F208F9A32EAF6717DF571'
2022-08-31 12:48:42,365 9512 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\php\tools\chocolateyUninstall.ps1'
  with checksum 'E9621C74F2B7A5428DB231DE03EBEFD0'
2022-08-31 12:48:42,365 9512 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\php\tools\helpers.ps1'
  with checksum '628E9052DB28FF4DF48EAF7183969CFA'
2022-08-31 12:48:42,396 9512 [DEBUG] - Attempting to replace "C:\ProgramData\chocolatey\.chocolatey\php.8.1.10\.files"
 with "C:\ProgramData\chocolatey\.chocolatey\php.8.1.10\.files.9512.update".
 Backup placed at "C:\ProgramData\chocolatey\.chocolatey\php.8.1.10\.files.backup".
2022-08-31 12:48:42,396 9512 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\php.8.1.10\.files.backup".
2022-08-31 12:48:42,396 9512 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\.chocolatey\php.8.1.10\.files.9512.update"
 to "C:\ProgramData\chocolatey\.chocolatey\php.8.1.10\.files".
2022-08-31 12:48:42,396 9512 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\php.8.1.10\.files.9512.update".
2022-08-31 12:48:42,396 9512 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\php.8.1.10\.arguments".
2022-08-31 12:48:42,396 9512 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\php.8.1.10\.extra".
2022-08-31 12:48:42,396 9512 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\php.8.1.10\.version".
2022-08-31 12:48:42,396 9512 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\php.8.1.10\.sxs".
2022-08-31 12:48:42,396 9512 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\php.8.1.10\.pin".
2022-08-31 12:48:42,412 9512 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2022-08-31 12:48:42,412 9512 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\php\.chocolateyPending".
2022-08-31 12:48:42,412 9512 [INFO ] -  The install of php was successful.
2022-08-31 12:48:42,412 9512 [INFO ] -   Software installed to 'C:\tools\PHP'
2022-08-31 12:48:42,412 9512 [DEBUG] - Attempting to delete file "C:\Users\d.reade\AppData\Local\NuGet\Cache\php.8.1.10.nupkg".
2022-08-31 12:48:42,428 9512 [WARN ] - 
Chocolatey installed 1/1 packages. 
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2022-08-31 12:48:42,443 9512 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2022-08-31 12:48:42,521 9512 [DEBUG] - Exiting with 0

Anything else?

No response

AdmiringWorm commented 1 year ago

This sounds like a bug in the upstream executable itself (possibly). There have been no changes made in the package itself that would cause this behavior (the only change was the version used when extracting the PHP archive).

I'll have a look if they perhaps silently have fixed this issue without updating the version, but my assumption currently is that you will have the same behavior if you did the same process manually.

AdmiringWorm commented 1 year ago

hmm, I am not able to reproduce this issue at all.

It could be something in your environment that causes the access denied (like an anti-virus blocking running it, or something else).

davidenco commented 1 year ago

My apologies - I thought I had closed this issue. It was indeed related to anti-virus that was blocking the process.

AdmiringWorm commented 1 year ago

Thank you for confirming, I am glad you figured out the reason so you could unblock yourself.