A software opening instead of the folder when XYPlorer is set as the default file manager

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
highend
Posts: 14638
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: A software opening instead of the folder when XYPlorer is set as the default file manager

Post by highend »

Open a command prompt

Code: Select all

reg export "HKEY_CURRENT_USER\Software\Classes\Directory" "C:\1.txt"
Open the 1.txt file and show its content
One of my scripts helped you out? Please donate via Paypal

anandinasu
Posts: 15
Joined: 05 Oct 2021 14:43

Re: A software opening instead of the folder when XYPlorer is set as the default file manager

Post by anandinasu »

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\Directory]
@="File Folder"
"AlwaysShowExt"=""
"EditFlags"=hex:d2,01,00,00
"FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\
32,00,5c,00,77,00,69,00,6e,00,64,00,6f,00,77,00,73,00,2e,00,73,00,74,00,6f,\
00,72,00,61,00,67,00,65,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,30,00,\
31,00,35,00,32,00,00,00
"FullDetails"="prop:System.PropGroup.Description;System.DateCreated;System.FileCount;System.TotalFileSize"
"InfoTip"="prop:System.Comment;System.DateCreated"
"NoRecentDocs"=""
"PreviewDetails"="prop:System.DateModified;*System.SharedWith;*System.OfflineAvailability;*System.OfflineStatus"
"PreviewTitle"="prop:System.ItemNameDisplay;System.ItemTypeText"

[HKEY_CURRENT_USER\Software\Classes\Directory\Background]

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell]

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\WizTree]
@="&WizTree"
"Icon"="C:\\Program Files (OD)\\WizTree\\WizTree64.exe,0"
"Position"="Top"

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\WizTree\command]
@="\"C:\\Program Files (OD)\\WizTree\\WizTree64.exe\" \"%W\""

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shellex]

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shellex\ContextMenuHandlers]

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shellex\ContextMenuHandlers\ FileSyncEx]
@="{CB3D0F55-BC2C-4C1A-85ED-23ED75B5106B}"

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shellex\ContextMenuHandlers\DOpus]
@="{B9DD4945-1BED-4CB7-994C-F40B72B7725A}"

[HKEY_CURRENT_USER\Software\Classes\Directory\shell]
@="XYplorer"

[HKEY_CURRENT_USER\Software\Classes\Directory\shell\WizTree]
@="&WizTree"
"Icon"="C:\\Program Files (OD)\\WizTree\\WizTree64.exe,0"
"Position"="Top"

[HKEY_CURRENT_USER\Software\Classes\Directory\shell\WizTree\command]
@="\"C:\\Program Files (OD)\\WizTree\\WizTree64.exe\" \"%1\""

[HKEY_CURRENT_USER\Software\Classes\Directory\shell\XYplorer]
"EditFlags"=hex:01,00,00,00

[HKEY_CURRENT_USER\Software\Classes\Directory\shell\XYplorer\Command]
@="\"C:\\Program Files (x86)\\XYplorer\\XYplorer.exe\" \"%1\""

[HKEY_CURRENT_USER\Software\Classes\Directory\shellex]

[HKEY_CURRENT_USER\Software\Classes\Directory\shellex\ContextMenuHandlers]

[HKEY_CURRENT_USER\Software\Classes\Directory\shellex\ContextMenuHandlers\ FileSyncEx]
@="{CB3D0F55-BC2C-4C1A-85ED-23ED75B5106B}"

[HKEY_CURRENT_USER\Software\Classes\Directory\shellex\ContextMenuHandlers\OpusZip]
@="{E9FE4040-3C93-11D4-8006-00201860E88A}"

[HKEY_CURRENT_USER\Software\Classes\Directory\shellex\DragDropHandlers]

[HKEY_CURRENT_USER\Software\Classes\Directory\shellex\DragDropHandlers\OpusZip]
@="{E9FE4040-3C93-11D4-8006-00201860E88A}"
Windows 10.0.19043 Build 19043
XYplorer Portable v22.30.0100
Everything v1.4.1.1005 (x64)

highend
Posts: 14638
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: A software opening instead of the folder when XYPlorer is set as the default file manager

Post by highend »

There is not a single sign here regarding the existence of VSCode^^

And I see no reason why this only happens when XY is registered as the handler for folders. Sorry, can't help you here
One of my scripts helped you out? Please donate via Paypal

anandinasu
Posts: 15
Joined: 05 Oct 2021 14:43

Re: A software opening instead of the folder when XYPlorer is set as the default file manager

Post by anandinasu »

Exactly, I don't understand as well. Let me play around with it and see what is happening. I will update you if I find something.
Windows 10.0.19043 Build 19043
XYplorer Portable v22.30.0100
Everything v1.4.1.1005 (x64)

anandinasu
Posts: 15
Joined: 05 Oct 2021 14:43

Re: A software opening instead of the folder when XYPlorer is set as the default file manager

Post by anandinasu »

I played around a bit and was able to make it work partially by manually adding entries to "[HKEY_CLASSES_ROOT\Folder\shell". Got it from here: viewtopic.php?t=782

Also, now when I set XYplorer as admin through XYplorer, instead of VSCode, the command prompt is opening up!! In between, I cleaned the registry using CCleaner and also set the default association from https://www.sevenforums.com/tutorials/1 ... store.html

I have two doubts. Could you clear it if you have time?

