| Back | Main view
Selected scanner and its settings - ini file handling
Product: | IMiS/Scan, IMiS/Scan++, IMiS/View, IMiS/View++ |
Release: | 5.6.601 and above |
Date: | 11/09/2007 |
Case:
IMiS/Scan and IMiS/View store their scanner settings in so called INI files. From version 5.6.601 onwards these files are mapped to Windows registry.
Sometimes it is useful to know how to handle these files in the context of roaming profiles, user ability to change scanner settings etc.
Description:
IMiS/Scan and/or IMiS/View uses three INI files:
setscan.ini: stores information of last selected scanner and all previously selected scanners
imis.ini: stores information of detail settings for the currently selected scanner.
pixchache.ini: includes cached information for scanner driver. It is not part of this case and it should not be changed.
All these files are used by scanner device drivers and user must have at least reader access to these keys.
From version 5.6.601 onwards these files are mapped to registry keys under the following key: HKEY_CURRENT_USER\Software\IS\IniFiles.
In effect that means that every user can have their own scanner settings regardless on which computer he logs in (if roaming user profiles are enabled). In previous versions these files were in %WINDOWS% directory meaning all users shared these files and with this scanner settings.
Mapping ini files to registry is called INIFileMapping (see: http://www.microsoft.com/technet/archive/ntwrkstn/reskit/26_ini.mspx?mfr=true). Default installation of IMiS/View or IMiS/Scan makes three INI file mappings in a registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping
corresponding to our INI files names.
To make scanner selection and settings global (same for all users) you can move these ini files to the global store instead of user store:
Move all INI files subkeys and values from HKEY_CURRENT_USER\Software\IS\IniFiles key to HKEY_LOCAL_MACHINE\SOFTWARE\Software\IS\IniFiles (if key does not exists create one).
Start regedt32 program and use Permission function to set desire rights on INI files keys. They must have at least Query Value, Enumerate Subkeys and Read Control.
Change the default value of INI file name key under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping to point to the new location.
Example: before change is made default value in imis.ini key under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping
default setting: #USR:SOFTWARE\IS\IniFiles\imis.ini
change to: #SYS:SOFTWARE\IS\IniFiles\imis.ini.
You can prevent Windows from mapping these file to registry and continue using ini files from %WINDOWS% directory:
Remove imis.ini and setscan.ini file mappings from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping subkeys, restart Windows or at least log in again, start IMiS/View or IMiS/Scan, set desire scanner setting and INI files will be crated on WINDOWS directory if user has write access to %WINDOWS% directory. Once they are set, you can limit user cahnges to these settings by putting file permission restrictions on these files.
Related Documents:
| Back | Main view