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

SparsePackages/PhotoStoreContextMenu does not work on Windows 11 #25

Open
dhoelzl opened this issue Oct 7, 2021 · 4 comments
Open

SparsePackages/PhotoStoreContextMenu does not work on Windows 11 #25

dhoelzl opened this issue Oct 7, 2021 · 4 comments

Comments

@dhoelzl
Copy link

dhoelzl commented Oct 7, 2021

I have worked through the instruction how to run the SparsePackages/PhotoStoreContextMenu example, but I cannot see any context menu entries from the example in Windows Explorer.

Starting PhotoStoreDemo.exe displays "(Running with Identity)" in the Window caption, so I assume the registration was successful.

Checking the sparse package:

PS C:\Users\vagrant> get-appxpackage -name *photostore*

Name : PhotoStoreDemo
Publisher : CN=Contoso
Architecture : Neutral
ResourceId :
Version : 1.0.0.0
PackageFullName : PhotoStoreDemo_1.0.0.0_neutral__h91ms92gdsmmt
InstallLocation : C:\Program Files\WindowsApps\PhotoStoreDemo_1.0.0.0_neutral__h91ms92gdsmmt
IsFramework : False
PackageFamilyName : PhotoStoreDemo_h91ms92gdsmmt
PublisherId : h91ms92gdsmmt
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
NonRemovable : False
IsPartiallyStaged : False
SignatureKind : Developer
Status : Ok

I have double-checked the path to the Binaries ("externalLocation") and the msix-File ("sparsePkgPath").

I did not get any error while working through the instructions.

How to analyze the problem?

I have one further question:

How can I register the sparse package via command line (PS / Add-AppxPackage) with the external location? So far I only found a way to pass the path to the *.msix-File but not the binary location of the external application.

OS Version: Windows 11 21H2 (OS Build 22000.194)

Thank you and regards,
Dominik

@MikeCoder96
Copy link

MikeCoder96 commented Oct 30, 2021

I confirm, no entry in the context menu! Only share option is available.

This is the context menu for a txt file and we can se there is no Command1, Command2, Command3, Command 5
image

This is Directory\Background, no Command1
image

The only thing that work is option for JPG file work, here the screenshot:
image

Please Fix it!

@l-eugine
Copy link

Faced same issue, after several hours was able to resolve it - in my case it was missing vc runtime libraries.
I've used procmon.exe to see what happened - in my case PhotoStoreContextMenu.dll was loaded by dllhost.exe, but shortly after that it failed to locate vcruntime140d.dll and other debug runtime libraries. I've compiled x64 debug version of sample application and deployed on win11 virtual machine.
After placing all missing debug dlls next to PhotoStoreContextMenu.dll I could see context menu item:
image

Maybe it could help someone else.

@Loqaritm
Copy link

Loqaritm commented Apr 8, 2022

I was also able to resolve this issue by including the missing libraries, though I did not do so manually - instead I just installed VS19 with the .NET Desktop Development and Desktop development with C++ workloads on my testing win11 virtual machine.

@modz2014
Copy link

modz2014 commented May 8, 2024

uploading package release would help as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants