Windows 8: File association tool does not work at all!

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

User avatar
BloodySword
Posts: 38
Joined: Sun Mar 28, 2010 11:19 am

Windows 8: File association tool does not work at all!

Post by BloodySword »

Hello,

The "File association tool" does not work at all...
I even can not set the default program, XnViewMP is missing in this list!!!

Please help...
User avatar
m.Th.
XnThusiast
Posts: 1610
Joined: Wed Aug 16, 2006 6:31 am

Re: Windows 8: File association tool does not work at all!

Post by m.Th. »

BloodySword wrote:Hello,

The "File association tool" does not work at all...
I even can not set the default program, XnViewMP is missing in this list!!!

Please help...
Do you run it with the admin rights?
m. Th.

- Dark Themed XnViewMP 1.0 64bit on Win10 x64 -
User avatar
BloodySword
Posts: 38
Joined: Sun Mar 28, 2010 11:19 am

Re: Windows 8: File association tool does not work at all!

Post by BloodySword »

Yes, of course I did.
But even when I manupulate the extensions with REGEDIT, Windows Explorer ignores it... :/

I read following MSDN article, which says how file associations have to be done in Windows 8:

http://msdn.microsoft.com/en-us/library ... 85%29.aspx

I tried to reproduce the registry structure for XnView to be displayed in the list of Programs that could be set as default programs in Windows 8.
But I did not get XnView in that list...
User avatar
xnview
Author of XnView
Posts: 38817
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Windows 8: File association tool does not work at all!

Post by xnview »

could you check if association works with XnView 2.03?
Pierre.
User avatar
BloodySword
Posts: 38
Joined: Sun Mar 28, 2010 11:19 am

Re: Windows 8: File association tool does not work at all!

Post by BloodySword »

I will test it tomorrow and will write a summay here as soon as possible.

Edit: Because of other software problems on this notebook, I decided to fix these first and perhaps see if it also fixes this issue here.
The registry was broken or something else. I even could not add a new user to Windows 8. Very odd. I resetted Windows, now and I will see
if this fixes all issues after installing all my favourite software.

Thank you for your patience.
User avatar
BloodySword
Posts: 38
Joined: Sun Mar 28, 2010 11:19 am

Re: Windows 8: File association tool does not work at all!

Post by BloodySword »

Okay, I solved the other software problems and a big problem with Windows 8.
But it still behaves like described, it does not work at all.
I can not select XnViewMP here:

Image
(This is the preferences window where you can associate file types to a program which is capable of them.)
As you can see: No XnViewMP is there.

So now, I downloade XnView for Windows and first I have NOT used the installer, just the .zip file.
I unpacked the zip file to C:\Program Files (x86)\ and it created the directory XnView.
Firstly I startet it without administrator rights and checked all check boxes.
As I expected, no luck.
I checked if XnView is visible in the above windows preferences box, but no luck.

Then I startet it with administrator rights, gone to preferences, associations and look what I have got:
(Sorry that this is all in german but I have german Windows 8)

Image

And it worked!!!

So I think, you have to do the following. For the file association exe, you have do the same as in XnView.
Create the same registry keys in Windows. Is there any problem, that the .exe has another name and is in fact
not the .exe that should be associated? If yes, you should just provide a .reg file template, where XnViewMP
is just replacing the path to XnView.exe and run it with elevation (administrator rights) and let the user
confirm it.

What I will try now is following:

I will just copy XnView.exe from this zip into the XnViewMP directory after I moved the MP XnView.exe to the desktop.
Then I will run the registration process, delete this exe and move the MP exe back to program files\XnViewMP.
This SHOULD work I think. Let's see...

HAH! It WORKS! But... as I esxpected... I have no file icons...

So I will now go to regedit and check the association's file icons and will give the correct one...
This is a HUGE amount of work! I will edit this post as soon as I finished.

Edit: It worked!!

But it is strange. When I go HKEY_CLASSES_ROOT\.jpg it is associated to jpegfile which is associated to the Windows Picture Viewer DLL.
This makes no sense! How does this magic work??
Last edited by BloodySword on Fri Jul 12, 2013 9:06 am, edited 1 time in total.
User avatar
m.Th.
XnThusiast
Posts: 1610
Joined: Wed Aug 16, 2006 6:31 am

Re: Windows 8: File association tool does not work at all!

Post by m.Th. »

Glad that you succeeded!

As an aside, the file association tool needs to be updated (at least) with most common raw formats:

