-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
ContextMenu: Adding menu on right click inside a folder #68
Comments
When do you plan to release v2.3 |
Hi , |
Some googling gave me the answer: |
I'm not able to get this feature working on Windows 10 with our application, even though the extension built successfully, and srm.exe installed it successfully (with Is this all that we should have in our code? Also, to confirm, it is
|
@BenQuigley Works for me. What version do you use? |
Our application uses 2.2, but in my testing I used 2.6.1 because I wanted this feature and it didn't work with 2.2. |
Okay I am using 2.7.0 - but I will test it with 2.6.1 now. Note: 2.7.0 is the master version, Nuget-package and Release is currently missing, until another issue with registration is fixed (see other issues). |
Trying 2.7.0 right now. I bet it has something to do with this line in the changelog: "If file extension classes are not present in the registry, then SharpShell will create them. If you discover new issues with registration, it may be worth quickly checking with the prior version, as there is small risk that new issues will occur due to these changes." |
Don't think so, as the Background is no class and should definately not be missing on your system. But be careful, as other issues shows, this can remove your "DefaultIcon" bindings for file types. |
Tested it with 2.6.1 and it works for me
|
Can you share whole code? I guess you are already registering with elevated mode? Tried it with an example server? This is my Prototype:
|
Can you try to manually add the extension to the registry? This is how it should look like / how it looks on my system (Win 10, x64, 64-bit)
|
I'm getting "installed and registered" output from ServerRegistrationManager.exe as well. It's just that the item is not appearing in the background right-click. 2.7.0 did not fix it unfortunately. |
@BenQuigley Can you reproduce the same with one of the official example server? Would you share your full code for further testing? For me registration works and the function works (I click right mouse button on Desktop or Folder Background and the ContextMenu-Item shows and works. So either it is something wrong with your registry (can you validate the registration manually) or with your server. |
Reopening for now, @BenQuigley do you think you could enable logging and share the logs? (see https://github.com/dwmkerr/sharpshell/blob/master/docs/logging/logging.md) |
Thanks for looking into it and the link to the logging features. I enabled logging and opened my example project...
When I right-click a folder managed by our application, it works (shows our context menu item) and the logs reflect that:
However, when I right-click the background, it does not work. The logs reflect that; it seems to be evaluating an empty list instead of the name of the directory:
|
Our SharpShell extension queries our application for whether the variable I think the issue is that |
But isn't that wanted/expected? I think you should consider changing that check on |
Countryen, that fixed it. Thank you! |
Excellent, thanks @Countryen and @BenQuigley, glad it's working! I'll add a note to the docs on this point 👍 |
I have created a context menu that targets directories , but it shows only when i right click a directory and not inside it anywhere else.
The text was updated successfully, but these errors were encountered: