I am copying a file to a directory, and then setting an environment variable to point to that file. This is working, however, I have to hard code the name of the file (I can't reuse what I already have). Here is the example:
<Directory Id="CUSTOM_DIRECTORY" Name="Directory">
<Component Id="Framework" Guid="YOURGUIDIDHERE">
<File Id="FrameworkJAR" Name="framework.jar" DiskId="1" Source="framework.jar" KeyPath="yes" />
<Environment Id="FrameworkVar" Name="CLASSPATH" Action="set" Permanent="no" Part="last" System="yes" Value="[CUSTOM_DIRECTORY]framework.jar" />
</Component>
</Component>
</Directory>
As you can see, in the Value attribute, I can type [CUSTOM_DIRECTORY] which will give me the full path of the directory, but I still have to manually type out framework.jar. Is it possible to just use something like Value="[FrameworkJAR]" to get the full install path of the JAR file?
Thank you.