Hello everyone,

is it possible to use the DefaultVersion attribute for unversioned files? I
ship PNG files as part of my install. I always want the PNG files that come
with my installer to copy over the PNG files of an older version of my
product, even if the user has modified them or replaced them with his own
files. So I thought, I could give the PNG files in my WiX source code the
DefaultVersion attribute and increment their version number with each new
version of my product. However, if I add the DefaultVersion attribute to one
of my PNG files, I get the following linker error:

error LGHT1103: The DefaultVersion '1.2.3' was used for file 'AbcPng' which
has no version. No entry for this file will be placed in the MsiFileHash
table. For unversioned files, specifying a version that is different from
the actual file may result in unexpected versioning behavior during a repair
or while patching. Version the resource to eliminate this warning.

So what am I doing wrong? I read that people use the DefaultVersion
attribute for text files, so this must work somehow. What am I missing? Or
does the DefaultVersion attribute only work for Windows PE files that
contain a version info resource in order to achieve version lying?

Any help appreciated,

-- 
Stefan Kuhr

-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-can-I-use-DefaultVersion-for-unversioned-files-tp5198138p5198138.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to