Opening files with apps that have custom file assoc broken

Things you’d like to miss in the future...
Forum rules
When reporting a bug, please include the following information: your XYplorer version (e.g., v27.90.0047), your Windows version (e.g., Win 11), and your screen scaling percentage (e.g., 125%). We recommend adding your Windows version and screen scaling percentage to your profile or signature. This will make debugging much easier for us.
admin
Site Admin
Posts: 64836
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Opening files with apps that have custom file assoc broken

Post by admin »

zer0 wrote:Same story. None of the apps that should have opened respective files did so. Information returned by regcmd hasn't changed for any of files mentioned previously.
Thanks + too bad. For all I know I'm following all the rules and I cannot get a single wrong case on my machine. Have a nice weekend anyway!

admin
Site Admin
Posts: 64836
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Opening files with apps that have custom file assoc broken

Post by admin »

admin wrote:
zer0 wrote:Same story. None of the apps that should have opened respective files did so. Information returned by regcmd hasn't changed for any of files mentioned previously.
Thanks + too bad. For all I know I'm following all the rules and I cannot get a single wrong case on my machine. Have a nice weekend anyway!
A last try. When you look up HKEY_CLASSES_ROOT\.avi you get a label like "Winamp.File" as Standard value. Now look up HKEY_CLASSES_ROOT\Winamp.File\shell and its subkeys: Is there any shell\*\command value that points to VLC, or is this already the wrong place to look at?? If the latter, then what info in HKEY_CLASSES_ROOT\.avi could lead me the right way to end up at a VLC command line??

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Opening files with apps that have custom file assoc broken

Post by zer0 »

There is a shell value that points to VLC. It is called "PlayWithVLC" and the default value for that command is:

Code: Select all

"C:\Program Files\VideoLAN\VLC\vlc.exe" --started-from-file --no-playlist-enqueue "%1"
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

admin
Site Admin
Posts: 64836
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Opening files with apps that have custom file assoc broken

Post by admin »

zer0 wrote:There is a shell value that points to VLC. It is called "PlayWithVLC" and the default value for that command is:

Code: Select all

"C:\Program Files\VideoLAN\VLC\vlc.exe" --started-from-file --no-playlist-enqueue "%1"
OK, good. Now which key tells me that PlayWithVLC is the default value?

Theoretically the Standard value of this key should be the name of the default command key:
HKEY_CLASSES_ROOT\Winamp.File\shell
So is this set to "PlayWithVLC"??

This is how it looks here:
reg-default-command.png
reg-default-command.png (28.8 KiB) Viewed 2000 times
EDIT: "Standard" is probably "Default" in English!

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Opening files with apps that have custom file assoc broken

Post by zer0 »

No, it is set to 'Play' which has the following characteristics
play.png
play.png (4.19 KiB) Viewed 1988 times
play_command.png
play_command.png (5.36 KiB) Viewed 1988 times
The shell list looks as follows
shell.png
shell.png (33.08 KiB) Viewed 1988 times
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

Volitale
Posts: 7
Joined: 17 Sep 2009 14:16

Re: Opening files with apps that have custom file assoc broken

Post by Volitale »

Im also having a problem with file associations for example i open a .jpg in xyplorer and instead it trys to open windows picture viewer (that i dont even have installed), it should open with the program associated with it, this just started happening in the 8.70 versions,

if i use windows explorer i can open jpg fine with my program by clicking.

its not just jpg but also movie file wmv, avi , mpeg i use to open with media player classic but xyplorer opens them with windows media player.

its not only that but the context menu is all screwed up, i used to be able to select open with xxxxxx program (and it no longer shows in this version)

maybe this is a issue with 64bit os's, and xyplorer how its reading the registry,.

please revert back to the way things were in the 8.60 version, until then im going to downgrade.

admin
Site Admin
Posts: 64836
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Opening files with apps that have custom file assoc broken

Post by admin »

Volitale wrote:Im also having a problem with file associations for example i open a .jpg in xyplorer and instead it trys to open windows picture viewer (that i dont even have installed), it should open with the program associated with it, this just started happening in the 8.70 versions,

if i use windows explorer i can open jpg fine with my program by clicking.

its not just jpg but also movie file wmv, avi , mpeg i use to open with media player classic but xyplorer opens them with windows media player.

its not only that but the context menu is all screwed up, i used to be able to select open with xxxxxx program (and it no longer shows in this version)

maybe this is a issue with 64bit os's, and xyplorer how its reading the registry,.

please revert back to the way things were in the 8.60 version, until then im going to downgrade.
8.70.0000 should work alright. It's just the recent BETA versions that have problems here.

admin
Site Admin
Posts: 64836
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Opening files with apps that have custom file assoc broken

Post by admin »

zer0 wrote:No, it is set to 'Play' which has the following characteristics ...
Thanks, this tells me that there's at least one thing here I have not understood.

Could you place search your registry for the string "PlayWithVLC" to find any key/value that might point to that key. There must be some information anywhere that tells me NOT to use the Play key but the PlayWithVLC key.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Opening files with apps that have custom file assoc broken

Post by zer0 »

Managed to solve the VLC problem. I went into it to check if association to AVIs was on the OS level or on the app level. Turns out that AVI wasn't associated to VLC in the app. Ticked that box, saw that registry key changed to VLC.avi, so now those files open fine in XYplorer. With other formats it's still a headache :(
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

admin
Site Admin
Posts: 64836
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Opening files with apps that have custom file assoc broken

Post by admin »

zer0 wrote:Managed to solve the VLC problem. I went into it to check if association to AVIs was on the OS level or on the app level. Turns out that AVI wasn't associated to VLC in the app. Ticked that box, saw that registry key changed to VLC.avi, so now those files open fine in XYplorer. With other formats it's still a headache :(
Thanks!

In the meantime I developed a third way (totally different approach to it) -- let's see...

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Opening files with apps that have custom file assoc broken

Post by zer0 »

admin wrote:In the meantime I developed a third way (totally different approach to it) -- let's see...
You seemed to have used a magic wand, because those files now open with appropriate applications. Well done, sir! 8)

P.S. If I may wonder: what was causing this difficulty? :?
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

admin
Site Admin
Posts: 64836
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Opening files with apps that have custom file assoc broken

Post by admin »

zer0 wrote:
admin wrote:In the meantime I developed a third way (totally different approach to it) -- let's see...
You seemed to have used a magic wand, because those files now open with appropriate applications. Well done, sir! 8)

P.S. If I may wonder: what was causing this difficulty? :?
Great! :D

Well, my previous approach was to (try to) do it like the shell. But apparently the shell use some dirty/unknown tricks.
My new approach is very simple: I just tell the shell to do it. :mrgreen:

admin
Site Admin
Posts: 64836
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Opening files with apps that have custom file assoc broken

Post by admin »

So everybody happy now with opening files by dblclick/Enter??

Post Reply