---------- Forwarded message ----------
From: John Ludlow <[EMAIL PROTECTED]>
Date: Dec 11, 2006 11:34 PM
Subject: Re: [WiX-users] How can I force files to be overwritten?
To: Scott Palmer <[EMAIL PROTECTED]>

You need to look into the REINSTALLMODE property
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/reinstallmode.asp
).  This property controlls how MSI interprets the versioning rules.

I believe another way is to set the file version to something very high, so
it will be overwritten in any situation. (This isknown as "version lying"
since you're essentially lying about the file version).  I think you can use
the DefaultVersion attribute for this.   However, I've never got this
working very welll...

On 12/11/06, Scott Palmer <[EMAIL PROTECTED]> wrote:

I have several files from a third party that I can not control the version
information in.  It may be that the version information is set to 1.0.0.0for 
different versions of the same file, some files have no version info at
all.  I want to be sure that the latest file gets installed even if the
previous version is already in place.  This doesn't seem to be the case
currently, which results in a mix between version A and version B of this
framework.  Obviously that causes a problem.   Is there an easy way to get
the MSI to do the right thing?   My first guess is that I might be able to
use the CompanionFile attribute.. but that is going to be a very tedious
thing to set up.  I'm not even sure if CompanionFile can refer to files in
other components, as it isn't mentioned in the WiX docs.

Scott


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to