winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

Question about installing msix package

Open DevX-Cipher opened this issue 1 year ago • 13 comments

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.

DevX-Cipher avatar May 29 '24 14:05 DevX-Cipher

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

sdottaka avatar May 29 '24 22:05 sdottaka

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

DevX-Cipher avatar May 30 '24 03:05 DevX-Cipher

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/

sdottaka avatar May 30 '24 22:05 sdottaka

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

DevX-Cipher avatar May 31 '24 03:05 DevX-Cipher

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

DevX-Cipher avatar Jun 10 '24 09:06 DevX-Cipher

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

sdottaka avatar Jun 10 '24 11:06 sdottaka

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

DevX-Cipher avatar Jun 10 '24 13:06 DevX-Cipher

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

sdottaka avatar Jun 10 '24 23:06 sdottaka

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

Contextmenu Contextmenu1

DevX-Cipher avatar Jun 11 '24 05:06 DevX-Cipher

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.

sdottaka avatar Jun 11 '24 11:06 sdottaka

is it possible of something you can do please

DevX-Cipher avatar Jun 11 '24 11:06 DevX-Cipher

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.

sdottaka avatar Jun 11 '24 11:06 sdottaka

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

DevX-Cipher avatar Jun 11 '24 11:06 DevX-Cipher