This is the versioning description:
http://msdn2.microsoft.com/en-us/library/aa368267.aspx
 
It might not explicitly say so, but MSI sets the creation/modify dates
to be identical when unversioned files are installed, the reason being
that if these dates are later found to be different then the file's been
changed and will not be overwritten.  "Newer" and "Older" aren't factors
in replacing files, just versions, file hashes and create/modify dates
being different or not. 

Phil Wilson 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Palmer
Sent: Tuesday, December 12, 2006 12:55 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Fwd: How can I force files to be overwritten?



I have a follow-up question:

  Where are the docs that say how Windows Installer sets the dates on
files that it installs?

I ask because it turns out that the version resource is not the culprit
in this case.  It's sort of the opposite problem.. the versioned files
are OK, the unversioned files got hosed. 

My installer picks source files from an install of another companies
product.  We need to redistribute a portion of the files from an SDK
that we install from a third party.  It seems that when running the
third party's install (which uses Windows Installer) the date of
unversioned files is being set to the date that the install is
performed.  This is obviously a bad idea, because when these files are
pulled into my installer the date stamp on them is independant of the
actual age of the file.   This allows me to easily get into the
situation where I overwrite newer files with older files when I don't
want to be. 

Thanks in advance.

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

Reply via email to