The default file versioning rules will do this: - Check the timestamps on the file. If the modified timestamp is different from the creation timestamp, the file has been modified by the user and it will not be overwritten.
- If the MsiFileHash table is present, it will hash the file on disk and if the hash matches, it will be skipped. - Otherwise the file is always overwritten. This appears to be the precise opposite of what you want. These are the rules that Windows Installer will use by default if you just double-click the MSI. To change what it's doing, you need to set REINSTALLMODE (the /f option only works on a repair). It sounds like you probably want to use REINSTALLMODE=amus. If the file is unchanged, it doesn't matter whether it's actually overwritten or not - it'll waste a little I/O time, but you'll have the same file afterwards. So I'd say you Always want to overwrite. -- Mike Dimmick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Georgi Shopov Sent: 26 March 2008 00:17 To: wix-users@lists.sourceforge.net Subject: [WiX-users] WiX, MSI checksum and overwrite behaviour Hi, can any body give me suggestion what is the proper combination of MSIEXEC fix command options and file (WiX) properties that will ensure that a file will be overwritten ONLY in the case it is different or missing; I have Windows Installer version 3; I use the basic SampleFirst.wxs example with a text file; The file passes ICE checks in ORCA with no errors/warnings reports; Basically it has one feature with one component with one text file; The file has checksum attribute set to "yes" and the file hash is present in MsiFileHash table; I install the packet with "MSIEXEC /i samplefirst.msi" command and it is properly installed; What I need to figure out is how to get this behaviour: if a fix/update command is started, if file is not changed, the file NOT to be overwritten; if a fix/update command is started, if file is changed, the file to be overwritten; ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users