xnview.ini in program folder with Windows 7

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

Moderators: helmut, XnTriq, xnview

jcc
Posts: 16
Joined: Tue Nov 03, 2009 10:47 am
Location: Tournefeuille (31), France

xnview.ini in program folder with Windows 7

Post by jcc »

XnView 1.96.5 for Windows (french package of std version)
Windows 7 32-bit

"Save options in INI into XnView folder" is not working with Windows 7, and XnView is shut down frequently...
You must launch it with Windows XP compatibilty option to do it and use it with reliability.

I hope this would be fixed soon.
Jean-Claude
User avatar
xnview
Author of XnView
Posts: 37987
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: xnview.ini in program folder with Windows 7

Post by xnview »

Do you have write access in this folder?
Pierre.
jcc
Posts: 16
Joined: Tue Nov 03, 2009 10:47 am
Location: Tournefeuille (31), France

Re: xnview.ini in program folder with Windows 7

Post by jcc »

xnview wrote:Do you have write access in this folder?
In Windows 7 (as in Windows Vista) Program files is protected. But I can write with confirmation. I'm administrator.
With XP compatibility, xnview.ini is created and modified without problem.

So I don't think this is THE problem...

Thanks for your answer.
Jean-Claude
User avatar
xnview
Author of XnView
Posts: 37987
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: xnview.ini in program folder with Windows 7

Post by xnview »

jcc wrote:
xnview wrote:Do you have write access in this folder?
In Windows 7 (as in Windows Vista) Program files is protected. But I can write with confirmation. I'm administrator.
With XP compatibility, xnview.ini is created and modified without problem.
XnView write the file in this folder, so it seems that it can't here... I can send you a test version with a warning if file can not be written?
Pierre.
jcc
Posts: 16
Joined: Tue Nov 03, 2009 10:47 am
Location: Tournefeuille (31), France

Re: xnview.ini in program folder with Windows 7

Post by jcc »

xnview wrote: XnView write the file in this folder, so it seems that it can't here... I can send you a test version with a warning if file can not be written?
Why not for a test version... But I think we are not in the right way...
I remember now I've tried XnView with admin permission and without any previous OS compatibility... xnview.ini file has not been created. Same with Vista compatibility.
I have also copied a xnview.ini file manually in program folder, then launched it. Settings haven't been taken into account.
Only XP compatibility (admin rights not needed) can create xnview.ini in Windows 7.
Jean-Claude
User avatar
xnview
Author of XnView
Posts: 37987
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: xnview.ini in program folder with Windows 7

Post by xnview »

jcc wrote:
xnview wrote: XnView write the file in this folder, so it seems that it can't here... I can send you a test version with a warning if file can not be written?
Why not for a test version... But I think we are not in the right way...
I remember now I've tried XnView with admin permission and without any previous OS compatibility... xnview.ini file has not been created. Same with Vista compatibility.
I have also copied a xnview.ini file manually in program folder, then launched it. Settings haven't been taken into account.
Only XP compatibility (admin rights not needed) can create xnview.ini in Windows 7.
Perhaps you can try the 1.97b1, you'll see the location used for .ini
Pierre.
jcc
Posts: 16
Joined: Tue Nov 03, 2009 10:47 am
Location: Tournefeuille (31), France

Re: xnview.ini in program folder with Windows 7

Post by jcc »

xnview wrote:Perhaps you can try the 1.97b1, you'll see the location used for .ini
OK. I'll test this beta version tomorrow.
Jean-Claude
jcc
Posts: 16
Joined: Tue Nov 03, 2009 10:47 am
Location: Tournefeuille (31), France

Re: xnview.ini in program folder with Windows 7

Post by jcc »

xnview wrote:Perhaps you can try the 1.97b1, you'll see the location used for .ini
After trying 1.97b1 I've the same problem (without warning).

I've made an other test: in a folder out out C:\Program files (for example on Desktop) it works very well (both official version and 1.97b1 version). But I've never got a warning for not writing ini file. The option of Xnview is still "Ini in the folder of application" but the settings are stored in an other place. I've searched in AppDatas, in Windows folder... no ini file but settings are stored somewhere!

