Re: A software opening instead of the folder when XYPlorer is set as the default file manager
Posted: 05 Oct 2021 19:18
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
Re: A software opening instead of the folder when XYPlorer is set as the default file manager
Posted: 05 Oct 2021 19:41
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}"
Re: A software opening instead of the folder when XYPlorer is set as the default file manager
Posted: 05 Oct 2021 20:24
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
Re: A software opening instead of the folder when XYPlorer is set as the default file manager
Posted: 06 Oct 2021 06:39
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.
Re: A software opening instead of the folder when XYPlorer is set as the default file manager
Posted: 07 Oct 2021 11:17
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.
Re: A software opening instead of the folder when XYPlorer is set as the default file manager
Posted: 07 Oct 2021 11:53
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^^
Re: A software opening instead of the folder when XYPlorer is set as the default file manager
Posted: 07 Oct 2021 12:20
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.
Re: A software opening instead of the folder when XYPlorer is set as the default file manager
Posted: 07 Oct 2021 16:19
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?
Re: A software opening instead of the folder when XYPlorer is set as the default file manager
Posted: 07 Oct 2021 17:12
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.
Re: A software opening instead of the folder when XYPlorer is set as the default file manager
Posted: 07 Oct 2021 17:28
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.