Non-working associations

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, helmut, xnview

Guest

Non-working associations

Post by Guest »

If I try to change existing associations, it's not working (Windows XP). In other words, I cannot associate image extensions with XnView program. Always is executed old program previously associated with the extension.
ckit
XnThusiast
Posts: 2577
Joined: Tue Feb 17, 2004 1:11 am
Location: QLD, Australia

Post by ckit »

Yes, I know.
I'm trying to get the situation fixed under Vista with Pierre, don't know about XP though.
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz scaling 125%
Windows 11 Pro x64 23H2, Listary Pro, PowerToys and Wintoys
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France

Delete prior

Post by Clo »

:arrow: Guest

:) Hello !

• It's a known issue in XP, it ignores the associations changes made by applications…
- You ought delete the old ones in Windows prior :
Start Menu >> Parameters >> Config panel >> Tools Menu >> Folders Options >> [File types] tab. …
- Then, set the associations in XnView, that should work…
- Note : I've admin. rights in my PC, so maybe is it that needed to delete the default unwanted association¦s in XP…

:mrgreen: Kind regards,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
Waldo
Posts: 8
Joined: Fri Feb 22, 2008 1:47 am

Re: Non-working associations

Post by Waldo »

I have the same problem with Windows 7 and Vista (both x64). Changing the associations simply has no effect, neither is XnView opening the images nor do the icons change to XnView's.

EDIT: Oh, found workaround. Run XnView as normal user. Deselect all associations. Click Ok and exit XV. Then run XnView as Administrator and reassign the associations again. You must select a previously deselected association as administrator, or else XV won't commit the changes!

Running XV as Admin in order to change stuff? Hm, that's not how it's ought to be. :?
User avatar
GeorgD
Posts: 291
Joined: Thu Oct 12, 2006 2:45 pm

Re: Non-working associations

Post by GeorgD »

Waldo wrote:EDIT: Oh, found workaround.
This workaround does not work for me :-( Win 7 RC1 64bit German, XnView 1.97b2, similar issues with other programs - windows just ignores my settings for several file types / protocols :( also when trying to use system settings "Standardprogramme" (default programs)

EDIT 2: The way shown below did not help another time. Only by installing XnView to a new directory using setup I was able to get images associated with XnView.
EDIT 1: I managed to get it work. I am not sure what try exactly made it work; I think it's the combination of checking / adding the following registry keys (collected from some posts in the forum) and then in windows system settings - programs - default programs using the option "Standardprogramme festlegen" (set default programs (?)) instead of "Dateityp oder Protokoll einem Programm zuordnen" (assign file type or protocol to a program (?)). This added XnView as one of "Empfohlene Programme" (recommended programs (?)) so it's now possible to select it also in Dateityp oder Protokoll einem Programm zuordnen" (assign file type or protocol to a program (?)).

Registry keys:

Code: Select all

[HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications]
"XnView"="Software\\XnView\\Capabilities"

;So on Vista/7 32, it's
;HKEY_LOCAL_MACHINE\SOFTWARE\XnView\Capabilities\FileAssociations
;and for Vista/7 64, it's:
;HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XnView\Capabilities\FileAssociations 

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XnView]

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XnView\Capabilities]
"ApplicationDescription"="XnView is a fast multi-format graphics browser, viewer, and converter. It reads more than 400 file formats."
"ApplicationName"="XnView for Windows"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XnView\Capabilities\FileAssociations]
".gif"="XnView.gif"
".jpg"="XnView.jpg"
;whatever more you want
Screenshot of "Standardprogramme festlegen" (set default programs (?)): http://yfrog.com/7dpanoramalp
In the XnView Wiki, you can improve the user guide / documentation / F1-help for XnView (classic/Windows) and for XnViewMP
User avatar
GeorgD
Posts: 291
Joined: Thu Oct 12, 2006 2:45 pm

Win7 64bit: Observation + Registry Export

Post by GeorgD »

