VirusTotalUploader icon indicating copy to clipboard operation
VirusTotalUploader copied to clipboard

Uploader-v1.0.155 Integrate with the Windows 11 Context Menu

Open maisondasilva opened this issue 3 years ago • 10 comments

For some reason the new version is not creating the shortcut in shell:sendto (C:\Users\XXXX\AppData\Roaming\Microsoft\Windows\SendTo)

Installing the previous version the shortcut is created, removing and installing the new version is not created.

@SamuelTulach I saw that the shortcut was created in the shell, is it possible to make this menu appear in the new shell menu of Windows 11? Same Winrar?

Example https://github.com/microsoft/vscode/issues/127365 https://blogs.windows.com/windowsdeveloper/2021/07/19/extending-the-context-menu-and-share-dialog-in-windows-11/

Another option https://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/

https://github.com/microsoft/vscode/issues/127365#issuecomment-945140679

Example for Windows 11

image

maisondasilva avatar Nov 14 '21 15:11 maisondasilva

@SamuelTulach https://github.com/ikas-mc/ContextMenuForWindows11

maisondasilva avatar Nov 15 '21 21:11 maisondasilva

@maisonmdsgreen It could be an Inno Setup issue (https://github.com/SamuelTulach/VirusTotalUploader/issues/90#issuecomment-967970103). @SamuelTulach should change the installer.

tnhung2011 avatar Nov 16 '21 00:11 tnhung2011

@tnhung2011 I was reporting a problem but I saw that it's ok and just a Windows bug, but it would be nice to implement it in Windows 11 in the new menu, I gave some links with important information

maisondasilva avatar Nov 16 '21 00:11 maisondasilva

New version is creating a registry entry to create a command directly in the shell menu (the shortcut in "Send To" was confusing for many people and there were tens of issues regarding no context menu entry).

image

Unfortunately Windows 11 changed the context menu but because they are autistic, you can still access the old menu by selecting "More Options" in the new menu, which should get you to the old one where you should have "Upload to VirusTotal" entry.

I will try to look into it to figure out how to put it into the new menu, but I was not able to find any official documentation regarding it (only for the old one).

SamuelTulach avatar Nov 16 '21 09:11 SamuelTulach

The links I posted above if you can take a look. See that in the example image I managed to create in the new menu, the winrar I managed to make it work, I just don't know how.

maisondasilva avatar Nov 16 '21 12:11 maisondasilva

The links I posted above if you can take a look. See that in the example image I managed to create in the new menu, the winrar I managed to make it work, I just don't know how.

Using a hack to add/replace the "execute as" item in context menu is definitely not the way I want to go. Windows 11 will probably require sparse manifests and the IExplorerCommand which effectively means that I will have to write a custom installer for VT uploader or implement the context menu integration in the program itself, but that would mean it won't get removed after uninstalling.

SamuelTulach avatar Nov 16 '21 17:11 SamuelTulach

@SamuelTulach I talked to the Winrar Developer he sent me this.

Hello,

I used this one: https://github.com/microsoft/AppModelSamples/tree/master/Samples/SparsePackages

as a sample.

First, you need to implement the shell extension using IExplorerCommand interface. IContextMenu is included only to "Show more options" menu in Windows 11.

Then you need to package this shell extension to .msix file, sign this file with digital signature and install this .msix package from another app.

Overall it is complicated and troublesome. I spent about two months to implement this and still searching for workarounds for some issues.

Eugene

maisondasilva avatar Nov 16 '21 18:11 maisondasilva

@SamuelTulach I talked to the Winrar Developer he sent me this.

Hello,

I used this one: https://github.com/microsoft/AppModelSamples/tree/master/Samples/SparsePackages

as a sample.

First, you need to implement the shell extension using IExplorerCommand interface. IContextMenu is included only to "Show more options" menu in Windows 11.

Then you need to package this shell extension to .msix file, sign this file with digital signature and install this .msix package from another app.

Overall it is complicated and troublesome. I spent about two months to implement this and still searching for workarounds for some issues.

Eugene

If I had codesigning signature that would be nice. I was told by Sectigo that I need notary to verify myself.

SamuelTulach avatar Nov 16 '21 19:11 SamuelTulach

I saw that you now have a certificate and I also saw that Microsoft has been changing something else to make it easier.

https://twitter.com/JenMsft/status/1494539819346583557?s=20&t=1ob0CxTx8G5l9X6r1zXKjw

https://blogs.windows.com/windowsdeveloper/2021/07/19/extending-the-context-menu-and-share-dialog-in-windows-11/

@SamuelTulach

maisondasilva avatar Feb 18 '22 11:02 maisondasilva

Congrats on the certificate. @SamuelTulach

maisondasilva avatar Feb 18 '22 11:02 maisondasilva

The latest version uses a different setup creator with an option for the menu entry. Installing a sparse package myself would be a pain in the ass.

win11

SamuelTulach avatar Feb 18 '23 21:02 SamuelTulach

Nice version!

maisondasilva avatar Feb 18 '23 22:02 maisondasilva

there is no other way to use the shell context menu in windows 11 new one

modz2014 avatar Aug 08 '23 05:08 modz2014