Hi I have a C/C++ Header file with my products version info init as follows:
#define nMajorVersion 4
#define nMinorVersion 4
#define nPointVersion 8
#define nBuildVersion 33
#define s_szFileVersion "4.4.8.33"
#define s_szProductVersion "4.4.8.33"
Is there any way I can automatically read from this file to update my version number in my wix 3.6 installer? At the moment I have it hard coded and this is not ideal for when it is released. Thanks
What you can do is create a c/c++ program which generates a file
Version.wxiwhich looks like this:Then you can include and use those version numbers in the main wxs file:
Generate the Version.wxi just before you compile your wix project. For example modify the .wixproj file to add a target which does that.