win32: file association

This is for people involved in the developement of Snes9x, or SNES emulators in general.
BUG REPORTS BELONG IN TECH SUPPORT/BUG TRACKING!
Post Reply
User avatar
gocha
Snes9x Yellow Belt
Posts: 64
Joined: Sun Dec 30, 2007 12:14 am
Location: Japan, Nagoya

win32: file association

Post 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.
User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Re: win32: file association

Post 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.
User avatar
gocha
Snes9x Yellow Belt
Posts: 64
Joined: Sun Dec 30, 2007 12:14 am
Location: Japan, Nagoya

Re: win32: file association

Post 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.
User avatar
slack
Snes9x Yellow Belt
Posts: 61
Joined: Mon May 24, 2004 11:03 am
Location: USA

Re: win32: file association

Post by slack »

Who opened the big ol' can of spam as of late..?
adventure_of_link
Hero of Hyrule | Official Port Recruiter
Posts: 2588
Joined: Mon May 24, 2004 5:06 pm
Location: 255.255.255.255

Re: win32: file association

Post by adventure_of_link »

slack wrote:Who opened the big ol' can of spam as of late..?
Don't worry, I've closed it.
Image

Unofficial Test Monkey For:
* Snes9X GX (Wii)
* Snes9X EX (Android)
* Snes9X 64-bits (PC/Mac)

ZSNES|Ben Heck|NSRT|Bob Smiley
User avatar
King Of Chaos
Snes9x White Belt
Posts: 6
Joined: Mon Feb 20, 2006 2:01 am

Re: win32: file association

Post by King Of Chaos »

I agree. Snes9x should at least prompt the user if they want to associate various ROM file extensions to Snes9x.
User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Re: win32: file association

Post 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.
8-bitBishop
Snes9x White Belt
Posts: 2
Joined: Fri Aug 15, 2014 6:54 am

Re: win32: file association

Post by 8-bitBishop »

How do I disassociate this emulator from my files?! It's driving me nuts here.
User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Re: win32: file association

Post by OV2 »

Download the zipfile linked above and doubleclick the .reg file.
EricJ2190
Snes9x White Belt
Posts: 1
Joined: Sat Feb 07, 2015 4:31 pm

Re: win32: file association

Post 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?
User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Re: win32: file association

Post 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.
Special
Snes9x White Belt
Posts: 3
Joined: Tue Feb 17, 2015 12:13 am

Re: win32: file association

Post 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.
moefurbino
Snes9x White Belt
Posts: 1
Joined: Wed Aug 02, 2017 4:16 pm

Re: win32: file association

Post 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!
User avatar
Melchior
Snes9x White Belt
Posts: 11
Joined: Sun Jan 31, 2016 7:02 pm
Location: NH, USA

Re: win32: file association

Post 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...
[b][u](PC Specs)[/u][/b]
[b]CPU:[/b] AMD FX-9590 4.7GHz 8-core
[b]GPU:[/b] nVidia GTX 1070 Ti 8GB
[b]GFX Drivers:[/b] Nvidia v431.60
[b]OS:[/b] Windows 7 Ultimate 64-bit SP1
[b]RAM:[/b] 32GB DDR3

[b][u]Favorite Emulators:[/u][/b]
PS2 : [url=http://buildbot.orphis.net/pcsx2/]PCSX2 (Auto-Builds)[/url]
N64 : [url=http://www.pj64-emu.com]Project64[/url]
User avatar
Melchior
Snes9x White Belt
Posts: 11
Joined: Sun Jan 31, 2016 7:02 pm
Location: NH, USA

Re: win32: file association

Post 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
Attachments
snes9x-x64.exe__Reg_entries.reg.zip
ALL OF SNES9x Windows Registry
entries....
(2.28 KiB) Downloaded 3044 times
[b][u](PC Specs)[/u][/b]
[b]CPU:[/b] AMD FX-9590 4.7GHz 8-core
[b]GPU:[/b] nVidia GTX 1070 Ti 8GB
[b]GFX Drivers:[/b] Nvidia v431.60
[b]OS:[/b] Windows 7 Ultimate 64-bit SP1
[b]RAM:[/b] 32GB DDR3

[b][u]Favorite Emulators:[/u][/b]
PS2 : [url=http://buildbot.orphis.net/pcsx2/]PCSX2 (Auto-Builds)[/url]
N64 : [url=http://www.pj64-emu.com]Project64[/url]
User avatar
Melchior
Snes9x White Belt
Posts: 11
Joined: Sun Jan 31, 2016 7:02 pm
Location: NH, USA

Re: win32: file association

Post 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
[b][u](PC Specs)[/u][/b]
[b]CPU:[/b] AMD FX-9590 4.7GHz 8-core
[b]GPU:[/b] nVidia GTX 1070 Ti 8GB
[b]GFX Drivers:[/b] Nvidia v431.60
[b]OS:[/b] Windows 7 Ultimate 64-bit SP1
[b]RAM:[/b] 32GB DDR3

[b][u]Favorite Emulators:[/u][/b]
PS2 : [url=http://buildbot.orphis.net/pcsx2/]PCSX2 (Auto-Builds)[/url]
N64 : [url=http://www.pj64-emu.com]Project64[/url]
Jakedasnakegod
Snes9x White Belt
Posts: 1
Joined: Tue Jun 22, 2021 7:31 pm

Re: win32: file association

Post 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.
Post Reply