XnView 2.39 forgot the settings on Win7

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

Moderators: XnTriq, helmut, xnview

Post Reply
User avatar
Woodman
Posts: 7
Joined: Sat Jul 23, 2011 4:33 pm
Location: Germany, near Frankfurt

XnView 2.39 forgot the settings on Win7

Post by Woodman »

After updating XnView to 2.39 (on a Win 7 Laptop) it forgot all settings, i.e. programms in "open with", the size of the thumbnails, the last folder and more.
On my Win 10 Computer it works fine.

Under "Tools->Options-> System integration" "Save options" is marked as INI in folder User. When I edit the INI file manually then these settings will be load next time I start XnView but changes are not stored in this INI file.

What can I do, where I have to look?
Keep :D
Horst
cday
XnThusiast
Posts: 3976
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: XnView 2.39 forgot the settings on Win7

Post by cday »

Woodman wrote:After updating XnView to 2.39 (on a Win 7 Laptop) it forgot all settings, i.e. programms in "open with", the size of the thumbnails, the last folder and more.
On my Win 10 Computer it works fine.

Under "Tools->Options-> System integration" "Save options" is marked as INI in folder User. When I edit the INI file manually then these settings will be load next time I start XnView but changes are not stored in this INI file.
Could you try running XnView with Admin right and check if that overcomes the problem?

And out of interest, could you have installed XnView while logged in to an Admin account, and now be using it from a User account?

Edit:

I'm wondering if you might have two XnView .ini files, one in your Admin account and one in your User account??
User avatar
Woodman
Posts: 7
Joined: Sat Jul 23, 2011 4:33 pm
Location: Germany, near Frankfurt

Re: XnView 2.39 forgot the settings on Win7

Post by Woodman »

cday wrote:...
Could you try running XnView with Admin right and check if that overcomes the problem?
First of all: there is no difference wether I work as Admin or as regular User.
cday wrote:And out of interest, could you have installed XnView while logged in to an Admin account, and now be using it from a User account?
I've installed XnView as normal User. But the setup asked for the Admin password.
cday wrote:I'm wondering if you might have two XnView .ini files, one in your Admin account and one in your User account??
There is an INI file in every account.
I made some investigations as Admin. This is part of the INI file:
XnView-Problem1.jpg
XnView-Problem1.jpg (50.71 KiB) Viewed 1354 times
On E: I mount different USB disks and in the example above is a path from before the update to Version 2.39. You cat see this also when I start XnView:
XnView-Problem7.jpg
XnView-Problem7.jpg (41.25 KiB) Viewed 1354 times
On the top you can see the path where is XnView looking for.
So I choose a new path:
XnView-Problem3.jpg
XnView-Problem3.jpg (104.96 KiB) Viewed 1354 times
... and close XnView. In the INI file is the new path saved:
XnView-Problem6.jpg
After starting XnView again it looks like the first start above:
XnView-Problem10.jpg
XnView-Problem10.jpg (38.68 KiB) Viewed 1354 times
And, after closing XnView in the INI file is the same (old) content:
XnView-Problem9.jpg
XnView-Problem9.jpg (67.87 KiB) Viewed 1354 times

For me it seems that XnView reads the INI file from one location writes to another one.


But, from which location is the INI file (whith old content) read?
Keep :D
Horst
User avatar
Woodman
Posts: 7
Joined: Sat Jul 23, 2011 4:33 pm
Location: Germany, near Frankfurt

Re: XnView 2.39 forgot the settings on Win7

Post by Woodman »

Some more investigations:
The error happens also under Windows 10 if...

...if there is a xnview.ini in the C:\Program Files (x86)\XnView folder. :o

XnView works fine both on Windows 10 and 7 when I delete the xnview.ini in the program folder.
Keep :D
Horst
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: XnView 2.39 forgot the settings on Win7

Post by XnTriq »

Woodman wrote:But, from which location is the INI file (whith old content) read?
You'll find the INI file location in Info » About....
User avatar
Woodman
Posts: 7
Joined: Sat Jul 23, 2011 4:33 pm
Location: Germany, near Frankfurt

Re: XnView 2.39 forgot the settings on Win7

Post by Woodman »

XnTriq wrote:
Woodman wrote:But, from which location is the INI file (whith old content) read?
You'll find the INI file location in Info » About....
That's right. But what happens if in the About the "INI file location" is "C:\Program Files (x86)\XnView\xnview.ini"
XnView_About.jpg
XnView_About.jpg (84.16 KiB) Viewed 1321 times
and in the Options>System integration "Save options as INI in folder "User""?
XnView_Options.jpg
Keep :D
Horst
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: XnView 2.39 forgot the settings on Win7

Post by XnTriq »

Woodman wrote:But what happens if in the About the "INI file location" is "C:\Program Files (x86)\XnView\xnview.ini"

[…]

and in the Options>System integration "Save options as INI in folder "User""?
<!--// EDIT //

Your screenshot indicates that xnview.ini is actually located in …walter\AppData\Roaming\XnView\ (probably due to user account control data redirection).

// EDIT // -->

Related topics (for future reference):
GeorgD ([url=http://newsgroup.xnview.com/viewtopic.php?t=16939&p=83003#p83003]Win7 64bit: Observation + Registry Export[/url]) wrote: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!
gothate ([url=http://newsgroup.xnview.com/viewtopic.php?t=19996&p=84420#p84420]Folder tree very slow to load[/url]) wrote:Okay, I found where it keeps the files if you have it set to Options > System Integration > Save options > *as INI in folder - XnView. The files are kept in:
C:\Users\*username*\AppData\Local\VirtualStore\Program Files\XnView
This webpage explains why (if you're curious): http://zone.ni.com/devzone/cda/tut/p/id/5538#toc3
For example, take a legacy software application that attempts to write to a configuration INI file located in:

C:\Program Files\<application>\Setup.ini

Windows Vista automatically detects that you do not have permission to save to that location. Windows Vista then copies the file (if it already exists) to:

C:\Users\<your_account>\AppData\Local\VirtualStore\Program Files\<application>\Setup.ini

Windows Vista then allows the write operation to succeed at the new file in the VirtualStore folder. Subsequent read and write operations for that file will always use the file copy located in the VirtualStore folder. However, the application will continue to believe that it is accessing the Program Files directory (see Figure 4).
User avatar
Woodman
Posts: 7
Joined: Sat Jul 23, 2011 4:33 pm
Location: Germany, near Frankfurt

Re: XnView 2.39 forgot the settings on Win7

Post by Woodman »

For me the problem is solved.
As I wrote above:
Woodman wrote:...
XnView works fine both on Windows 10 and 7 when I delete the xnview.ini in the program folder.
Keep :D
Horst
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: XnView 2.39 forgot the settings on Win7

Post by XnTriq »

Woodman wrote:For me the problem is solved.
OK, thanks for clarifying.
Post Reply