1) I said partially because, after making the above changes, everything except the control panel is working. When I open the control panel and click on any option say Uninstall a program, it is taking me to the Documents folder. Do you know why this would be happening? I read from https://superuser.com/a/1644099/740518 that making changes in "HKEY_CLASSES_ROOT\Directory" is better to avoid this issue. However, adding there (HKEY_CLASSES_ROOT\Directory) manually did not help. Would you happen to know any fix for this?

2) Doesn't XYplorer work properly if it is open as admin? Is it better to open XYplorer always in normal mode? The reason is, after making the above changes, it works only when XYplorer is open in normal mode. Not in admin mode.

Thank you.
Windows 10.0.19043 Build 19043
XYplorer Portable v22.30.0100
Everything v1.4.1.1005 (x64)

highend
Posts: 14638
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: A software opening instead of the folder when XYPlorer is set as the default file manager

Post by highend »

1.) I can't comment on that, that's your system and I don't know anything about what's in your registry. Apart from that I'd personally never use a tool like CCleaner to modify the registry.
Restore your backup. You've made one before you've messed with the registry, did you?
Also, now when I set XYplorer as admin through XYplorer, instead of VSCode, the command prompt is opening up!!
Do you think that makes sense? I do not^^ Something is very wrong with your registry (or your system).

2.) What do you mean? Starting XY with admin permissions? Yeah, works fine^^

My personal recommendation: Install your OS from scratch. I'll promise, if the first thing that you've setup after doing this is doing the shell integration for XY, it will open and not VSCode or a command prompt^^
One of my scripts helped you out? Please donate via Paypal

anandinasu
Posts: 15
Joined: 05 Oct 2021 14:43

Re: A software opening instead of the folder when XYPlorer is set as the default file manager

Post by anandinasu »

After posting my last reply, I worked on it a bit more, got frustrated to a point where I could not sit peacefully, I ended up formating the system. Before formatting, I tried running XYplorer with windows sandbox and it was very very easy to setup. Hence the issue is with my system. Let it finish formatting and so that I can type from desktop. Thanks a lot for being patient with me.
Windows 10.0.19043 Build 19043
XYplorer Portable v22.30.0100
Everything v1.4.1.1005 (x64)

anandinasu
Posts: 15
Joined: 05 Oct 2021 14:43

Re: A software opening instead of the folder when XYPlorer is set as the default file manager

Post by anandinasu »

I finally found the issue. I find it very interesting.

In "HKEY_LOCAL_MACHINE\Software\Classes\Folder\shell", none of the keys should have the string "Position: Top" in it. The key with the string "Position: Top" will be invoked when XYplorer is set as the default file manager. If none of the keys have that string, then XYplorer will open, if XYplorer is set as the default one. On the other hand, if the Explorer is set as the default one, irrespective of whether the string "Position: Top" is present or not in any key, the Explorer will open.

That is why VS Code and Command Prompt was opening instead of XYplorer. I had VS Code key in "HKEY_CLASSES_ROOT\Directory\shell" and it had the string "Position: Top" so that it would be on the top of the context menu (This is the only reason why I kept the string "Position: Top". Did not know this meant something more. But that never came up when I was learning about this). I also had CMD key there to open CMD at the current Directory and that also has the string "Position: Top". So after making XYplorer the default file manager, whenever I was opening any folder, it was calling VS Code because of that string. Later it started showing CMD because I moved the location of VS Code to test and see why VS Code is invoked and as the registry could not find the path given, it chose the second one in the list with the string "Position: Top", which was CMD.

Now I removed all the string "Position: Top" from all the entries in HKEY_CLASSES_ROOT\Directory\shell and HKEY_LOCAL_MACHINE\Software\Classes\Folder\shell and XYplorer is working just fine.

Have you heard something like this before? Do you know why this is happening?
Windows 10.0.19043 Build 19043
XYplorer Portable v22.30.0100
Everything v1.4.1.1005 (x64)

Horst
Posts: 1346
Joined: 24 Jan 2021 12:27
Location: Germany

Re: A software opening instead of the folder when XYPlorer is set as the default file manager

Post by Horst »

I manualy configured many file managers including XY as default in the registry
but never came accross "position"="Top" entries.
There are detailed descriptions of this feature in many pages but I don't see the real need of it.
Windows 11 Home, Version 25H2 (OS Build 26200.7462)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1404a (x64), Everything Toolbar 2.1.1, Listary Pro 6.3.6.99

anandinasu
Posts: 15
Joined: 05 Oct 2021 14:43

Re: A software opening instead of the folder when XYPlorer is set as the default file manager

Post by anandinasu »

The string "Position: Top" is used to position your context menu entry. Basically, the entries you manually add can be put in one of 3 areas. Top, Middle (Default) and Bottom. If you set "Position: Top" it will be at the top position. Check it out here: https://stackoverflow.com/a/43032795/3382575. The "For keys under shell you can add" part.

The need is if you want your entry to be on the top of the context menu for faster access. I did not put XYplorer at the top. But I had other software entries at the top.

Also, this issue is specific to HKEY_CLASSES_ROOT\Directory\shell\ entries. I have one entry set to top from HKEY_CLASSES_ROOT\AllFilesystemObjects\shell and XYplorer is still working fine.
Windows 10.0.19043 Build 19043
XYplorer Portable v22.30.0100
Everything v1.4.1.1005 (x64)

Post Reply