So you only want to condition the copy (which corresponds to a MoveFile table row I guess) but not the instalaltion of the component. To do this you need to put the copy element in a separate component, because rows in the MoveFile table can't have conditions by themselves, instead they use components as a "gate".
-- Stefan Krueger Microsoft Windows Installer MVP Please post your questions in the newsgroup or vist one of these web sites: Windows Installer FAQ http://www.msifaq.com - http://www.msifaq.de InstallSite - Resources for Setup Developers http://www.installsite.org http://www.installsite.de (GERMAN) "Frédéric Viollet" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] Stefan Krueger [MVP] a écrit : > The component must have the msidbComponentAttributesTransitive bit set > (don't know the WiX syntax for this). This should remove the component > during (auto-)repair, modify and small and minor updates - probably not > what > you want. BTW in case of Major Upgrade, Installed is FALSE. > I don't fully undertsand what you are trying to achieve, bt maybe > msidbComponentAttributesNeverOverwrite would do what you want. > > In fact, what I'm trying to do is: -on first install, install the file engine.ref and copy it to engine.ini -on upgrades, only install the file engine.ref, but don't touch to the engine.ini file. I was trying to achieve this through the condition element, but I just can make it work... :( Thanks again. Fred ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users