I have a Merge Module that contains all the files for the installation. Now in the installer project I need to be able to reference the executable in order to get the version for the product .
If the exe file id is Service.1AFABC17_7182_4596_8CB3_3BE62FC79884.
This doesn't work: <Product Id="*" Version="!(bind.FileVersion.Service.1AFABC17_7182_4596_8CB3_3BE62FC79884)"
I have tried to set a variable in the merge module
<Property Id="InstallVersion" Value="!(bind.FileVersion.Service)" /> but I can't use it like this <Product Id="*" Version="[InstallVersion.1AFABC17_7182_4596_8CB3_3BE62FC79884]"
is there any way to solve it?