できることは、Version.wxi
次のようなファイルを生成する ac/c++ プログラムを作成することです。
<?xml version="1.0" encoding="utf-8"?>
<Include>
<?define ProductVersion.Major="4"?>
<?define ProductVersion.Minor="4"?>
<?define ProductVersion.Revision="8"?>
<?define ProductVersion.Build="33"?>
<?define ProductVersion="4.4.8.33"?>
....
</Include>
次に、これらのバージョン番号をメインの wxs ファイルに含めて使用できます。
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?include Version.wxi ?>
<?define UpgradeCode="GUID"?>
<Product Id="*"
Name="$(var.ProductName) $(var.ProductVersion.Major).$(var.ProductVersion.Minor)"
Version="$(var.ProductVersion)" Language="1033"
Manufacturer="$(var.Company)" UpgradeCode="$(var.UpgradeCode)">
Wix プロジェクトをコンパイルする直前に Version.wxi を生成します。たとえば、.wixproj ファイルを変更して、それを行うターゲットを追加します。