'App installer failed to install package dependencies. Ask the developer for Microsoft.VCLibs.140.00

Ronit Roy picture Ronit Roy · Jan 18, 2018 · Viewed 15k times · Source

screenshot of the error

I am getting this error:"App installer failed to install package dependencies.Ask the developer for Microsoft.VCLibs.140.00.Debug package" while side loading .appxbundle file via App installer in windows10 client machine, however the same was sideloaded in my (developer) machine without any issue. I am using Visual Studio 2017 for development. Couldn't find anything relevant in google. Somebody help..!!

Answer

pavel picture pavel · Mar 15, 2018

Try to add it to Dependencies section into .appinstaller file:

<Dependencies>
    <Package Name="Microsoft.VCLibs.140.00" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" Version="14.0.24605.0" ProcessorArchitecture="x86" Uri="http://foobarbaz.com/fwkx86.appx" />
    <Package Name="Microsoft.VCLibs.140.00" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" Version="14.0.24605.0" ProcessorArchitecture="x64" Uri="http://foobarbaz.com/fwkx64.appx" />
</Dependencies>

To read more about App Installer file, please visit microsoft docs: https://docs.microsoft.com/en-us/windows/uwp/packaging/install-related-set

Actually, you can install this application via ps1 script (run it from context menu -> Run with PowerShell): enter image description here

It has already created script which will install all of dependencies.

Edit: Actually, I found solution for me: if you build the app in Release (instead of Debug) it should be contain all of needed dependencies into itself. So, I think it could be some kind of workaround for somebody.