Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install on Enterprise laptop #286

Open
tmalaher-telus opened this issue Jan 27, 2022 · 15 comments
Open

Unable to install on Enterprise laptop #286

tmalaher-telus opened this issue Jan 27, 2022 · 15 comments
Labels
bug Something isn't working
Milestone

Comments

@tmalaher-telus
Copy link

Description

I'm running Edition Windows 10 Enterprise Version 20H2 OS build 19042.631
Our laptops have the Windows Store functionality disabled.
I have admin rights on the laptop, so I am able to install software (e.g. via .msi)

However, when I tried downloading DevToys.Startup_1.0.1.0_x86_x64_arm64.msixbundle (and the associated certificate) I was unable to install it.

The Windows says that the installer is a Trusted App, with Publisher: etiennebaudoux, so the certificate seems to be loaded OK.

But after saying "installing required packages...", it quickly gives the message:

DevToys installation failed
Reason:
App Installer failed to install package dependencies. Ask the developer for  package. 

Note the two spaces between "for" and "package" as if it is trying to insert the name of a package into that message.

Is there a known problem installing standalone? Or is there a missing dependency in the package, or something I need to install before installing DevToys?

Steps To Reproduce

  1. download DevToys.Startup_1.0.1.0_x86_x64_arm64.msixbundle
  2. download DevToys.Startup_1.0.1.0_x86_x64_arm64.cer
  3. install the .cer into the Trusted Root CA store
  4. Double click on the .msixbundle
  5. installation fails

Expected behavior

Installation succeeds

DevToys Version

DevToys.Startup_1.0.1.0_x86_x64_arm64

Relevant Assets/Logs

Screenshot 2022-01-27 153126

@tmalaher-telus tmalaher-telus added the bug Something isn't working label Jan 27, 2022
@veler
Copy link
Collaborator

veler commented Feb 7, 2022

Hello,
Thanks to @rlm96 , DevToys is now available on Chocolatey. Would you be able to give it a try and see if the app can be installed this way on your machine, please? :)

See: https://github.com/veler/DevToys#chocolatey

Thank you !

Related: #183

@veler veler closed this as completed Feb 9, 2022
@Atrejoe
Copy link

Atrejoe commented Feb 9, 2022

Similar situation here.

On Chocolatey the missing dependency is more explicit:

Windows cannot install package 64360VelerSoftware.DevToys_1.0.2.0_x64__j80j2txgjg9dj because this package depends on a framework that could not be found. Provide the framework "Microsoft.UI.Xaml.2.6" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 2.62108.18004.0, along with this package to install. The frameworks with name "Microsoft.UI.Xaml.2.6" currently installed are: {}

@rlm96
Copy link
Contributor

rlm96 commented Feb 9, 2022

Windows cannot install package 64360VelerSoftware.DevToys_1.0.2.0_x64__j80j2txgjg9dj because this package depends on a framework that could not be found. Provide the framework "Microsoft.UI.Xaml.2.6"

Which OS version are you using (include build number, please)?

@Atrejoe
Copy link

Atrejoe commented Feb 9, 2022

I'm on Windows 10 => 21H2 (OS Build 19044.1526)

@rlm96
Copy link
Contributor

rlm96 commented Feb 9, 2022

Hmmm, can you check microsoft/winget-cli#1779?

If you're installing App Installer via Add-AppxPackage in Windows PowerShell, you will first need to manually install Microsoft.VCLibs.140.00.UWPDesktop and Microsoft.UI.Xaml.2.6 before installing App Installer via Add-AppxPackage.

