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.
-- 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] > Hi everybody, > I have some problems while updating a product through Wix v3 > I've written the following code : > > <Component Id="APM_ENGINE_CONFIG_REF" > Guid="4C6B380E-4DFE-458C-A29F-8A0C434E7F70"> > <Condition>NOT Installed</Condition> > <File Id="ampm_engine.ref" Name="ampm_engine.ref" KeyPath="yes" > Source="$(var.FACT_DESTDIR)\var\config\ampm_engine.ref"> > <CopyFile Id="APM_ENGINE_CONFIG_INI" DestinationDirectory="config" > DestinationName="amengine.ini" DestinationLongName="ampm_engine.ini" /> > </File> > <IniFile Id="EnginePort" Action="addLine" Directory="config" > Name="ampm_engine.ini" Section="NETWORK" Key="Port" Value="[PORTNUMBER]" > /> > </Component> > > But, even on update, the file amengine.ref is copied to amengine.ini > > Any idea? > > Thanks for your help. > > Fred > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users