Adobe (.DNG)
Canon (.CRW, .CR2)
Casio (.RAW)
Fuji (.RAF)
Hasselblad (.3FR) - supported? (the Hasselblad H4D's .fff format has problems)
Kodak (.DCR, .KDC) - supported?
Leica (.DNG and .RAW) - supported?
Minolta (.MRW) - supported?
Nikon (.NEF, .NRW)
Olympus (.ORF)
Panasonic (.RAW, .RW2)
Pentax (.PEF)
Ricoh (.DNG)
Samsung (.DNG)
Sigma (.X3F) - supported?
Sony (.ARW,.SRF,.SR2)
m. Th.

- Dark Themed XnViewMP 1.0 64bit on Win10 x64 -
User avatar
BloodySword
Posts: 38
Joined: Sun Mar 28, 2010 11:19 am

Re: Windows 8: File association tool does not work at all!

Post by BloodySword »

Thanks!

At first, I would suggest to fix this tool.
If it is on Windows XP and Vista, it should process like it does now.
But on Windows 7 and 8 and 8.1 it should do it like XnView in this case.
The file association works totally different, now.

Oh and I have to note something interesting:

Approx. one year ago on my Zenbook UX31A, I first had Windows 7 Home.
I installes XnViewMP and used the file association tool.
And it worked!

I upgraded to Windows 8 Pro with the special offer at the beginning of this year.
And it still works...

But it seems, when I have Windows 8 and want to register the file types, now it does not work at all.

This should be fixed first, then on occasion, we can add more file types to this tool.

Yes, I understand why it is a seperate tool since this is a multi platfrom program.
But wouldn't it be possible to add the same API calls to Windows and using a compile switch
when it is compiled for Windows, it behaves like that and when compiled for Linux
it behaves like it should do for Linux?
User avatar
m.Th.
XnThusiast
Posts: 1610
Joined: Wed Aug 16, 2006 6:31 am

Re: Windows 8: File association tool does not work at all!

Post by m.Th. »

Approx. one year ago on my Zenbook UX31A, I first had Windows 7 Home.
I installes XnViewMP and used the file association tool.
And it worked!
Windows 7 Enterprise SP 1 here. And it works. Istm that it has something to do either with rights either with other programs which put "somewhere else" in front of XnViewMP their associations.
m. Th.

- Dark Themed XnViewMP 1.0 64bit on Win10 x64 -
User avatar
BloodySword
Posts: 38
Joined: Sun Mar 28, 2010 11:19 am

Re: Windows 8: File association tool does not work at all!

Post by BloodySword »

It's definitively a bug in combination with Windows 8 since it works with XnView for Windows.
User avatar
BloodySword
Posts: 38
Joined: Sun Mar 28, 2010 11:19 am

Re: Windows 8: File association tool does not work at all!

Post by BloodySword »

Mhh... Testes 0.61 ... Unfortunally no change at all. The only change I noticed was a new button in the XNView "System integration" setup area which does nothing on Admin mode, and in normal mode it's just complaining it wants to be in admin mode. When I start the tool manually with admin rights, same as before.

For upgrade, I totally deleted the old version and extracted the new one.

What I will test now, install the setup version of XnView and see if it works then afterwards. Be right back!

Edit: No luck at all... :/
User avatar
xnview
Author of XnView
Posts: 38817
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Windows 8: File association tool does not work at all!

Post by xnview »

Win 8 x64?
I've tried on Win x64, and no problem. I have the windows file association for XnViewMP like XnView
On Win 7/8, XnViewMP use the standard dialog, no more 'Associate files with XnViewMP.exe'
Pierre.
User avatar
BloodySword
Posts: 38
Joined: Sun Mar 28, 2010 11:19 am

Re: Windows 8: File association tool does not work at all!

Post by BloodySword »

I remembered, that I tried to create the neccessary registry structure for XnViewMP to manually set this thing up.
Interestingly this caused a problem with the new button in the "system integration" options.
I deleted it and now the button works! Thank you!

PS: You should add the extension .jpeg , because I have some sources where .jpeg is used. Renaming them is sometimes a pain in the ass. ;)

PS2: Yes, 64 Bit Windows 8 Pro
User avatar
BloodySword
Posts: 38
Joined: Sun Mar 28, 2010 11:19 am

Re: Windows 8: File association tool does not work at all!

Post by BloodySword »

But I noticed that the icons still doesn't work.
Most of them got "generic" and others have %1...
User avatar
xnview
Author of XnView
Posts: 38817
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Windows 8: File association tool does not work at all!

Post by xnview »

So it works??
BloodySword wrote:But I noticed that the icons still doesn't work.
Most of them got "generic" and others have %1...
all icons?
Pierre.