I would like to know if its possible to make xnview install with the function "tools->options->view->high quality zoom reduce/enlarge" both turned on at installation. this way I will not have to follow setup with an explanation and directions to turn that on.
Is there a command line switch or can xnview be compiled with those functions on by default? What can I do?
P Langham
Lindsay Ontario Canada.
Can an option be turned on at installation?
Moderators: helmut, XnTriq, xnview
XnView supports some command line options, but there is no command line options for specifc settings. All settings are loaded and stored in the xnview.ini file or the registry, see topic "Info about XnView's settings (store & load)" for more details.
I'm not 100% what to do here, but I'll try to explain a possible solution:
Custom ZIP package
You can create your own custom installation package (ZIP archive) by:
1. Downloading and unpacking XnView
2. Place a file xnview.ini in the program directory. The xnview.ini would be very short and contain only the entries you want to change. An easy way to find out about the name and value of the entries is a comparison of two .ini files using a diff tool like WinMerge.
In your case the xnview.ini would contain:
(Make sure that you include not only the changed values but also the section names (e.g. "[Browser]", "[Cache]", "[ContactSheet]" in your xnview.ini file.)
3. Finally you pack the whole XnView program directory into a new ZIP package which you can use for installation on other PCs.
This is a possible, but not proven way which should be further discussed. Especially with the various possible locations of the xnview.ini file I'm not so sure. And it's often a good idea to integrate XnView into the Windows system using various registry settings (see topic How to configure XnView properly), the installation described above does not tackle this issue. Perhaps Pierre or an other XnView user / administrator knows an even better or easier way.
I'm not 100% what to do here, but I'll try to explain a possible solution:
Custom ZIP package
You can create your own custom installation package (ZIP archive) by:
1. Downloading and unpacking XnView
2. Place a file xnview.ini in the program directory. The xnview.ini would be very short and contain only the entries you want to change. An easy way to find out about the name and value of the entries is a comparison of two .ini files using a diff tool like WinMerge.
In your case the xnview.ini would contain:
Code: Select all
[Browser]
HighQuality=0
3. Finally you pack the whole XnView program directory into a new ZIP package which you can use for installation on other PCs.
This is a possible, but not proven way which should be further discussed. Especially with the various possible locations of the xnview.ini file I'm not so sure. And it's often a good idea to integrate XnView into the Windows system using various registry settings (see topic How to configure XnView properly), the installation described above does not tackle this issue. Perhaps Pierre or an other XnView user / administrator knows an even better or easier way.
Thanks very much for this information. I will try this method and see how it goes and report back here the results of installation across a network of pc's.
If any of the devs have any thoughts as mentioned above, certainly intervene.
We are recommending XN to a number of hospitals in Canada for viewing scanned tiff images but this option must be on for them to make out these large drawings when zoomed to "fit to screen/window".
This could be pretty big for XN to have the Canadian healthcare industry taking notice of it and using it, there are thousands of hospitals in Canada.
PL
If any of the devs have any thoughts as mentioned above, certainly intervene.
We are recommending XN to a number of hospitals in Canada for viewing scanned tiff images but this option must be on for them to make out these large drawings when zoomed to "fit to screen/window".
This could be pretty big for XN to have the Canadian healthcare industry taking notice of it and using it, there are thousands of hospitals in Canada.
PL
Having some difficulty accomplishing this. It doesnt seem that XN is looking at or adopting the settings in the INI you mentioned above.
I would consider making a reasonable donation to the XNview project if someone in dev could make an installer that includes the settings changes above.
Contact me at <-- removed* --> if this is a possibility.
P Langham.
<-- * E-mail address removed by moderator (see “Rules and Guidelines”) -->
I would consider making a reasonable donation to the XNview project if someone in dev could make an installer that includes the settings changes above.
Contact me at <-- removed* --> if this is a possibility.
P Langham.
<-- * E-mail address removed by moderator (see “Rules and Guidelines”) -->
Hmm, I guess the problem is that it's not that easy to say where to put the .ini so that XnView does read it. Is there any error message or are your settings simply ignored?nimda100 wrote:Having some difficulty accomplishing this. It doesnt seem that XN is looking at or adopting the settings in the INI you mentioned above.
Paying for a special installation package might be an option, but I'd rather like to see a general solution so that any administrator can create such a custom installation package. Sure enough, those custom packages may never go into the web without the author's permission.nimda100 wrote:I would consider making a reasonable donation to the XNview project if someone in dev could make an installer that includes the settings changes above.
...
The settings were just ignored it seems although I didnt try a lot of locations, windows folder, and its folder and wind.../system/
That would seem to be the usual places to try.
PL
Also a thought I had. Not knowing why that setting is off by default on installation but guessing its a performance hit issue when on, I have noted that on pc's built in recent years this does not seem to affect performance much and so could be unnoticibly turned on nowadays.
But again, whatever we have to do to accomplish this we will do, we love XN and wish to keep recommending it.
PL
That would seem to be the usual places to try.
PL
Also a thought I had. Not knowing why that setting is off by default on installation but guessing its a performance hit issue when on, I have noted that on pc's built in recent years this does not seem to affect performance much and so could be unnoticibly turned on nowadays.
But again, whatever we have to do to accomplish this we will do, we love XN and wish to keep recommending it.
PL
- foxyshadis
- Posts: 395
- Joined: Sat Nov 18, 2006 8:57 am
I find it much simpler to just use the registry, where [Sections] are stored as Keys with their values listed inside. That might be where yours is set to store. To find out conclusively, check Options->System Integration. It'll either be the registry, the xnview folder, windows, or "%appdata%/xnview" (that's a special folder name you can type into the address bar, which takes you directly to the user profile settings, like unix %home%).
If you're going to be rolling out installations, you might just import the registry settings as part of the installation. If HKCU\Software\XnView\"UseRegistry" (dword) is 1, it will always use the registry and ignore all ini files. A minimal .reg file for accomplishing this is:
Which can be imported with regedit /s <file> in any version of windows. All unlisted options will be set to default (or their current settings if there's already something there).
If you're going to be rolling out installations, you might just import the registry settings as part of the installation. If HKCU\Software\XnView\"UseRegistry" (dword) is 1, it will always use the registry and ignore all ini files. A minimal .reg file for accomplishing this is:
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\XnView]
"UseRegistry"=dword:00000001
[HKEY_CURRENT_USER\Software\XnView\Browser]
"HighQuality"=dword:00000000