Open rklec opened 2 years ago
Its using Microsoft.WindowsTerminalPreview_Win10_1.14.1451.0_8wekyb3d8bbwe.msixbundl so I dont think maintainers are correct
This is from the release notes: clearly dependencies that this package creator may have already had installed and not realised.
Why are there so many packages? How do I choose?
This version of Windows Terminal is distributed in two bundles, one of which works on Windows 10-11 and the other of which only works on Windows 11. The Windows 11 version is much smaller because we no longer need to work around a platform issue related to our dependencies. If you intend on using Terminal as an unpackaged application--that is, extracting the
msix
file--we recommend that you use theWin10
bundle. You will need the Visual C++ runtime redistributable. In addition, if you install the packaged version on either Windows 10 or Windows 11, it now depends on the Visual C++ Universal Runtime Package. Despite these distributions having different version numbers, they are built from the same code and there is no functional difference between them. If you install the Windows 10 verison on Windows 11, it will probably automatically upgrade itself to the Windows 11 version. It turns out that it is impossible to have two bundles with the same version number, so it has to be this way.As with prior releases, you need to install
Microsoft.VCLibs.UWPDesktop.140.00
or make sure it is installed prior to installing Terminal. If you are using Terminal unpackaged, you will need to make sure you have the systemwide "Microsoft Visual C++ Redistributable" installed, and choose the Win10 version of our msixbundle. Yeah, it's strange!
I'm gonna cc @dhowett, he's more familiar with the packaging machinations.
I have a system running Windows Terminal Preview Version: 1.14.1451.0
, installed/upgraded using Chocolatey.
I am currently installing Windows 10 Pro x64 on a new laptop and I get that error when I run choco install microsoft-windows-terminal --pre
.
Looking at Get-AppxPackage
output on the "good" system, I can see two instances of Microsoft.VCLibs.140.00.UWPDesktop
, one x64, one x86:
Name : Microsoft.VCLibs.140.00.UWPDesktop
Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture : X86
ResourceId :
Version : 14.0.30704.0
PackageFullName : Microsoft.VCLibs.140.00.UWPDesktop_14.0.30704.0_x86__8wekyb3d8bbwe
InstallLocation : C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.UWPDesktop_14.0.30704.0_x86__8wekyb3d8bbwe
IsFramework : True
PackageFamilyName : Microsoft.VCLibs.140.00.UWPDesktop_8wekyb3d8bbwe
PublisherId : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
NonRemovable : False
IsPartiallyStaged : False
SignatureKind : Store
Status : Ok
Name : Microsoft.VCLibs.140.00.UWPDesktop
Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture : X64
ResourceId :
Version : 14.0.30704.0
PackageFullName : Microsoft.VCLibs.140.00.UWPDesktop_14.0.30704.0_x64__8wekyb3d8bbwe
InstallLocation : C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.UWPDesktop_14.0.30704.0_x64__8wekyb3d8bbwe
IsFramework : True
PackageFamilyName : Microsoft.VCLibs.140.00.UWPDesktop_8wekyb3d8bbwe
PublisherId : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
NonRemovable : False
IsPartiallyStaged : False
SignatureKind : Store
Status : Ok
The fresh system only has x64 package installed.
In pwsh (v 7.2.4) I only get errros for this:
PS > Get-AppxPackage
Get-AppxPackage: The 'Get-AppxPackage' command was found in the module 'Appx', but the module could not be loaded. For more information, run 'Import-Module Appx'.
PS > Import-Module Appx
Import-Module: Operation is not supported on this platform. (0x80131539)
PS > Get-AppxPackage
Get-AppxPackage: The 'Get-AppxPackage' command was found in the module 'Appx', but the module could not be loaded. For more information, run 'Import-Module Appx'.
This may be a known/common issue though: https://github.com/PowerShell/PowerShell/issues/13138
I did not look into that in more detail given it works in Windows PowerShell.
I even have three instances of that thing:
PS >Get-AppxPackage Microsoft.VCLibs.*
Name : Microsoft.VCLibs.140.00
Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture : X86
ResourceId :
Version : 14.0.29231.0
PackageFullName : Microsoft.VCLibs.140.00_14.0.29231.0_x86__8wekyb3d8bbwe
InstallLocation : C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00_14.0.29231.0_x86__8wekyb3d8bbwe
IsFramework : True
PackageFamilyName : Microsoft.VCLibs.140.00_8wekyb3d8bbwe
PublisherId : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
NonRemovable : False
IsPartiallyStaged : False
SignatureKind : Store
Status : Ok
Name : Microsoft.VCLibs.140.00.UWPDesktop
Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture : X64
ResourceId :
Version : 14.0.27629.0
PackageFullName : Microsoft.VCLibs.140.00.UWPDesktop_14.0.27629.0_x64__8wekyb3d8bbwe
InstallLocation : C:\Program
Files\WindowsApps\Microsoft.VCLibs.140.00.UWPDesktop_14.0.27629.0_x64__8wekyb3d8bbwe
IsFramework : True
PackageFamilyName : Microsoft.VCLibs.140.00.UWPDesktop_8wekyb3d8bbwe
PublisherId : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
NonRemovable : False
IsPartiallyStaged : False
SignatureKind : Store
Status : Ok
Name : Microsoft.VCLibs.140.00
Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture : X64
ResourceId :
Version : 14.0.29231.0
PackageFullName : Microsoft.VCLibs.140.00_14.0.29231.0_x64__8wekyb3d8bbwe
InstallLocation : C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00_14.0.29231.0_x64__8wekyb3d8bbwe
IsFramework : True
PackageFamilyName : Microsoft.VCLibs.140.00_8wekyb3d8bbwe
PublisherId : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
NonRemovable : False
IsPartiallyStaged : False
SignatureKind : Store
Status : Ok
You can get package from https://www.microsoft.com/en-us/download/details.aspx?id=102159 and install manually before using Chocolatey to install package. To confirm but I guess it is also included in choco package "vcredist140"...
@ymartin59 Choco says it is already installed:
choco install vcredist140
Chocolatey v1.2.1
Installing the following packages:
vcredist140
By installing, you accept licenses for the packages.
vcredist140 v14.34.31931 already installed.
Use --force to reinstall, specify a version to install, or try upgrade.
Chocolatey installed 0/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Warnings:
- vcredist140 - vcredist140 v14.34.31931 already installed.
Use --force to reinstall, specify a version to install, or try upgrade.
Also reinstalling does not work:
$ choco install vcredist140 --force
Chocolatey v1.2.1
Installing the following packages:
vcredist140
By installing, you accept licenses for the packages.
vcredist140 v14.34.31931 already installed. Forcing reinstall of version '14.34.31931'.
Please use upgrade if you meant to upgrade to a new version.
[NuGet] Uninstalling 'vcredist140 14.34.31931' might cause 'dotnet-7.0-desktopruntime 7.0.2, keepassxc 2.7.4, microsoft-windows-terminal 1.12.10393.0, powertoys 0.67.0, vcredist2015 14.0.24215.20170201, visualstudio2022-workload-visualstudioextension 1.0.0' to be broken.
Progress: Downloading vcredist140 14.34.31931... 100%
vcredist140 v14.34.31931 (forced) [Approved]
vcredist140 package files install completed. Performing other installation steps.
The package vcredist140 wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y
Runtime for architecture x86 version 14.34.31931 is already installed.
Runtime for architecture x64 version 14.34.31931 is already installed.
The install of vcredist140 was successful.
Software install location not explicitly set, it could be in package or
default install location of installer.
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Downloading manually from your link ends up being redirected to https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/cpp/libraries/c-runtime-packages-desktop-bridge#how-to-install-and-update-desktop-framework-packages, also yields a generic error message when installing via the GUI:;
Fehler bei der App-Installation. Fehlermeldung: Der Bereitstellungsvorgang "Add" mit Zielvolume "C:" für das Paket "Microsoft.VCLibs.140.00.UWPDesktop_14.0.30704.0_x64__8wekyb3d8bbwe" von " (Microsoft.VCLibs.x64.14.00.Desktop.appx) " ist mit dem Fehler 0x8000FFFF fehlgeschlagen. Weitere Informationen zum Diagnostizieren von Problemen bei der Bereitstellung von Apps finden Sie unter "http://go.microsoft.com/fwlink/?LinkId=235160". (0x8000ffff)
choco upgrade microsoft-windows-terminal
Chocolatey v1.2.1
Upgrading the following packages:
microsoft-windows-terminal
By upgrading, you accept licenses for the packages.
You have microsoft-windows-terminal v1.12.10393.0 installed. Version 1.15.3465.0 is available based on your source(s).
microsoft-windows-terminal v1.15.3465.0 [Approved]
microsoft-windows-terminal package files upgrade completed. Performing other installation steps.
The package microsoft-windows-terminal wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y
Progress: 0% - Processing ERROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Deployment failed with HRESULT: 0x80073CF3, Fehler bei Updates des Pakets (Abhängigkeits- oder Konfliktüberprüfung).
Das Paket Microsoft.WindowsTerminal_1.15.3465.0_x64__8wekyb3d8bbwe kann von Windows nicht installiert werden, da es von einem Framework abhängig ist, das nicht gefunden wurde. Stellen Sie das von CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US veröffentlichte Framework Microsoft.VCLibs.140.00.UWPDesktop mit einer neutralen oder x64-Prozessorarchitektur und Mindestversion 14.0.30035.0 zusammen mit dem zu installierenden Paket bereit. Die derzeit installierten Frameworks mit d
Das Paket Microsoft.WindowsTerminal_1.15.3465.0_x64__8wekyb3d8bbwe kann von Windows nicht installiert werden, da es von einem Framework abhängig ist, das nicht gefunden wurde. Stellen Sie das von CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US veröffentlichte Framework Microsoft.VCLibs.140.00.UWPDesktop mit einer neutralen oder x64-Prozessorarchitektur und Mindestversion 14.0.30035.0 zusammen mit dem zu installierenden Paket bereit. Die derzeit installierten Frameworks mit dem Namen Microsoft.VCLibs.140.00.UWPDesktop sind: {Microsoft.VCLibs.140.00.UWPDesktop_14.0.27629.0_x64__8wekyb3d8bbwe}
NOTE: For additional information, look for [ActivityId] 154d1e60-3a01-0002-01bf-5815013ad901 in the Event Log or use the command line Get-AppPackageLog -ActivityID 154d1e60-3a01-0002-01bf-5815013ad901
The upgrade of microsoft-windows-terminal was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyInstall.ps1'.
See log for details.
Unsuccessful operation for microsoft-windows-terminal.
Rollback to previous version (package files only)?([Y]es/[N]o): y
Chocolatey upgraded 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- microsoft-windows-terminal (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyInstall.ps1'.
See log for details.
$ Get-AppPackageLog -ActivityID 154d1e60-3a01-0002-01bf-5815013ad901
Time ID Message
---- -- -------
06.02.2023 11:19:37 603 Der Bereitstellungsvorgang Add wurde für ein Paket mit dem Hauptparameter
Microsoft.WindowsTerminal_Win10_1.15.3465.0_8wekyb3d8bbwe.msixbundle und den
Optionen 0 und 0 gestartet. Weitere Informationen zum Diagnostizieren von
Problemen bei der Bereitstellung von Apps finden Sie unter
http://go.microsoft.com/fwlink/?LinkId=235160.
06.02.2023 11:19:37 164 Die Signatur des App-Bündels wurde auf zentralen Inhalt des von CN=Microsoft
Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
veröffentlichten App-Bündels überprüft. App-Pakete werden erst überprüft, wenn
sie gelesen werden.
06.02.2023 11:19:37 391 Der Bündelstreaming-Reader wurde für das Bündel
"Microsoft.WindowsTerminal_3001.15.3465.0_neutral_~_8wekyb3d8bbwe" erfolgreich
erstellt.
06.02.2023 11:19:37 10002 Die Resilienzdatei "C:\ProgramData\Microsoft\Windows\AppRepository\b2d51b89-304d
-4e2a-aef4-0d7bdb26e670_S-1-5-21-343818398-1336601894-725345543-70180_1.rslc"
wird für den Vorgang "Add" im Paket
"Microsoft.WindowsTerminal_3001.15.3465.0_neutral_~_8wekyb3d8bbwe" erstellt.
06.02.2023 11:19:37 607 Der Bereitstellungsvorgang Add für das Paket
Microsoft.WindowsTerminal_3001.15.3465.0_neutral_~_8wekyb3d8bbwe wurde aus der
Warteschlange entfernt und wird für die Benutzer-SID
S-1-5-21-343818398-1336601894-725345543-70180 ausgeführt.
06.02.2023 11:19:37 614 Der Bündel-URI "file:///C:/ProgramData/chocolatey/lib/microsoft-windows-terminal
/tools/Microsoft.WindowsTerminal_Win10_1.15.3465.0_8wekyb3d8bbwe.msixbundle"
enthält Pakete: "CascadiaPackage_1.15.3465.0_x64.msix":
Microsoft.WindowsTerminal_1.15.3465.0_x64__8wekyb3d8bbwe
"CascadiaPackage_1.15.3465.0_x86.msix":
Microsoft.WindowsTerminal_1.15.3465.0_x86__8wekyb3d8bbwe
"CascadiaPackage_1.15.3465.0_ARM64.msix":
Microsoft.WindowsTerminal_1.15.3465.0_arm64__8wekyb3d8bbwe.
06.02.2023 11:19:37 157 Die Signatur des App-Pakets wurde auf zentralen Inhalt des von CN=Microsoft
Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
veröffentlichten App-Pakets hin überprüft. Die Nutzlast wird erst überprüft,
wenn die Dateien gelesen werden.
06.02.2023 11:19:37 216 Überprüfungswarnung bei App-Manifest: Der deklarierte
http://schemas.microsoft.com/developer/appx/2015/build-Namespace ist nicht
anwendbar und wird während der Manifestverarbeitung ignoriert.
06.02.2023 11:19:37 170 Der Streamingreader wurde für das App-Paket
"Microsoft.WindowsTerminal_1.15.3465.0_x64__8wekyb3d8bbwe" erfolgreich erstellt.
06.02.2023 11:19:37 854 Folgende zu verarbeitende(n) URI(s) wurde(n) erfolgreich hinzugefügt: file:///C
:/ProgramData/chocolatey/lib/microsoft-windows-terminal/tools/Microsoft.WindowsT
erminal_Win10_1.15.3465.0_8wekyb3d8bbwe.msixbundle file:///C:/ProgramData/chocol
atey/lib/microsoft-windows-terminal/tools/Microsoft.WindowsTerminal_Win10_1.15.3
465.0_8wekyb3d8bbwe.msixbundle\CascadiaPackage_1.15.3465.0_x64.msix.
06.02.2023 11:19:37 628 Das Paket Microsoft.WindowsTerminal_1.15.3465.0_x64__8wekyb3d8bbwe kann von
Windows nicht installiert werden, da es von einem Framework abhängig ist, das
nicht gefunden wurde. Stellen Sie das von CN=Microsoft Corporation, O=Microsoft
Corporation, L=Redmond, S=Washington, C=US veröffentlichte Framework
Microsoft.VCLibs.140.00.UWPDesktop mit einer neutralen oder
x64-Prozessorarchitektur und Mindestversion 14.0.30035.0 zusammen mit dem zu
installierenden Paket bereit. Die derzeit installierten Frameworks mit dem
Namen Microsoft.VCLibs.140.00.UWPDesktop sind:
{Microsoft.VCLibs.140.00.UWPDesktop_14.0.27629.0_x64__8wekyb3d8bbwe}
06.02.2023 11:19:37 605 Der letzte erfolgreiche Status war Indexed. Vor dem Erreichen des Folgestatus
(Resolved) ist ein Fehler aufgetreten. Std.: 0x80073CF3
06.02.2023 11:19:37 401 Der Bereitstellungsvorgang "Add" mit Zielvolume "C:" für das Paket
"Microsoft.WindowsTerminal_3001.15.3465.0_neutral_~_8wekyb3d8bbwe" von "
(Microsoft.WindowsTerminal_Win10_1.15.3465.0_8wekyb3d8bbwe.msixbundle) " ist
mit dem Fehler 0x80073CF3 fehlgeschlagen. Weitere Informationen zum
Diagnostizieren von Problemen bei der Bereitstellung von Apps finden Sie unter
"http://go.microsoft.com/fwlink/?LinkId=235160".
06.02.2023 11:19:37 404 Fehler "0x80073CF3" beim AppX Deployment-Vorgang für Paket
"Microsoft.WindowsTerminal_3001.15.3465.0_neutral_~_8wekyb3d8bbwe". Der
Fehlertext lautet: Das Paket
Microsoft.WindowsTerminal_1.15.3465.0_x64__8wekyb3d8bbwe kann von Windows nicht
installiert werden, da es von einem Framework abhängig ist, das nicht gefunden
wurde. Stellen Sie das von CN=Microsoft Corporation, O=Microsoft Corporation,
L=Redmond, S=Washington, C=US veröffentlichte Framework
Microsoft.VCLibs.140.00.UWPDesktop mit einer neutralen oder
x64-Prozessorarchitektur und Mindestversion 14.0.30035.0 zusammen mit dem zu
installierenden Paket bereit. Die derzeit installierten Frameworks mit dem
Namen Microsoft.VCLibs.140.00.UWPDesktop sind:
{Microsoft.VCLibs.140.00.UWPDesktop_14.0.27629.0_x64__8wekyb3d8bbwe}
It seems Microsoft.VCLibs.140.00.UWPDesktop_14.0.27629.0_x64__8wekyb3d8bbwe is installed, but it requires v14.0.30035.0, i.e. a slightly newer version.
This script here finally made it work: https://github.com/microsoft/terminal/issues/3097#issuecomment-1345242698
Windows Terminal version
1.12.10393.0
Windows build number
10.0.19044.0
Other Software
N/A
Steps to reproduce
choco upgrade -y microsoft-windows-terminal
Expected Behavior
Upgrade suceeds.
Actual Behavior
This looks very similar to https://github.com/microsoft/terminal/issues/3097, however this seems solved long ago and all dependencies should be shipped with the app.
Context
Also contacted you via mail.
Reported upstream as https://github.com/microsoft/terminal/issues/13345 and the maintainers said:
Your Environment