In my installer project (WiX), I define a preprocessor variable like on the Build tab of the properties pages like so:
Version=1.1.0.0
For the sake of argument, let's say I can just as easily define it as a variable instead of a preprocessor variable.
My goal is thus: I would like to use this variable in the installer output name:
Me.Common_$(Version)
The above, of course, doesn't work - the variable referenced isn't found, so the actual output ends up being Me.Common_.msi
. Is there a way to use a user-defined variable in this context?
Another viable option would be to rename the MSI file in the post-build events. However, I still can't access the variable here.
ren "!(TargetPath)" "$(TargetName)_$(Version)$(TargetExt)"
A solution to either of these methods would work for me.