Thanks for your reply. I cannot use XmlConfig as I need to update value for the XML elements and XmlConfig I guess only has create and delete options.
The other option which I thought and used while repair was to set the condition for the component by having transitive to yes and then checking for "Installed" but that does not seem to work. Bhavesh Bob Arnson-6 wrote: > > BhaveshG wrote: >> 1. Typically when you do a repair only the files that are missing or >> corrupt >> are deployed which happens to me as well. But even for the existing file >> XMLFile statement is executed and my files are updated on "Repair". The >> XMLFile tag does not accept any "Condition" text as the content model is >> empty. Is there a way out for this? >> > > Check out the XmlConfig element. It offers additional control for repair > and uninstall. > >> 2. I have noticed that If I have installed my application on a different >> drive say "D:\Program files" than the default "C:\Program files", in the >> Repair mode the INSTALLDIR still shows C:\Program files. (I found this >> when >> I logged the entries). Hence when in repair mode the installer tries to >> update the XML files it throws an exception as the path is incorrect in >> this >> case. Surprisingly even in this case it rightly replaces all the missing >> files in "D:\program files". I am not sure how it does that:). >> > > If you explicitly rely on properties (or directories, which are turned > into properties) then you must persist that data and load it during > maintenance mode. The easiest way is to write them to the registry and > use RegistrySearch to load them. (MSI knows where it installed each > component but doesn't store other random data.) > >> 3. Is there a way by which I can have the default value of PathEdit >> control >> (associated with Browse button) as blank? >> > > No. Each directory has a default value. > > -- > sig://boB > http://joyofsetup.com/ > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://www.nabble.com/Wix---Prevent-XMLFile-updates-on-Repair-option-tf3911179.html#a11092731 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users