Did you manage to solve this problem of extracting and comparing a substring?

I was trying to do something similar and tried using the substring function,
but got the error "failed to query verify path".

Does anyone know if VerifyPath supports string functions like contains,
string-length, substring?

Thanks.



Kevin Burton-8 wrote:
> 
> My problem was similar but as I see it more complex. In my case I have the
> equivalent of "DirTwo-1" and "DirTwo-2" so a simple '=' will not do I need
> to take a sub string.
> 
> Still looking for a solution.
> 
> Thank you.
> 
> Kevin
> 
> ---- Stefan Pavlik <[EMAIL PROTECTED]> wrote: 
>> I also realized that I should use [\[].="DirTwo"[\]] (instead of [/[] ).
>> 
>> But it was not the problem
>> 
>> Stefan Pavlik wrote:
>> > Hi list
>> > 
>> > I have the same problem as Kevin Burton in thread [Remove a section
>> > using XmlFile] several months ago. Since I am not able to solve it
>> > (even after reading the thread again and again) I am asking the same
>> > question again.
>> > 
>> > I am using Wix
>> > 
>> > Consider following xml file:
>> > 
>> > <?xml version="1.0"?>
>> > <dpInst>
>> >   <search>
>> >     <subDirectory>DirOne</subDirectory>
>> >     <subDirectory>DirTwo</subDirectory>
>> >   </search>
>> >   <suppressAddRemovePrograms/>
>> >   <quietInstall/>
>> > </dpInst>
>> > 
>> > I want to remove the line "<subDirectory>DirTwo</subDirectory>" from
>> > the file.
>> > 
>> > The following code does not work:
>> > <File Id='XmlSettings' Name='dpinst.xml' DiskId='1' />
>> > <XmlConfig Id='RemoveOneLine'
>> >                        File='[#XmlSettings]  '
>> >                        Action='delete'
>> >                        ElementPath='//dpInst/search'
>> >                        VerifyPath='subDirectory[/[].="DirTwo"[/]]'
>> >                        On='install'
>> >                        Sequence='1'
>> >                        />
>> > 
>> > I have already tried several other combinations of ElementPath and
>> > VerifyPath values with no success.
>> > Interesting is that the property ExecXmlConfig (CustomActionData for
>> > ExecXmlConfig action) is even not set (in the log file). If I use
>> > XMLConfig to add some lines the ExecXmlConfig property is filled
>> > with some data.
>> > 
>> > Is it possible that the Action='delete' and On='Install' is invalid
>> > combination?
>> > 
>> > Any help is appreciated.
>> > 
>> > regards
>> > 
>> > Stefan
>> > 
>> 
>> -- 
>> Stefan Pavlik | [EMAIL PROTECTED]
>> Whitestein Technologies s.r.o. | www.whitestein.com
>> Panenska 28 | 811 03 Bratislava | Slovak Republic
>> Main +421 2 5443-5502 | Direct +421 2 5930-0735
>> 
>> -------------------------------------------------------------------------
>> 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
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Remove-section-using-XMLConfig-tf4355333.html#a12529092
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to