Build_MSI : The Product/@Version attribute’s value, ‘$version_full_numeric$’, is not a valid version


#1

Unable to build the client exe as it looks like there is some type of bug. From research it looks like this is an issue with WIX but I’m unsure. Has anyone seen this or know a workaround?

C:\Users\Administrator\Desktop\Backend\client>build_msi

C:\Users\Administrator\Desktop\Backend\client>set version=$version_short$

C:\Users\Administrator\Desktop\Backend\client>candle -ext WixUtilExtension -ext WixFirewallExtension urbackup.wxs
Windows Installer XML Toolset Compiler version 3.10.4.4718
Copyright © .NET Foundation and contributors. All rights reserved.

urbackup.wxs
C:\Users\Administrator\Desktop\Backend\client\urbackup.wxs(4) : error CNDL0108 : The Product/@Version attribute’s value, ‘$version_full_numeric$’, is not a valid version. Legal version values should look like ‘x.x.x.x’ where x is an integer from 0 to 65534.
C:\Users\Administrator\Desktop\Backend\client\urbackup.wxs(4) : error CNDL0010 : The Product/@Version attribute was not found; it is required.

C:\Users\Administrator\Desktop\Backend\client>light urbackup.wixobj -ext WixUtilExtension -ext WixFirewallExtension -ext WixUIExtension -out “UrBackup Client $version_short$(x64).msi”
light.exe : error LGHT0103 : The system cannot find the file ‘urbackup.wixobj’ with type ‘Source’.

C:\Users\Administrator\Desktop\Backend\client>cp urbackup.wxs urbackup_notray.wxs

C:\Users\Administrator\Desktop\Backend\client>patch urbackup_notray.wxs urbackup.wxs.notray.patch
‘patch’ is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Administrator\Desktop\Backend\client>candle -ext WixUtilExtension -ext WixFirewallExtension urbackup_notray.wxs
Windows Installer XML Toolset Compiler version 3.10.4.4718
Copyright © .NET Foundation and contributors. All rights reserved.

urbackup_notray.wxs
C:\Users\Administrator\Desktop\Backend\client\urbackup_notray.wxs(4) : error CNDL0108 : The Product/@Version attribute’s value, ‘$version_full_numeric$’, is not a valid version. Legal version values should look like ‘x.x.x.x’ where x is an integer from 0 to 65534.
C:\Users\Administrator\Desktop\Backend\client\urbackup_notray.wxs(4) : error CNDL0010 : The Product/@Version attribute was not found; it is required.

C:\Users\Administrator\Desktop\Backend\client>light urbackup_notray.wixobj -ext WixUtilExtension -ext WixFirewallExtension -ext WixUIExtension -out “UrBackup Client (No tray) $version_short$(x64).msi”
light.exe : error LGHT0103 : The system cannot find the file ‘urbackup_notray.wixobj’ with type ‘Source’.

C:\Users\Administrator\Desktop\Backend\client>pause
Press any key to continue . . .


#2

I was able to build the msi file by replacing ‘$version_full_numeric$’ in the urbackup.wxs file to ‘1.1.1.1’ which fixed the issue. Is there a way to get this to work properly and grab the correct value?