Guys,

I want to delete an entire element based on some checkbox. I have got the 
decision logic working but cant seem to get the xml delete to work.

Basically we have historically have a template file for web.config that 
contains some assigned values for session state

i.e.

<sessionState mode="sqlserver" allowCustomSqlDatabase="true" cookieless="false" 
timeout="20" sqlConnectionString="SqlSessionStateConnection"/>

What I want to be able to do is delete this and then readd it but with just 
mode = 'inproc'

I ahve tried this but it doesn't seem to work..

        <util:XmlFile Id="UpdateClientWebConfigSqlConnectionName3" 
Action="deleteValue" File="[INSTALLWEBTIERLOCATION]Web.Config" 
ElementPath="/configuration/system.web/sessionState"/>
        
        <util:XmlFile Id="UpdateClientWebConfigSqlConnectionName4" 
Action="setValue" File="[INSTALLWEBTIERLOCATION]Web.Config" 
ElementPath="/configuration/system.web/sessionState" Name="mode" 
Value="InProc"/>

The second half just seems to overwrite the existing value so that at least 
functions.

Any pointers?

Thank you!


-----------------------

N: Jon Hardcastle

E: j...@ehardcastle.com

'Do not worry about tomorrow, for tomorrow will bring worries of its own.'



***********

Please note, I am phasing out jd_hardcastle AT yahoo.com and replacing it with 
jon AT eHardcastle.com

***********



-----------------------


      
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to