In another question about setting the Product Version attribute for a WiX installer (How can I set the WiX installer version to the current build version?), the most voted answer (which I've tried and works) recommends:
"You could use Product/@Version="!(bind.FileVersion.<FileId>)"
and light.exe will populate the value with the version of the file referenced by the FileId."
...which is great, but appears slightly brittle in Visual Studio WiX projects when using the harvesting capabilities of the WiX VS project in that the FileId for an executable might change.
Is there a safer way of referencing a specific file from the auto-generated .wxs files in Visual Studio other than using the FileVersion Preprocessor Extension (http://wixfileversionext.codeplex.com/)?