How are Delphi 'environment variables' such as $(BDS) evaluated?

前端 未结 5 2177
梦谈多话
梦谈多话 2020-12-06 01:17

I\'m making some tidy installers for our internal libraries (instead of just opening the DPK\'s and clicking \'install\' and getting in a mess later...) and this has caused

5条回答
  •  鱼传尺愫
    2020-12-06 01:53

    Thanks, I thought I would add that when I created a new environment variable - (to be used in my DCC_UnitSearchPath as $(VISEMS) ), I observed that it was placed into the registry.

    For a specific example I found it in: Computer\HKEY_CURRENT_USER\Software\Embarcadero\BDS\17.0\Environment Variable

    The "accepted answer" above needs to be updated to reflect the there are version numbers in the registry path, since in my case, the "accepted answer" is incorrect (when it says: HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\8.0\ ) as there is nothing at "BDS\8.0" since 8.0 is not installed on my computer.

提交回复
热议问题