mkevenaar / chocolatey-packages

My chocolatey packages
https://mkevenaar.github.io/chocolatey-packages/
Apache License 2.0
42 stars 66 forks source link

microsoft.windowsterminal uninstall not working #176

Closed SebastianK90 closed 1 year ago

SebastianK90 commented 1 year ago

The new allusers package of Microsoft-Windows-Terminal has a broken uninstall procedure.

Expected Behavior

This package should uninstall properly for all users, but doesn't uninstall at all and runs into an error. (see at the end)

Current Behavior

Install works for all users, uninstall is broken.

Possible Solution

Replace last part of chocolateyUninstall.ps1 with: Remove-AppxPackage -AllUsers -Package (Get-AppxPackage -Name $AppxPackageName -AllUsers -PackageTypeFilter Bundle)

Steps to Reproduce (for bugs)

  1. install package
  2. uninstall package

Context

Your Environment

$AppxPackageName = "Microsoft.WindowsTerminal"

if ($PreRelease -match "True") { $AppxPackageName += "Preview" }

Remove-AppxProvisionedPackage -Online -AllUsers -PackageName $AppxPackageName

2023-02-20 21:45:59,579 4188 [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\microsoft-windows-terminal\tools\chocolateyUninstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null'] 2023-02-20 21:45:59,579 4188 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-GB, PublicKeyToken=31bf3856ad364e35, requested by '' 2023-02-20 21:45:59,816 4188 [DEBUG] - Host version is 5.1.19041.1, PowerShell Version is '5.1.19041.2364' and CLR Version is '4.0.30319.42000'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'. 2023-02-20 21:46:00,285 4188 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'. 2023-02-20 21:46:00,301 4188 [INFO ] - VERBOSE: Exporting alias 'refreshenv'. 2023-02-20 21:46:00,301 4188 [DEBUG] - Loading community extensions 2023-02-20 21:46:00,316 4188 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1' 2023-02-20 21:46:00,316 4188 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'. 2023-02-20 21:46:00,332 4188 [DEBUG] - Function 'Get-PackageParameters' exists, ignoring export. 2023-02-20 21:46:00,332 4188 [DEBUG] - Function 'Get-UninstallRegistryKey' exists, ignoring export. 2023-02-20 21:46:00,332 4188 [DEBUG] - Exporting function 'Install-ChocolateyDesktopLink' for backwards compatibility 2023-02-20 21:46:00,347 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'. 2023-02-20 21:46:00,347 4188 [DEBUG] - Exporting function 'Write-ChocolateyFailure' for backwards compatibility 2023-02-20 21:46:00,347 4188 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'. 2023-02-20 21:46:00,347 4188 [DEBUG] - Exporting function 'Write-ChocolateySuccess' for backwards compatibility 2023-02-20 21:46:00,347 4188 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'. 2023-02-20 21:46:00,347 4188 [DEBUG] - Exporting function 'Write-FileUpdateLog' for backwards compatibility 2023-02-20 21:46:00,347 4188 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'. 2023-02-20 21:46:00,347 4188 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'. 2023-02-20 21:46:00,347 4188 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'. 2023-02-20 21:46:00,347 4188 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'. 2023-02-20 21:46:00,347 4188 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'. 2023-02-20 21:46:00,347 4188 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1' 2023-02-20 21:46:00,347 4188 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'. 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'. 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'. 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'. 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'. 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'. 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Exporting function 'Register-Application'. 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Exporting function 'Remove-Process'. 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'. 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'. 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'. 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'. 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Importing function 'Get-WebContent'. 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Importing function 'Register-Application'. 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Importing function 'Remove-Process'. 2023-02-20 21:46:00,394 4188 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1' 2023-02-20 21:46:00,394 4188 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'. 2023-02-20 21:46:00,457 4188 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'. 2023-02-20 21:46:00,457 4188 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'. 2023-02-20 21:46:00,457 4188 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'. 2023-02-20 21:46:00,457 4188 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'. 2023-02-20 21:46:00,457 4188 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'. 2023-02-20 21:46:00,457 4188 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'. 2023-02-20 21:46:00,457 4188 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'. 2023-02-20 21:46:00,457 4188 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'. 2023-02-20 21:46:00,457 4188 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'. 2023-02-20 21:46:00,457 4188 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'. 2023-02-20 21:46:00,472 4188 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting function 'Register-Application'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting function 'Remove-Process'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Exporting alias 'refreshenv'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Format-FileSize'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyPath'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-WebContent'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-WebFile'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'. 2023-02-20 21:46:00,488 4188 [INFO ] - VERBOSE: Importing function 'Install-BinFile'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Install-Vsix'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Register-Application'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Remove-Process'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing alias 'refreshenv'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'. 2023-02-20 21:46:00,504 4188 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'. 2023-02-20 21:46:00,535 4188 [DEBUG] - ---------------------------Script Execution--------------------------- 2023-02-20 21:46:00,535 4188 [DEBUG] - Running 'ChocolateyScriptRunner' for microsoft-windows-terminal v1.16.10261.0 with packageScript 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyUninstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal', installArguments: '', packageParameters: '', preRunHookScripts: '', postRunHookScripts: '', 2023-02-20 21:46:00,550 4188 [DEBUG] - Running package script 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyUninstall.ps1' 2023-02-20 21:46:00,613 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Add-WindowsPackage'. 2023-02-20 21:46:00,613 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Remove-WindowsPackage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WindowsPackage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Enable-WindowsOptionalFeature'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Disable-WindowsOptionalFeature'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WindowsOptionalFeature'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Repair-WindowsImage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WindowsCapability'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Export-WindowsCapabilitySource'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Add-WindowsCapability'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Remove-WindowsCapability'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WindowsReservedStorageState'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Set-WindowsReservedStorageState'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WindowsDriver'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Remove-WindowsDriver'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Add-WindowsDriver'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Export-WindowsDriver'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Get-AppxProvisionedPackage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Remove-AppxProvisionedPackage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Add-AppxProvisionedPackage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Set-AppXProvisionedDataFile'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Optimize-AppXProvisionedPackages'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Set-NonRemovableAppsPolicy'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Get-NonRemovableAppsPolicy'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WindowsImage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Mount-WindowsImage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Save-WindowsImage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Dismount-WindowsImage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Clear-WindowsCorruptMountPoint'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Remove-WindowsImage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Split-WindowsImage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'New-WindowsImage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Add-WindowsImage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Expand-WindowsImage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Export-WindowsImage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WindowsImageContent'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'New-WindowsCustomImage'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Update-WIMBootEntry'. 2023-02-20 21:46:00,628 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WIMBootEntry'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Expand-WindowsCustomDataImage'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WindowsEdition'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Set-WindowsEdition'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Set-WindowsProductKey'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Optimize-WindowsImage'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Use-WindowsUnattend'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting cmdlet 'Start-OSUninstall'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Apply-WindowsUnattend'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Add-ProvisionedAppxPackage'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Remove-ProvisionedAppxPackage'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Get-ProvisionedAppxPackage'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Optimize-ProvisionedAppxPackages'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Set-ProvisionedAppXDataFile'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Add-AppProvisionedPackage'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Remove-AppProvisionedPackage'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Get-AppProvisionedPackage'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Optimize-AppProvisionedPackages'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Set-AppPackageProvisionedDataFile'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Add-ProvisionedAppPackage'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Remove-ProvisionedAppPackage'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Get-ProvisionedAppPackage'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Optimize-ProvisionedAppPackages'. 2023-02-20 21:46:00,644 4188 [INFO ] - VERBOSE: Exporting alias 'Set-ProvisionedAppPackageDataFile'. 2023-02-20 21:46:00,769 4188 [INFO ] - VERBOSE: Target Image Version 10.0.19045.2486 2023-02-20 21:46:00,816 4188 [ERROR] - ERROR: The parameter is incorrect.

2023-02-20 21:46:00,816 4188 [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\microsoft-windows-terminal\tools\chocolateyUninstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null'] exited with '-1'. 2023-02-20 21:46:00,816 4188 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a'] 2023-02-20 21:46:00,847 4188 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116' 2023-02-20 21:46:00,847 4188 [ERROR] - microsoft-windows-terminal uninstall not successful. 2023-02-20 21:46:00,847 4188 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyUninstall.ps1'. See log for details. 2023-02-20 21:46:00,847 4188 [ERROR] - microsoft-windows-terminal not uninstalled. An error occurred during uninstall: microsoft-windows-terminal uninstall not successful. 2023-02-20 21:46:00,863 4188 [WARN ] - Chocolatey uninstalled 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). 2023-02-20 21:46:00,863 4188 [INFO ] - 2023-02-20 21:46:00,863 4188 [ERROR] - Failures 2023-02-20 21:46:00,863 4188 [ERROR] - - microsoft-windows-terminal (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyUninstall.ps1'. See log for details. 2023-02-20 21:46:00,863 4188 [WARN ] - If a package uninstall is failing and/or you've already uninstalled the software outside of Chocolatey, you can attempt to run the command with -n to skip running a chocolateyUninstall script, additionally adding --skip-autouninstaller to skip an attempt to automatically remove system-installed software. Only the packaging files are removed and not things like software installed to Programs and Features.

If a package is failing because it is a dependency of another package or packages, then you may first need to consider if it needs to be removed as packages have dependencies for a reason. If you decide that you still want to remove it, head into $env:ChocolateyInstall\lib and find the package folder you want to be removed. Then delete the folder for the package. You should use this option only as a last resort.

2023-02-20 21:46:00,863 4188 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers... 2023-02-20 21:46:00,879 4188 [DEBUG] - Exiting with -1 `

mkevenaar commented 1 year ago

This is fixed and will be available on the next release of Windows Terminal