How can I set the WiX installer version to the current build version?

You could use Product/@Version="!(bind.FileVersion.FileId)" (replace FileId with the Id of the file from which you’d like to get the version number) and light.exe will populate the value with the version of the file referenced by the FileId.

Leave a Comment