Conditions are only considered at installation. However, you can set [EMAIL PROTECTED]'yes' and have the condition re-evaluated for a reinstall. Whether or not this will achieve what you want for a repair I'm not sure, but it might be worth a go.
Rob Qu, Li wrote: > Hello, > > > > The installer I’m working on will modify one of the installed > configuration file during the installation. The modification is done by > using XmlFile elements with the user input parameters. What I’m > struggling on is try to not touch this file during Repair. But with my > current implementation during Repair the file will be over written with > the default values. I’ve tried to add condition “NOT Installed” or > “REINSTALLMODE<>’ecmus’” to the component to prevent the file from being > written, but none of them works. The sample code is attached at the end > of the message. > > > > What is the right way doing this? I used conditions for custom actions, > and they worked as expected. I don’t understand how conditions work for > components. > > > > Can someone help me with this? Thanks in advance. > > > > Li > > > > <DirectoryRef Id="myapp"> > > <Component Id="DatabaseSettings" > Guid="344221B6-EBFF-4ce8-9DF3-C49E1AF451A2"> > > <Condition><![CDATA[REINSTALLMODE<>"ecmus"]]></Condition> > > <File Id="mydatabase" Name="mydb.xml" LongName="mydatabase.xml" > DiskId="1" > > Source="..\..\app\mydatabase.xml"/> > > <XmlFile Id="dbHost" File="[INSTALLDIR]myapp\mydatabase.xml" > Action="setValue" Value="[DB_SERVER]" > ElementPath="//properties/[EMAIL PROTECTED]'database.host'[\]]" Sequence="1" > /> > > <XmlFile Id="dbPort" File="[INSTALLDIR]myapp\mydatabase.xml" > Action="setValue" Value="[DB_SERVER_PORT]" > ElementPath="//properties/[EMAIL PROTECTED]'database.port'[\]]" Sequence="2" > /> > > <XmlFile Id="dbName" File="[INSTALLDIR]myapp\mydatabase.xml" > Action="setValue" Value="[DB_NAME]" > ElementPath="//properties/[EMAIL PROTECTED]'database.dbname'[\]]" > Sequence="3" /> > > </Component> > > </DirectoryRef> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > ------------------------------------------------------------------------ > > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users