Page 1 of 1

win32: file association

Posted: Mon Aug 27, 2012 1:25 pm
by gocha
I think two things about file association.
- Snes9x changes file associations with no confirmation. I really hate it.
- I do not want to associate "all" valid extensions to Snes9x. I would only want to associate with SFC and SMC.

Personally, I do not need the file association function at all, so just removing it is OK to me. However, for people who want the function, I suggest making a new "File Association..." menu item.
Idea 1: It popups yes/no dialog. If "yes" is clicked, Snes9x updates file association like as the older version does.
Idea 2: It popups a dialog which has "Extensions" listbox, "Select All" button, "Deselect All" button, OK and Cancel buttons. Snes9x updates file association of selected extensions, only if OK is pressed.

What do you think of these?

For the time being, I made a small patch to apply Idea 1.

Re: win32: file association

Posted: Mon Aug 27, 2012 3:53 pm
by OV2
A few facts:

S9x registers itself as a possible handler for all its file types, which means:
a) it does not overwrite any existing file associations
b) it appears in the "open with" list for these types
c) win7 can display these types in the jumplist
d) it seems that explorer displays the snes9x icon for all those types that do not have an association set


c) is why I added it in the first place, and d) is probably why people hate it.
We could add an option to create empty associations for all extensions that do not have an association, then those would retain the default "unknown filetype" icon.

Re: win32: file association

Posted: Tue Aug 28, 2012 10:59 am
by gocha
OV2, thank you for your info.

Some other thoughts:
- Because it updates file association every time, it is hard to coexist with two or more different versions, and fix the file association to one of them. (Since making a TAS needs a much time, TASers sometimes can use old version, that's not rare.)
- There is no easy way to uninstall S9x with the file association, right? I guess this can be why some people hate it.

I think it would be a little more acceptable than before, if S9x wouldn't change icons. Still I think altering user environment settings without his/her agreement is not much good.
Anyway, I hope the situation will be somewhat improved in some way someday. Thanks.

Re: win32: file association

Posted: Sat Sep 01, 2012 3:33 am
by slack
Who opened the big ol' can of spam as of late..?

Re: win32: file association

Posted: Sat Sep 01, 2012 4:54 am
by adventure_of_link
slack wrote:Who opened the big ol' can of spam as of late..?
Don't worry, I've closed it.

Re: win32: file association

Posted: Sat Sep 08, 2012 7:57 pm
by King Of Chaos
I agree. Snes9x should at least prompt the user if they want to associate various ROM file extensions to Snes9x.

Re: win32: file association

Posted: Sun Sep 09, 2012 10:27 pm
by OV2
I've found a way to register as an open with handler that will not cause the icon to appear in windows explorer. You can try the new testbuild - it also includes a .reg file to remove existing icons.

Re: win32: file association

Posted: Fri Aug 15, 2014 7:18 am
by 8-bitBishop
How do I disassociate this emulator from my files?! It's driving me nuts here.

Re: win32: file association

Posted: Sat Aug 16, 2014 9:07 pm
by OV2
Download the zipfile linked above and doubleclick the .reg file.

Re: win32: file association

Posted: Sat Feb 07, 2015 4:44 pm
by EricJ2190
I would like to have the ability to run snes9x without registering associations at all on the host machine. This would be useful for those who want to have a portable copy on a thumbdrive or just don't want it to add these associations on their machine. It could look for a config file which, if present, skips RegisterProgid and RegisterExts. Would you be interested in a patch that does this if I were to submit one?

Re: win32: file association

Posted: Fri Feb 13, 2015 9:51 am
by OV2
I don't see any harm in the current registering process, but I can understand it if you want to have a version that does not touch the registry at all. If you make it an option in the config file I'll add it to the testbuilds.

Re: win32: file association

Posted: Tue Feb 17, 2015 12:31 am
by Special
EricJ2190 wrote:I would like to have the ability to run snes9x without registering associations at all on the host machine. This would be useful for those who want to have a portable copy on a thumbdrive or just don't want it to add these associations on their machine. It could look for a config file which, if present, skips RegisterProgid and RegisterExts. Would you be interested in a patch that does this if I were to submit one?
I literally just registered to say that EricJ2190, you will become a God in my book if this happens. The way Snes9X handles file association now is such a PITA.

Re: win32: file association

Posted: Wed Aug 02, 2017 4:29 pm
by moefurbino
Special wrote:
EricJ2190 wrote:I would like to have the ability to run snes9x without registering associations at all on the host machine. This would be useful for those who want to have a portable copy on a thumbdrive or just don't want it to add these associations on their machine. It could look for a config file which, if present, skips RegisterProgid and RegisterExts. Would you be interested in a patch that does this if I were to submit one?
I literally just registered to say that EricJ2190, you will become a God in my book if this happens. The way Snes9X handles file association now is such a PITA.
I literally just registered to say the same! snes9x opening winrar files is driving me nuts!

Re: win32: file association

Posted: Fri Aug 04, 2017 7:04 pm
by Melchior
moefurbino wrote: I literally just registered to say the same! snes9x opening winrar files is driving me nuts!
YUP! annoying as F...
Its for this reason I won't even open Snes9X anymore...
I had to manually edit the registry to hack out the SNES9X stuff...


I was under the impression that the newest version was supposed to have removed the File Type association stealing...
but not sure... and I am not even willing to test out that theory without risking having to g in and re-edit the registry allover again...

Re: win32: file association

Posted: Tue Aug 15, 2017 1:14 am
by Melchior
OK...

HAVING HACKED out every trace of SNES9x from the Windows Registry..
I decided to try SNES9x out AGAIN! OR at least the (x64) build anyhow...
O_o :P :roll: :roll:
its adds back all sorts of FILE HANDLER entries..
I have attached the exported reg file with everything I found in it.....

It at least DID NOT MESS with the active file type associations..
I found that I could use the ZSNES command line stuff to get ZSNES to
open ROMS (.sfc) right from the Explorer... lol ;) ;p :p

SO IDK... to use SNES9x OR NOT... lol ;p

Re: win32: file association

Posted: Tue Aug 15, 2017 1:31 am
by Melchior
STRANGE there doesn't seem to be an EDIT button... :/
BUT the EDIT button showed up for this POST??!!

anywho...

I would like to suggest changing the file type extension used for SNES9x's save-states to something more verbose..
it would make giving it a proper FILE TYPE label better.. then trying to associate a generic .000
like..

- ".snes9x_st_#"
OR
- ".snes9x_savestate_#"
or even
- ".snes9x_#"

and that is IF Windows will accept such a long file type name.. :p ;/

# = only 1 digitneded because there are only 1-9 save-states possible... as far as I can tell

Re: win32: file association

Posted: Tue Jun 22, 2021 7:35 pm
by Jakedasnakegod
How tf do I remove the file association without hacking and without updating? My friend put this on my laptop and now I can't download .bin files without it association the file and now I can't update my 3d printer.