Hi,

I am trying to add the following actions during install (and the reverse during 
uninstall) to modify the string value of an attribute conditionally:

1. Check web.config to see if a specific xml node exists  (matches attribute 
class=”ReflectionPermission”). Eg <IPermission class="ReflectionPermission" 
version="1" Flags="RestrictedMemberAccess"/>
2. If it doesn't, create it.
3. If it does, check one of its attribute to see if it contains a specific 
string. Eg “RestrictedMemberAccess”.
4. If the attribute already contains the string, do nothing.
5. If it doesn't, append the string. Eg Flags="ReflectionEmit" becomes 
Flags="ReflectionEmit, RestrictedMemberAccess".

Performing steps 1-2 using XmlConfig seems doable setting the appropriate xpath 
for VerifyPath.

Is there any way to use the string value of an attribute and perform 
conditional actions, as in steps 3-5?

Or, are there other suggestions on how to achieve the above?

Thank you for your help.


Regards,
Hongping

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to