I have read references that seem to suggest the ability to reference a bind or WiX variable at the command line (this one being the most obvious). This would give me the ability to add the Assembly Information to the name of the MSI that gets generated. For example,
light.exe ... -out Installer.!(bind.FileVersion.myExe).msi ...
light.exe ... -out Installer.!(wix.BlahInfo).msi ...
There is definitely some validation going on. If the WixVariable ID name is different between the WXS file and the reference in the light.exe command, I get an error:
light.exe : error LGHT0197 : The Windows Installer XML variable !(wix.BlahInfo1) is unknown
If I make sure they match, then the error disappears:
<WixVariable Id="BlahInfo" Value='!(bind.FileVersion.myExe)'/>
light.exe ... -out Installer.!(wix.BlahInfo).msi ...
However, no matter what I try, the resulting MSI file never does a run time variable replacement. Instead, it just adds the !(...) to the file name. As an example my last build produced a file with the following name:
Installer.!(wix.BlahInfo).msi
Is this something that can be done or have I misunderstood the documentation? Thanks.