Your InfoMaker configuration information is stored in both the registry and initialization files. When you start InfoMaker in the IDE, it primarily uses the IM.INI file and the registry to set up your environment.
However, when you run an executable generated by InfoMaker, it uses a separate initialization file called PB.INI, which should be located in the same directory as the executable.
Some InfoMaker IDE features require the use of the IM.INI file, but many features use the registry to get and store configuration information. Normally, you should not need to access or modify items in the registry.
-
User-sepcified preferences (such as the way you have arranged your views in the painters and the shortcut keys you have defined for InfoMaker menu items) are stored in
HKEY_CURRENT_USER/Software/Sybase/InfoMaker/[version]
-
Installation-related information is stored in
HKEY_LOCAL_MACHINE/Software/Sybase/InfoMaker/[version]
The initialization file is a text file that contains variables used to store InfoMaker configuration settings. These settings include user preferences, environment information, and application feature options, such as the last database connected to, the PBLs being used, the modern graph settings etc.
-
IM.INI is used by the InfoMaker IDE. When you perform certain actions in InfoMaker, InfoMaker writes your preferences to the IM.INI file automatically.
Normally, you do not need to edit the IM.INI file. You can specify all your preferences by taking an action, such as resizing a window or opening a new application, or by selecting Design>Options from one of the painters. But sometimes a variable does not appear by default in the options sheet for the painter. In this case, you can use a text editor to modify the variable in the appropriate section of the IM.INI file.
Editing the IM.INI file
Do not use a text editor to edit the InfoMaker IM.INI file or any preferences file while InfoMaker is running. InfoMaker caches the contents of initialization files in memory and overwrites your edited InfoMaker initialization file when it exits, ignoring changes.
-
PB.INI is used by the compiled executable. The executable looks for PB.INI in its own application directory.
Format of INI files
Both IM.INI and PB.INI use the Windows INI file format which have three types of elements:
-
Section names, which are enclosed in square brackets
-
Keywords, which are the names of preference settings
-
Values, which are numeric or text strings, assigned as the value of the associated keyword
A variable can be listed with no value specified, in which case the default is used.
Some sections are always present by default, but others are created only when you specify different settings. If you specify preferences for another painter or tool, InfoMaker creates a new section for it at the end of the file.
Where the initialization file is kept
The InfoMaker IDE uses an initialization file called IM.INI. By default, IM.INI is installed in the same directory as the InfoMaker executable file.
Compiled executable applications use a separate initialization file called PB.INI. PB.INI should be located in the application directory.
Telling InfoMaker where your IM.INI file is
You can keep your IM.INI file in another location and tell InfoMaker where it can find it by specifying the location in the System Options dialog box. You might want to do this if you use more than one version of InfoMaker or if you are running InfoMaker over a network.
To record your IM.INI file path:
-
Select Tools>System Options from the menu bar.
-
On the General tab page, enter the path of your IM.INI file in the Initialization Path textbox.
InfoMaker records the path in the Windows registry.
How InfoMaker finds the IM.INI file
InfoMaker looks in the Windows Registry for a path to the IM.INI file, and then looks for the file in the directory where InfoMaker is installed. If InfoMaker cannot find the IM.INI file using the path in the Registry, it clears the path value.
If the IM.INI file is missing
If InfoMaker does not find the IM.INI file when it starts up, it recreates it. However, if you want to retain any preferences you have set, such as database profiles, keep a backup copy of your IM.INI file. The recreated file has the default preferences.