I think that Windows 7 don't allow XnView to work with an ini file in C:\Program files\XnView. It's not a writing rights problem...
Jean-Claude
User avatar
xnview
Author of XnView
Posts: 37987
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: xnview.ini in program folder with Windows 7

Post by xnview »

jcc wrote:
xnview wrote:Perhaps you can try the 1.97b1, you'll see the location used for .ini
After trying 1.97b1 I've the same problem (without warning).
But what do you see in Info dialog box => "INI: ....."
I think that Windows 7 don't allow XnView to work with an ini file in C:\Program files\XnView. It's not a writing rights problem...
Yes, perhaps....
Pierre.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France

Re: xnview.ini in program folder with Windows 7

Post by Clo »

:arrow: Pierre

:) Hello !

• FYI : Ch. Ghisler has reset the old default installation as C:\Totalcmd to avoid these issues with Vista-Win7.
- Using the pre-chewed “Program Files” location leads to such troubles…

:arrow: jcc

:) Hello !

• You might try to install XnView from the ZIP package as :
C:\XnView\…
and use the INI file in the programme directory.

:mrgreen: KR
Caude
Clo
Old user ON SELECTIVE STRIKE till further notice
jcc
Posts: 16
Joined: Tue Nov 03, 2009 10:47 am
Location: Tournefeuille (31), France

Re: xnview.ini in program folder with Windows 7

Post by jcc »

Clo wrote: • You might try to install XnView from the ZIP package as: C:\XnView\…
and use the INI file in the programme directory.
Thanks Clo. I know now that I can use correctly XnView if it is out of "Program files" folder... :)

But I want for the future that XnView will be full compatible with Windows 7.
Jean-Claude
jcc
Posts: 16
Joined: Tue Nov 03, 2009 10:47 am
Location: Tournefeuille (31), France

Re: xnview.ini in program folder with Windows 7

Post by jcc »

xnview wrote:But what do you see in Info dialog box => "INI: ....."
When XnView is in "Program files" folder:
In "About" dialog box, it is written INI used: C:\Program Files\XnView\xnview.ini
...but xnview.ini doesn't exist in this folder! :(
... and settings are saved... I don't know where!!!

If I use XP compatibility: the xnview.ini file is created. But if I try, for example, to modify Thumbnails labels, XnView shut down at any time!!! :evil:

If I define xnview.ini from an other place (XnView works perfectly here), then I copy this file in Program files\XnView folder: XnView doesn't take care of it in standard mode, but in XP compatibility mode, it takes account of the xnview.ini settings. In this last case, XnView seems unable to modify the ini file.

So, while wainting an official solution for Windows 7, I'll move XnView folder out of Program files!
Pierre, If you want to continue the tests with Windows 7, just ask me what to do... and you can speak French if you prefer (Je suis Français).
Jean-Claude
User avatar
xnview
Author of XnView
Posts: 37987
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: xnview.ini in program folder with Windows 7

Post by xnview »

jcc wrote:But I want for the future that XnView will be full compatible with Windows 7.
But XnView is compatible with 7, if 7 don't authorize to write in 'Program Files', i don't know what to do...
xnview wrote:But what do you see in Info dialog box => "INI: ....."
When XnView is in "Program files" folder:
In "About" dialog box, it is written INI used: C:\Program Files\XnView\xnview.ini
...but xnview.ini doesn't exist in this folder! :(
... and settings are saved... I don't know where!!!
So 7 change the path, it's impossible to write in 'program files'
Pierre.
User avatar
rra
Posts: 190
Joined: Thu May 11, 2006 1:46 pm
Location: The Netherlands

Re: xnview.ini in program folder with Windows 7

Post by rra »

The INI file goes to the "virtual store" on windows-7

c:\users\rra\Appdata\local\Virtual Store\Program Files\

, with RRA being the logged on user offcourse.

René
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France

Re: xnview.ini in program folder with Windows 7

Post by Clo »

:arrow: Pierre

:) Again…
But XnView is compatible with 7, if 7 doesn't authorize to write in 'Program Files', i don't know what to do...
• Do like Ghisler ! Set the default installation outside the damned “Program Files”.
About the path, still “The shorter, the better8)
- Which benefit to use it ? Like we can see here : Only annoyances…
• Just my humble opinion, of course…

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice