Stuck with dependencies in an AppX from Desktop App Converter - windows

I have finally succeeded converting my desktop app to AppX with Desktop App Converter, and to sign it with the insight from Franklin Chen.
Step by step, I am getting closer to completion. But I am now bumping into a new hurdle (hopefully the last). I tried to follow the advice at
https://blogs.msdn.microsoft.com/vcblog/2016/07/07/using-visual-c-runtime-in-centennial-project/
I did install on my machine vc_uwpdesktop.110.exe, vc_uwpdesktop.120.exe and vc_uwpdesktop.140.exe.
But still not joy. When I try to install the AppX, I get this error message :
Ask the developer for a new app package. This
package may conflict with a package already
installed, or it depends on things not installed
here (package dependencies), or is made for a
different architecture (0x80073CF3)
20161015 - More information :
I tried to use add-appxpackage as instructed.
PS C:\Windows\system32> add-appxpackage –register C:\output\CheckWriterIII\PackageFiles\AppxManifest.xml
Here is the result on the command line :
add-appxpackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict validation.
Windows cannot install package CheckWriterIII_3.2.0.0_x86__eqr0y32pbpypt because this package depends on a framework that could not
be found. Provide the framework "Microsoft.VCLibs.120.00.UWPDesktop" published by "CN=Microsoft Corporation, O=Microsoft
Corporation, L=Redmond, S=Washington, C=US", with neutral or x86 processor architecture and minimum version 12.0.40652.5, along
with this package to install. The frameworks with name "Microsoft.VCLibs.120.00.UWPDesktop" currently installed are: {}
NOTE: For additional information, look for [ActivityId] 147c2bae-26c2-0005-268c-7c14c226d201 in the Event Log or use the command
line Get-AppxLog -ActivityID 147c2bae-26c2-0005-268c-7c14c226d201
At line:1 char:1
+ add-appxpackage –register C:\output\CheckWriterIII\PackageFiles\AppxM ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\output\Check...ppxManifest.xml:String) [Add-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
As instructed, I have fetched the log :
PS C:\Windows\system32> Get-AppxLog -ActivityID
147c2bae-26c2-0005-268c-7c14c226d201
Time ID Message
---- -- ------- 10/15/2016 5:41:58 PM 301 The calling process is powershell.exe 10/15/2016 5:41:58
PM 603 Started deployment Register operation on a package
with main parameter: AppxManifest.xml and
Options: DevelopmentModeOption. See http://go.microsoft.com/fwlink/?LinkId=235160 for help
diagnosing app deployment issues. 10/15/2016 5:41:58 PM 10002 Creating Resiliency
File
C:\ProgramData\Microsoft\Windows\AppRepository\76c1ec66-a626-417f-be
73-95fd9ce4b88f_S-1-5-21-2501171662-860024267-76414939-1001_1.rslc for
Register Operation on
Package CheckWriterIII_3.2.0.0_x86__eqr0y32pbpypt. 10/15/2016 5:41:58 PM
607 Deployment Register operation on package
CheckWriterIII_3.2.0.0_x86__eqr0y32pbpypt has been
de-queued and is running for user DESKTOP-V1EBBS5\mitch. 10/15/2016 5:41:58 PM 613
Adding uri to the list of Uris:
C:\output\CheckWriterIII\PackageFiles\AppxManifest.xml. 10/15/2016
5:41:58 PM 628 Windows cannot install package
CheckWriterIII_3.2.0.0_x86__eqr0y32pbpypt because this
package depends on a framework that could not be found. Provide the framework
"Microsoft.VCLibs.120.00.UWPDesktop" published by "CN=Microsoft
Corporation, O=Microsoft
Corporation, L=Redmond, S=Washington, C=US", with neutral or x86 processor architecture and
minimum version 12.0.40652.5, along with this package to install. The frameworks with name
"Microsoft.VCLibs.120.00.UWPDesktop" currently installed are: {}
10/15/2016 5:41:58 PM 605 The last successful state
reached was Indexed. Failure occurred before reaching the next
state Resolved. hr: 0x80073CF3 10/15/2016 5:41:58 PM 401 Deployment Register operation
with target volume C: on Package
CheckWriterIII_3.2.0.0_x86__eqr0y32pbpypt from: (AppxManifest.xml)
failed with error
0x80073CF3. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues. 10/15/2016 5:41:58 PM 404 AppX Deployment operation failed for
package CheckWriterIII_3.2.0.0_x86__eqr0y32pbpypt with
error 0x80073CF3. The specific error text for this failure is: Windows cannot install
package CheckWriterIII_3.2.0.0_x86__eqr0y32pbpypt because this package depends
on a
framework that could not be found. Provide the framework
"Microsoft.VCLibs.120.00.UWPDesktop" published by "CN=Microsoft
Corporation, O=Microsoft
Corporation, L=Redmond, S=Washington, C=US", with neutral or x86 processor architecture and
minimum version 12.0.40652.5, along with this package to install. The frameworks with name
"Microsoft.VCLibs.120.00.UWPDesktop" currently installed are: {}
Now I don't understand why it does not find Microsoft.VCLibs.120.00.UWPDesktop. I have downloaded and installed vc_uwpdesktop.120.exe 12.0.40653.00 and double verify it as not only in programs and features, but on the disk where it is supposed to be.

Thanks for the update. That confirms what the problem is. It was actually described in your original post, but it's quite subtle:
I did install on my machine vc_uwpdesktop.110.exe, vc_uwpdesktop.120.exe and vc_uwpdesktop.140.exe.
Unfortunately this did not do what you think. It installed the .appx files that can be used to redistribute the framework dependencies. It did not actually install the framework dependencies themselves.
To install them, you have to find the .appx files they installed (or at least the 120 x86 version) and ensure they are also installed. You can do so directly with the App Installer, with Add-AppxPackage separately (and ahead of time), or, I believe, as part of your package's installation by referencing the framework dependency in a -DependencyPath argument.
The path to the .appx file in question looks something like this; tweak the version numbers and platform for your case as required. Just make sure you don't accidentally use a variant without "Desktop" in its name.
C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs.Desktop.110\14.0\Appx\Retail\x86
Once you install or reference the correct package here, your main package should install (or register) successfully.

Related

Chocolatey app install failure with the error message of The remote server returned an error: (403) Forbidden

Chocolaty Cannot install packages.
I cannot install any packages from chocolatey package manager
here is the full command prompt message
C:\WINDOWS\system32>choco install winrar -dv
Chocolatey v0.10.11
Chocolatey is running on Windows v 10.0.17134.0
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" install winrar -dv
Received arguments: install winrar -dv
RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
Sending message 'PreRunMessage' out if there are subscribers...
[Pending] Removing all pending packages that should not be considered installed...
The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
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.
Configuration: CommandName='install'|
CacheLocation='C:\Users\irrem\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='True'|Verbose='True'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='winrar'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='winrar'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.17134.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='0.10.11.0'|
Information.ChocolateyProductVersion='0.10.11'|
Information.FullName='choco, Version=0.10.11.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='irrem'|
Information.UserDomainName='DESKTOP-8FVQM8H'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
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.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ScriptsCheckLastExitCode='False'|
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'|
PinCommand.Command='unknown'|OutdatedCommand.IgnorePinned='False'|
Proxy.BypassOnLocal='True'|
_ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
Installing the following packages:
winrar
By installing you accept licenses for the packages.
**[NuGet] An error occurred while loading packages from 'https://chocolatey.org/api/v2/': The remote server returned an error: (403) Forbidden.**
winrar not installed. The package was not found with the source(s) listed.
Source(s): 'https://chocolatey.org/api/v2/'
NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify `--pre`,
the package may not be found.
Please see https://chocolatey.org/docs/troubleshooting for more
assistance.
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- winrar - winrar not installed. The package was not found with the source(s) listed.
Source(s): 'https://chocolatey.org/api/v2/'
NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify `--pre`,
the package may not be found.
Please see https://chocolatey.org/docs/troubleshooting for more
assistance.
Sending message 'PostRunMessage' out if there are subscribers...
Exiting with 1
The Chocolatey Community Repoository was having issues around that time. Are you still having issues now?
To keep up to date with all the Chocolatey notifications use:
Twitter - https://twitter.com/chocolateynuget
Gitter - https://github.com/chocolatey/choco#chat-room
Google Groups - https://groups.google.com/forum/#!forum/chocolatey (and https://groups.google.com/forum/#!forum/chocolatey-announce for announcements)
The issues were announced on those mediums.

How to manually download components for the VS 2017 installation?

While installing Visual Studio 2017 I encountered the error while downloading the JDKV2-Component for Xamarin (maybe someone could edit the English error message in?):
Paket "JavaJDKV2,version=1.8.2,chip=x86" konnte von "https://go.microsoft.com/fwlink/?linkid=863182" nicht heruntergeladen werden.
Such-URL
https://aka.ms/VSSetupErrorReports?q=PackageId=JavaJDKV2;PackageAction=DownloadPackage;ReturnCode=0x80072ee2
Details
WebClient-Download fehlgeschlagen: Timeout für Vorgang überschritten
Bits-Download fehlgeschlagen: Fehlerkontext: BG_ERROR_CONTEXT_REMOTE_FILE, Fehlercode: -2145844841
WinInet-Download fehlgeschlagen: Function: InternetOpenUrl, HR: -2147012894, Message: Unknown error 12002
Betroffene Workloads
Mobile-Entwicklung mit .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.27128.1)
Mobile-Entwicklung mit C++ (Microsoft.VisualStudio.Workload.NativeMobile,version=15.0.27005.2)
Mobile-Entwicklung mit JavaScript (Microsoft.VisualStudio.Workload.WebCrossPlat,version=15.0.27019.1)
Betroffene Komponenten
Android SDK-Einrichtung (API-Ebene 23) (globale Installation) (Component.Android.SDK23,version=15.0.27128.1)
Android SDK-Setup (API-Ebene 19 und 21) (Component.Android.SDK19,version=15.0.27128.1)
Android SDK-Setup (API-Ebene 22) (Component.Android.SDK22,version=15.0.27128.1)
Google Android-Emulator (API-Ebene 23) (globale Installation) (Component.Google.Android.Emulator.API23.V2,version=15.0.27128.1)
Java SE Development Kit (8.0.1120.15) (Component.JavaJDK,version=15.0.26403.0)
Same for the x64-version of the JDK.
It turned out that the Oracle-Website needs a License-Accepted-cookie to download the files. While Microsoft seemingly tried to add it to the download routine it doesn't work for me and the installation won't proceed beyond the point where it tries to install the JDK.
So I downloaded the files manually. But where do I have to put them so that the Visual Studio installation knows that it won't need to download them again?
While searching the web for some hours I finally found the solution here:
https://developercommunity.visualstudio.com/content/problem/160625/packageidjavajdkv2packageactiondownloadpackageretu-5.html
Turns out you have to search for the following folder:
C:\ProgramData\Microsoft\VisualStudio\Packages
There you create a subfolder with the package name as written in the error message/error log (in my case "JavaJDKV2,version=1.8.2,chip=x86") and put the manually downloaded .exe file in there.
Restart the VS-installer and start the installation process.

Need help understanding error "manifest is not in the package root" while registering Windows 10 package

I am trying to register the Windows 10 Edge package with Windows Server 2016. I have successfully installed the store thanks to a forum I found and it opens but remains untested. I am trying to do the same with Edge. I've copied the app package from the installer iso to C:\Windows\systemapps and ran the power shell script:
Add-AppxPackage -register "C:\windows\systemapps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\Appxmanifest.xml" -DisableDevelopmentMode
And get the following error:
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF9, Install failed. Please contact your software vendor.
(Exception from HRESULT: 0x80073CF9)
Rejecting a request to register from Appxmanifest.xml because the manifest is not in the package root.
NOTE: For additional information, look for [ActivityId] a80e1223-2787-0000-dc3e-12a98727d301 in the Event Log or use
the command line Get-AppxLog -ActivityID a80e1223-2787-0000-dc3e-12a98727d301
At line:1 char:1
+ Add-AppxPackage -register "C:\windows\systemapps\Microsoft.MicrosoftE ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\windows\syst...ppxmanifest.xml:String) [Add-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
I've verified the manifest is in the package root so other than that I can't figure out what it means. Can someone help me understand what it's looking for?
Reference for store install: http://virtualcustoms.net/showthread.php/72904-Install-Microsoft-Store-and-Apps-on-Windows-10-LTSB-2016
I was just trying to do the same thing and I have found if I copy the app to C:\Program Files\WindowsApps then it installs without complaining about not being in the root and then the Edge icon also appears on the start menu.
The command to run is:
Add-AppxPackage -DisableDevelopmentMode -Register "C:\Program Files\WindowsApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AppxManifest.xml"
Whilst this allows the app to install and I am able to launch it from the start menu it closes after about 2 seconds and looking in the log (Application and Service Logs\Microsoft\Windows\Apps\Microsoft-Windows-TWinUI/Operational it shows this error so it looks like there is still something else that needs to be done to get this working:
ActivateApplicationForContractByAppIdAsUserWithHost of the app Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge for the Windows.Launch contract failed with The app didn't start..
Robin
I found it difficult to add to the win apps folder but figured out as long as the location of the apps you want to add are located in a folder named C:\Program Files\WindowsApps* it will work. I use a folder named “WindowsApps-Import” in the programs folder, works well!
One answer suggests adding the -DisableDevelopmentMode flag to the command you've ran, which works, but leaves an important point out.
Once the app installs, it won't run and crashes soon after. This is because the ALL APPLICATION PACKAGES group doesn't have access to the folder of the app. Giving ALL APPLICATION PACKAGES full control of the app folder will allow it to run.
Move the folder inside: "C:\Users$USERNAME\AppData\Local\Packages" then it works. Obv developer mode on windows needs to be ON.
for eg:
Add-AppxPackage -Register "C:\Users\Amit\AppData\Local\Packages\WsaPackage_1.7.32815.0_x64_Release-Nightly\AppxManifest.xml"

Unable to create packages for Windows 10 Store [error APPX1609]

I'm unable to generate packages for the Windows Store because of this error:
APPX1609 "The package contains a Debug framework reference 'Name = Microsoft.VCLibs.140.00.Debug, MinVersion = 14.0.23019.0, Publisher = 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US''. Ensure all framework references in the package are valid frameworks hosted by the Store."
I can't find how to enable the release version of this framework.
I tried to force the value to 'false' in the 'Microsoft.AppxPackage.Targets" file, it does not work :(
Any help would be appreciated.

SidebySideConfiguration error while launching an EXE

I'm encountering Side-by-Side configuration error when launching an EXE with arguments in CommandPrompt. This EXE is a third party EXE and it's ensured to be a working one.
But it does not work in my system - Am I missing anything? I used sxstrace in the eventlog to view the details - below is what I got. I'm not able to interpret.
I've VS 2012 installed in my machine already - also VC++2012/2010/2008 redistributable packages additionally.
================= Begin Activation Context Generation. Input Parameter: Flags = 0 ProcessorArchitecture = x86 CultureFallBacks =
en-US;en ManifestPath = C:\Users\20121011_PR2_1\Desktop\HotPlugUnplug
Stress\SourceCode\Soft_BIOS\bin\DvmuInstaller\Installer.exe
AssemblyDirectory = C:\Users\20121011_PR2_1\Desktop\HotPlugUnplug
Stress\SourceCode\Soft_BIOS\bin\DvmuInstaller\ Application Config
File =
----------------- INFO: Parsing Manifest File C:\Users\20121011_PR2_1\Desktop\HotPlugUnplug
Stress\SourceCode\Soft_BIOS\bin\DvmuInstaller\Installer.exe. INFO:
Manifest Definition Identity is (null). INFO: Reference:
Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"
INFO: Reference:
Microsoft.VC90.DebugMFC,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"
INFO: Resolving reference
Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
INFO: Resolving reference for ProcessorArchitecture x86. INFO:
Resolving reference for culture Neutral. INFO: Applying Binding
Policy.
INFO: No publisher policy found.
INFO: No binding policy redirect found. INFO: Begin assembly probing.
INFO: Did not find the assembly in WinSxS.
INFO: Attempt to probe manifest at C:\windows\assembly\GAC_32\Microsoft.VC90.DebugCRT\9.0.21022.8__1fc8b3b9a1e18e3b\Microsoft.VC90.DebugCRT.DLL.
INFO: Attempt to probe manifest at C:\Users\20121011_PR2_1\Desktop\HotPlugUnplug
Stress\SourceCode\Soft_BIOS\bin\DvmuInstaller\Microsoft.VC90.DebugCRT.DLL.
INFO: Attempt to probe manifest at C:\Users\20121011_PR2_1\Desktop\HotPlugUnplug
Stress\SourceCode\Soft_BIOS\bin\DvmuInstaller\Microsoft.VC90.DebugCRT.MANIFEST.
INFO: Attempt to probe manifest at C:\Users\20121011_PR2_1\Desktop\HotPlugUnplug
Stress\SourceCode\Soft_BIOS\bin\DvmuInstaller\Microsoft.VC90.DebugCRT\Microsoft.VC90.DebugCRT.DLL.
INFO: Attempt to probe manifest at C:\Users\20121011_PR2_1\Desktop\HotPlugUnplug
Stress\SourceCode\Soft_BIOS\bin\DvmuInstaller\Microsoft.VC90.DebugCRT\Microsoft.VC90.DebugCRT.MANIFEST.
INFO: Did not find manifest for culture Neutral. INFO: End assembly probing. ERROR: Cannot resolve reference
Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
ERROR: Activation Context generation failed. End Activation Context
Generation.
The executable is looking for the Debug version of the VC 9.0 Common Run Time (Microsoft.VC90.DebugCRT). This library is not a part of the redistributable package for the Common Runtime. I forget why Microsoft has this stipulation. Maybe it's a security or a legal issue.
You have three options:
Ask the person who gave you the executable to rebuild the executable in release mode so that the executable links against the release version of the CRT. That's the version you have installed from the redistributable package.
Ask the person who gave you the executable to send the DebugCRT versions of the CRT. Look in the Visual Studio install location for the VC folder. Then look for redist\Debug_NonRedist\x86.
Install Visual Studio/Visual Studio express with C++. This will install the debug version of the CRT on your machine.

Resources