Hello,
In order to achieve this you have to create a New Environment Variable in the Environment Variable page in the System Changes section, with the values:
Name: Path
Value: [directory path you need]
Component: [select the component it is related to]
On install: Create or update
Remove on ...