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

Issues with ExplorerCommandVerb #8

Open
PlanetEarthSoftware opened this issue Aug 6, 2021 · 7 comments
Open

Issues with ExplorerCommandVerb #8

PlanetEarthSoftware opened this issue Aug 6, 2021 · 7 comments

Comments

@PlanetEarthSoftware
Copy link

PlanetEarthSoftware commented Aug 6, 2021

I am trying to get https://github.com/microsoft/Windows-AppConsult-Samples-DesktopBridge/tree/main/Docs-ContextMenuSample/ExplorerCommandVerb going:

  1. The 64 bit build configuration is set to teat warnings as errors
  2. Building the x64 Release configuration fails to register with regsvr32:
    The module "ExplorerCommandVerb.dll" was loaded but the entry-point DllRegisterServer was not found.
    Make sure that "ExplorerCommandVerb.dll" is a valid DLL or OCX file and then try again.
  3. Building the x64 Debug configuration registers with regsvr32 ok but no changes are seen in the File Explorer .txt file context menu even after restarting File Explorer?
  4. Fixing the warnings in 1. does not fix 2. nor 3.

I am using Visual Studio 2019 16.10.4 and 64 bit Windows 10 10.0.19043.1110.

@sanjayssk
Copy link

Same problem here with VS2022.

@cnbluefire
Copy link

modify file "Docs-ContextMenuSample/ExplorerCommandVerb/ExplorerCommandVerb.vcxproj"
add this code to line 173
<ModuleDefinitionFile>Dll.def</ModuleDefinitionFile>

@DavidAtGoliathResearch
Copy link

DavidAtGoliathResearch commented Jun 8, 2022

Adding the Module Definition File directly to .vcxproj or in Project | Properties | Input | Module Definition File does not solve the issue for Visual Studio 2022.
In my case, I'm using Windows 11 Pro 21H2 Build 22000.708
I also tried on the latest Insider Build 25131.1000

@DWilly92
Copy link

DWilly92 commented Nov 3, 2022

I am experiencing the same, running Windows 11 Pro 22H2 Build 25227.1000 and VS 2022 17.2.5.

I added <ModuleDefinitionFile>Dll.def</ModuleDefinitionFile> to line 173 in the vcxproj file, and it has made no difference. I can build the DLL, and register/unregister it successfully using regsvr32, but there is no change in the context menu when right-clicking a *.txt file.

*Edit - I am able to see the CLSID registered in the registry successfully, pointing to the DLL, verifying that regsvr32 did successfully register it.

@modz2014
Copy link

ok fix the issue you can use the context menu when you right click on a .txt file its needs to be packaged as msix to be able to use it there is no way around it

@DavidAtGoliathResearch
Copy link

Did someone found a solution for the two issues?

  1. The release version will not work with regsvr32 compiled with VS 2022 for x64
  2. The compiled version fails to appear under "Show more options" and will not appear on the top-level menu on Windows 11 (even installing the package).

@modz2014
Copy link

it needs to be registered as app identy you cant register them with out it

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

6 participants