This sounds like a custom action that's being called, perhaps based on the component's action state being to-be-installed. It's more likely that the solution is to do something like amend the condition on the custom action to include "and Not Installed" so that it doesn't run during a repair when the product is already installed.
Phil Wilson -----Original Message----- From: ricky sundrani [mailto:rickysundr...@gmail.com] Sent: Sunday, November 29, 2009 11:25 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Component Keypath Problem I have a component whose purpose is to modify the machine.config file. What it does is add a new line to machine.config using XmlConfig element. But when i clicked on the repair button for repair, the component described above is called again i.e the line which was added to machine.config is added again. So i decided on using a registrykey and registry value as a component keypath that would aid during the repair process.. Here is the code for registry value <Component....> < RegistryKey Action="create" Root="HKLM" Key="<some path" > < RegistryValue Type="string" Value="Modified" KeyPath="yes"> </RegistryValue> </RegistryKey> <XmlConfig> ... </XmlConfig> </Component> Now during installtion the registry key is created. But during repair the component gets called again. i.e a new line is added to machine.config.(So there is new use of using the registry value as component keypath.) Can someone point out as to where am i goin wrong.? or is there some way to control the repair process.? -- Best Regards. Ricky ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at Portland House, Bressenden Place, London, SW1E 5BF (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates). ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users