Hi,

 

Is it possible to delete the Key/value pair from web.config file during
installation.

 

I am able to add new key/value pair during the installation through the
below code.

<util:XmlFile Id='conf1' Action="createElement"
ElementPath="/configuration/appSettings" Name="add"
File="[$(var.ConfigFileID)]" Sequence="1" />

<util:XmlFile Id='conf2' Action="setValue"
ElementPath="/configuration/appSettings/add[\[]not(@key)[\]]" Name="key"
Value="ClientName" File="[$(var.ConfigFileID)]" Sequence="2"  />

                <util:XmlFile Id='conf3' Action="setValue"
ElementPath="/configuration/appSettings/add[\[]@key='ClientName'[\]]"
Name="value" Value="[CLIENTNAME]" File="[$(var.ConfigFileID)]" Sequence="3"
/>

            

Is it possible to delete the existing Key/value pair from web.config file
during installing.

 

 

Please send me the sample if possible

 

Thanks & Regards

Bala

 

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to