It seems that if we use Add-AppxPackage (as we're using in the chocolateInstall.ps1) we may need to install previously some dependencies. I don´t know why in some machines those dependencies are by default and why that's not your case

@Atrejoe
Copy link

Atrejoe commented Feb 10, 2022

On my Windows 11 machine this worked just fine.(wihtout installing any dependencies)

On the dependencies: I don't get if these are machine-installable libraraies, or just project references:

https://nuget.info/packages/Microsoft.UI.Xaml/2.7.0
https://docs.microsoft.com/en-us/troubleshoot/developer/visualstudio/cpp/libraries/c-runtime-packages-desktop-bridge

Should'nt these dependencies be resolved by the application installer or possibly deployed with the app?

@veler veler reopened this Feb 14, 2022
@PokeyTheCat
Copy link

My install via choco failed due to "Microsoft.UI.Xaml.2.6" pre-req:

Edition Windows 10 Enterprise
Version 21H2
Installed on ‎10/‎22/‎2020
OS build 19044.1526
Experience Windows Feature Experience Pack 120.2212.4170.0
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, Package failed updates, dependency or conflict validation.

Windows cannot install package 64360VelerSoftware.DevToys_1.0.3.0_x64__j80j2txgjg9dj because this package depends on a framework that could not be found. Provide the framework "Microsoft.UI.Xaml.2.6" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 2.62108.18004.0, along with this package to install. The frameworks with name "Microsoft.UI.Xaml.2.6" currently installed are: {}

NOTE: For additional information, look for [ActivityId] db477ba5-2106-0001-a7d5-66db0621d801 in the Event Log or use the command line Get-AppPackageLog -ActivityID db477ba5-2106-0001-a7d5-66db0621d801

The install of devtoys was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\devtoys\tools\chocolateyinstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - devtoys (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\devtoys\tools\chocolateyinstall.ps1'.
 See log for details.

@Renari
Copy link

Renari commented Mar 6, 2022

Just ran into this issue myself on a fresh W11 install.

@jfheins
Copy link

jfheins commented Apr 26, 2022

I could install Devtoys now after collecting some dependencies.
Not sure where I got Microsoft.UI.Xaml from, but I have "Microsoft.UI.Xaml.2.7 7.2203.17001.0" installed.

Then you need:
Microsoft.NET.Native.Framework.2.2.appx and
Microsoft.NET.Native.Runtime.2.2.appx
from here: https://github.com/fsclient/fsclient.github.io/tree/master/fs/FSClient.UWP/Dependencies/x64

And the Redist from here:
https://github.com/M1k3G0/Win10_LTSC_VP9_Installer/blob/master/Microsoft.VCLibs.140.00_14.0.30704.0_x64__8wekyb3d8bbwe.appx
And the Desktop version here: https://docs.microsoft.com/en-us/troubleshoot/developer/visualstudio/cpp/libraries/c-runtime-packages-desktop-bridge#how-to-install-and-update-desktop-framework-packages

@johnmccrae
Copy link

Hi, new Lenovo similarly locked down by IT - Chocolatey fails with the missing XAML library. When I download the msixbundle I get a dependency installation failure

image

@energister
Copy link

energister commented Aug 18, 2022

Just try a workaround: use https://store.rg-adguard.net/ to get links on missing dependencies to install them one by one

@tmalaher-telus
Copy link
Author

@energister I'm somewhat hesitant to download libraries/executables from random locations to an Enterprise laptop...
I trust @veler , so I'm willing to download an msi created by him, but adding things from third-party locations (either manually or via a package manager) seems dicey.

@energister
Copy link

@tmalaher-telus, I'm also avoiding to download something from unknown sites, so at the beginning I also excluded the option with the https://store.rg-adguard.net/. But later on I've noticed that the site just gives me links to the Microsoft's site. So it's safe to use it.

@david-evanochko
Copy link

@veler any updates regarding this bug? I'm hitting the road blocks outlined above with Chocolatey.

@Renari
Copy link

Renari commented Nov 30, 2022

@veler any updates regarding this bug? I'm hitting the road blocks outlined above with Chocolatey.

Read the above posts for how to manually install the missing dependencies.

@veler veler added this to the v2.0 milestone Dec 9, 2022
@veler veler mentioned this issue Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants