[wix-users] DLL with invalid version sets File/@Version to 0.0.0.0

Bob Arnson bob at firegiant.com
Fri Nov 15 13:56:34 PST 2019


The binder uses MsiGetFileVersion to get file version and language info from the versioninfo resource. If it doesn't return an error code, WiX doesn't complain.

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Jacques Eloff via wix-users
Sent: Thursday, 14 November, 2019 12:45
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Jacques Eloff <repstosd at gmail.com>
Subject: [wix-users] DLL with invalid version sets File/@Version to 0.0.0.0

Hi

I noticed that when a managed DLL contains an invalid AssemblyFileVersion attribute, the Version column in the File table reverts this to 0.0.0.0.
For example, I had a file that was set to something like "2.2.2.70424.0" 5 parts instead of 4 and the 4th part is outside the uint16 range.

Is this expected, or should the linker or maybe even an ICE call out the
0.0.0.0 version as a warning?

Thanks,
Jacques

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list