Тогда стоит изменять значение переменной среды при установке программы. Как это делает та же Delphi к примеру.
Вот немного из хелпа:
Цитата:
|
Сообщение от Help
To programmatically add or modify system environment variables, add them to the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Session Manager\Environment registry key, then broadcast a WM_SETTINGCHANGE message. This allows applications, such as the shell, to pick up your updates.
|
|