How do you delete/remove an element from an XML file in WiX?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Given a .config file with the following content:
To remove the item element with the type attribute set to ‘value’ this seems to do the trick:
This
XmlConfigelement is defined by the Wix “Utility” extension. To use that extension, you have to declare the UtilExtension namespace like this:You also have to add
-ext WixUtilExtensionto thelight.execommand options, or add a reference to “WixUtilExtension.dll” if you are authoring a wix project using votive in visual studio.