#8 Automate Version in Project

open
nobody
None
5
2013-06-03
2007-10-11
DonKing
No

Hi - I wish to support the increase in version number each time a newer version is created of the MSI build.

Therefore, is anybody able to provide examples of WiX supporting auto generation of the version attribute in
the project element tag?

If this is not directly supported by WiX can anyone kindly provide recommendations on how to support this requirement.

Many Thanks

Discussion

  • How can I view this example?

     
  • Gerhard
    Gerhard
    2013-06-03

    IF you update the verion in every build you can do this:

    Use the UtilExtension and insert

    ..

    <Product Id="*"
        Name="$(var.ProductName) $(var.ProductVersion)"
        Manufacturer="$(var.CompanyName)"
        Version="$(var.ProductVersion)"
        Language="!(loc.LANG)"
        UpgradeCode="$(var.UpgradeCode)">
    

    etc..

     
  • Gerhard
    Gerhard
    2013-06-03

    I miss the definition line (dropped?) in my post ..

    <?define ProductVersion ="!(bind.FileVersion.sample.exe)"?>