Hi, I reinstalled Win 7 DE 64bit Home Premium (I had the RC whose lifetime ends soon). Hence, I reinstalled XnView. Installation worked fine. .ini etc were copied to C:\Users\MYUSERNAME\AppData\Roaming\XnView which is fine. I overwrote the ini with my old ini from Win XP, after which it is important to do the setting F12 - System integration - Save Options - as ini in folder - User as without the setting, XnView might get the setting to save in XnView folder or in Windows folder which can be accessed by XnView in Win XP but can not in Win 7 - so XnView can't write there and looses the complete ini, also the one in user folder!

Now I had the opportunity to do a clean registry export - might help all those users that have troubles with the associations...hopefully, my export from Win7 DE 64bit is sufficiant to solve the issues...

Code: Select all

Windows Registry Editor Version 5.00
; XnView als Standardprogramm, export by GeorgD, Win7 DE 64bit, see http://newsgroup.xnview.com/viewtopic.php?f=36&t=16939&start=0

[HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications]
"XnView"="Software\\XnView\\Capabilities"


[HKEY_CLASSES_ROOT\Applications\xnview.exe]

[HKEY_CLASSES_ROOT\Applications\xnview.exe\shell]

[HKEY_CLASSES_ROOT\Applications\xnview.exe\shell\open]

[HKEY_CLASSES_ROOT\Applications\xnview.exe\shell\open\command]
@="\"C:\\Program Files (x86)\\XnView\\xnview.exe\" \"%1\""



[HKEY_CLASSES_ROOT\.png]
@="XnView.png"
"Content Type"="image/png"
"PerceivedType"="image"

[HKEY_CLASSES_ROOT\.png\OpenWithList]

[HKEY_CLASSES_ROOT\.png\OpenWithList\ehshell.exe]

[HKEY_CLASSES_ROOT\.png\OpenWithProgids]
"pngfile"=""

[HKEY_CLASSES_ROOT\.png\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"

[HKEY_CLASSES_ROOT\.png\XnView.bak]
@=""




[HKEY_CLASSES_ROOT\XnView.bmp]

[HKEY_CLASSES_ROOT\XnView.bmp\DefaultIcon]
@="C:\\Program Files (x86)\\XnView\\xnview.exe,2"

[HKEY_CLASSES_ROOT\XnView.bmp\shell]

[HKEY_CLASSES_ROOT\XnView.bmp\shell\open]

[HKEY_CLASSES_ROOT\XnView.bmp\shell\open\command]
@="\"C:\\Program Files (x86)\\XnView\\xnview.exe\" \"%1\""



[HKEY_CLASSES_ROOT\XnView.jpg]

[HKEY_CLASSES_ROOT\XnView.jpg\DefaultIcon]
@="C:\\Program Files (x86)\\XnView\\xnview.exe,5"

[HKEY_CLASSES_ROOT\XnView.jpg\shell]

[HKEY_CLASSES_ROOT\XnView.jpg\shell\open]

[HKEY_CLASSES_ROOT\XnView.jpg\shell\open\command]
@="\"C:\\Program Files (x86)\\XnView\\xnview.exe\" \"%1\""



[HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications]
"XnView"="Software\\XnView\\Capabilities"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\RegisteredApplications]
"XnView"="Software\\XnView\\Capabilities"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XnView]

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XnView\Capabilities]
"ApplicationDescription"="XnView is a fast multi-format graphics browser, viewer, and converter. It reads more than 400 file formats."
"ApplicationName"="XnView for Windows"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XnView\Capabilities\FileAssociations]
".bmp"="XnView.bmp"
".gif"="XnView.gif"
".iff"="XnView.iff"
".jpg"="XnView.jpg"
".pcx"="XnView.pcx"
".pic"="XnView.pic"
".png"="XnView.png"
".tga"="XnView.tga"
".tif"="XnView.tif"




[HKEY_USERS\S-1-5-21-203213738-1482578111-2676763723-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png\OpenWithProgids]
"pngfile"=hex(0):
"XnView.png"=hex(0):
HTH, Georg
In the XnView Wiki, you can improve the user guide / documentation / F1-help for XnView (classic/Windows) and for XnViewMP