All environment variables are stored in the registry of template when the template is created (can be edited as part of the process).
We do not current merge container and template variables when adding a template to container, we assume the path of the temp container is sufficient.We will consider a better merge mechanism as a feature request though.
Here is what to do in case if you don't need this path overwritten:
a) During template creation/modification in the wizard's registry editor (shows just after the temp container is stopped and files are bundled), click edit registry values and find and remove corresponding environment variable. They mostly stored in HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment, here every value means some variable, f.e. Path is Path variable.
b) Remove it but note the value added by the template (this way the template does not make any changes/overwrite the current path)
c) Click edit files on the same page the edit registry option is located. open wizards file editor, find vz-pre_template_install.cmd file and insert commands that will extend the current path with the needed values.
1. Also note that this script is executed in the context of the hardware node so you need to query VE registry HKLM\vz%VPSID%\ as part of the sequence in adding requestry values to ensure it gets added to the right container not the hardware node itself.