WinMerge / winmerge

WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
https://winmerge.org/
GNU General Public License v2.0
6.05k stars 773 forks source link

Question about installing msix package #2340

Open modz2014 opened 1 month ago

modz2014 commented 1 month ago

I am interested in understanding the process you are using to install the application and the .msix package, specifically regarding the use of external locations during the setup. Could you please provide an explanation of how this is being managed?

Thank you.

sdottaka commented 1 month ago

I don't know if it's the proper way, but in WinMerge I use the Add-AppxPackage command in Powershell to install msix files (Explorer context menu for Windows 11). See below:

https://github.com/WinMerge/winmerge/blob/f2f83a8465bb57cbfaee176150af04309646983d/Installer/InnoSetup/WinMergeX64.iss#L768

modz2014 commented 1 month ago

yes i tried this in a test but it fails because you cant install external msix package without installing it externally

sdottaka commented 1 month ago

The msix package of WinMerge ShellExtension is a type of package called a Sparse Package. The following URL may be helpful: https://blogs.windows.com/windowsdeveloper/2019/10/29/identity-registration-and-activation-of-non-packaged-win32-apps/

modz2014 commented 1 month ago

yes I know it but you can't install them unless externally if you read your manifest file it has external at the top another words if I try to open the msix package it wont install

modz2014 commented 3 weeks ago

@sdottaka there is still context menu showing up twice once on the new windows 11 context menu and the one under show more options

sdottaka commented 3 weeks ago

I may have misunderstood what you’re saying, but the WinMerge shell extension for Windows 11 is expected to appear in both the right-click menu in Explorer and the menu that appears when you click "Show more options."

Or are you concerned about multiple WinMerge menu items appearing in the "Show more options" menu? If so, please click the "Unregister shell extension" button to unregister the shell extension for Windows 10 and earlier.

image

modz2014 commented 3 weeks ago

it show on the new windows 11 context menu and under show more options

sdottaka commented 3 weeks ago

Could you please clarify what your expected behavior is? Additionally, could you attach a screenshot of the current display?

modz2014 commented 3 weeks ago

here it shows the new Windows 11 context menu and also under show more options

Contextmenu Contextmenu1

sdottaka commented 3 weeks ago

The display in the screenshot above is as we expected.

Generally, ShellExtension created to be displayed in the right-click menu of Windows 11 Explorer will also be displayed in the Show more options menu. I think it may be difficult or require special ingenuity to display it in only one of them.

modz2014 commented 3 weeks ago

is it possible of something you can do please

sdottaka commented 3 weeks ago

Do you expect the behavior to be that the WinMerge menu does not appear in the Show more options menu?

So far, I have not found a way to change that behavior, because ShellExtension does not care which side it is called from.

modz2014 commented 3 weeks ago

maybe under Get state of shared counter I was looking into how notepad++ does it have looked into this