2012-04-11 3 views
0
나는 (그것이이 설치에 설치되어있는) 파일의 web.config에서 일부 요소를 제거 할

경우 일부 법안 = "0"web.config 파일에서 요소를 제거하는 방법은 무엇입니까?

<configuration> 
<thingy> 
    <stuff> 
    <item type='value1' name='name1' file='node1.txt'/> 
    <item type='value2' name='name2' file='node2.txt'/> 
    </stuff> 
</thingy> 
</configuration> 

나는이

<util:XmlConfig 
    On="install" 
    Action="delete" 
    Id="RemoveAnElement" 
    Node="element" 
    File="Application.dll.config" 
    VerifyPath="/configuration/thingy/stuff/item[\[]@type='value1'[\]]" 
    ElementPath="/configuration/thingy/stuff" 
    Sequence="100" 
/> 

없음 오류를하려고 노력하고 그러나 요소는 여전히 존재합니다. 그것을 제거하는 방법?

답변

3

기본 XML 파일에서 요소를 제거하고 PROP = "1"인 경우 WiX에서 요소를 추가하도록 논리를 반전하십시오.

관련 문제