Kbase 16892: How to use Registry information, Progress Ini2Reg.exe and Startup Options
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  21/10/2008 |
|
Status: Verified
GOAL:
How to use Registry Information and Progress Ini2Reg.exe
GOAL:
How to use Startup Options
FACT(s) (Environment):
Progress 8.x
Progress 9.x
OpenEdge 10.x
All Supported Operating Systems
FIX:
This Solution provides a brief overview of Progress 8.2 and higher client startup sequence and settings. It also touches upon the Registry, some usages of the Ini2Reg executable, and some optional startup parameters to guide the loading of a Progress client.
Beginning with the release of Progress 8.2, Progress made the industry shift to utilize the Windows 95/NT Registry.
When Progress installs, it now makes several entries into the Registry. The place that Progress will create Registry entries currently is defaulted to:
HKey_Current_User\Software\PSC\Progress\<version number>
When you install Progress 8.2 or higher on your server machine for the first time, it will ask you if you wish to make the settings the default for all users on this machine. If you choose yes, it will also install Registry key entries to the following location:
HKey_Local_Machine\Software\PSC\<productname>\<version number>
If you are the Administrator of the machine and are installing, then your Profile is the one that is the HKey_Current_User for the duration of the time you are logged in to that machine. Since no one else has access to your profile, if someone else logs in to that machine under a different user name they will not have access to your profile because their profile would be loaded into HKey_Current_User.
-- Ini2Reg.exe:
Ini2Reg.exe is a tool that Progress has provided to migrate existing
Progress.ini files into the appropriate places in the Registry.
When you start Ini2Reg you will have the opportunity to select which .ini file to migrate to the Registry. You will also be given the choice of which Registry Key location to insert the .ini values into. To have the Registry values useable by all the local users of the machine, migrate the values to:
HKey_Local_Machine.
(NOTE: Because on WinNT machines, each user has their own Profile allowing them to have customizable Registry settings, you
may also want to run Ini2Reg for those users who need to have the
ability to modify some of the Progress Registry settings without
disturbing the normal working of Progress for other users. If you
do need to have special settings for one person, then while that
user is logged in to the machine you can run Ini2Reg and migrate a
specifically tailored .ini file, then insert those values into
HKey_Current_User)
-- Registry Search Path and Order:
When Progress is started it has the following method for searching
for startup parameters. First it Checks the Registry in the following order:
HKey_Current_User"\<Path>\<root name>.<extension>"
HKey_Current_User"SOFTWARE\PSC\PROGRESS\version\<Path>\
<root name>.<extension>"
HKey_Current_User"SOFTWARE\<Path>\<root name>.<extension>"
HKey_Current_User"<root name>.<extension>"
HKey_Current_User"SOFTWARE\PSC\PROGRESS\version\<Path>\
<root name>"
HKey_Current_User"SOFTWARE\<root name>"
HKey_Local_Machine"\<Path>\<root name>.<extension>"
HKey_Local_Machine"SOFTWARE\PSC\PROGRESS\version\<Path>\
<root name>.<extension>"
HKey_Local_Machine"SOFTWARE\<Path>\<root name>.<extension>"
HKey_Local_Machine"<root name>.<extension>"
HKey_Local_Machine"SOFTWARE\PSC\PROGRESS\version\<Path>\
<root name>"
HKey_Local_Machine"SOFTWARE\<root name>"
-- Starting Progress with an .ini file:
As you see from the previous section it will search first in the
HKey_Current_User registry keys to find Progress startup settings
before it later moves to the HKey_Local_Machine key. Only when it has found no Progress startup settings in either of these keys, will it eventually switch to searching for a Progress.ini file.
However, you can bypass all this searching and explicitly tel.l
it what key or .ini file to use.
Example 1:
If you startup Progress with:
prowin32.exe -basekey "HKEY_Local_Machine" -ininame
"SOFTWARE\PSC\PROGRESS\8.2A"
it will search directly in the Registry under,
HKey_Local Machine for a subkey "SOFTWARE\PSC\PROGRESS\8.2A", then search for Progress startup settings within that.
Example 2:
If you wished to startup Progress using an old .ini file, starting Progress with:
prowin32.exe -basekey "INI" -ininame "c:\dlc\bin\progress.ini"
will bypass the Registry and look for a file named progress.ini in the c:\dlc\bin directory..