Add the Productversion and other data to the name of the resulting Installer #8793
RanjKuru
started this conversation in
WiX Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My WiX Toolset 3.11 in Visual Studio dutifully creates for executable.exe an Installer. The name of the Installer is always executable.msi. But I want the name of the Installer to be
executable_$(productversion)_$(productbuildtime)_$(buildtime).msi
with the
$(productversion)=1.0.0.1, $ (productbuildtime)=20240518100303 and the $(buildtime)=20240518150303 the resulting name shall be
$(productversion)=Version of the executable.exe $(productbuildtime)=Buildtime of the executable.exe $(buildtime)=Buildtime of the executable.msi
. So with the version of executable.exe aka
executable_1.0.0.1_20240518100303_20240518150303.msi
. The $(buildtime) is different for every run of the WiX-Toolset, the other 2 variables remain the same. My personal favourite solution would be to use the ProductDefines.wxs to defines this data.
property.product.Buildtime="!(bind.buildtime)" property.product.ProductBuildtime="!(bind.FileBuildtime.clvrkwsExe)" property.product.ProductVersion="!(bind.FileVersion.clvrkwsExe)" property.product.Name="!(bind.FileName.clvrkwsExe)_!(var.property.product.ProductVersion)_!var.property.product.ProductBuildtime)_!(var.property.product.Buildtime)"
with Name being the filename of the .msi-File.
Beta Was this translation helpful? Give feedback.
All reactions