Environment Variable Load Order
- From: F. David del Campo Hill <FDaviddelCampoHill@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 06:36:01 -0800
Dear All,
Does anyone know the order in which (system) environment variables are
loaded upon user log in?
I have an installation program which sets one system environment variable:
GTK_BASEPATH=C:\GTK
and changes the path system environment variable adding:
PATH=%GTK_BASEPATH%\bin;...
This works as expected just after the installation (PATH is effectively
C:\GTK\bin;...), but if you log out and log in again (as any user) you find
that %GTK_BASEPATH%\bin has NOT been "resolved" and files in that folder are
not part of the PATH. If you reload the environment variables manually
(right-click My Computer > Properties > Advanced > Environment Variables >
....; no need to actually make any changes, just press OK), then the PATH
includes C:\GTK\bin again (%GTK_BASEPATH% is being "resolved" to its value
when calling PATH).
My assumption is that environment variables are loaded in a certain order
when a user logs in, and PATH is being loaded before GTK_BASEPATH, so it is
ignoring the %GTK_BASEPATH%\bin at its beginning. But it is only an
assumption, so can anyone provide information on the order or priority of
environment variables?
Thank you for your help.
F. David del Campo Hill
.
- Follow-Ups:
- Re: Environment Variable Load Order
- From: Pegasus \(MVP\)
- Re: Environment Variable Load Order
- Prev by Date: Re: change CD settings
- Next by Date: Re: Hard drive light flickers continuously.
- Previous by thread: something is changing volume to zero on reboot
- Next by thread: Re: Environment Variable Load Order
- Index(es):
Relevant Pages
|
|