Note that the NAnt list parser is modifying the syntax that I had in my construct. It replaced "table[(at symbol)name" with [EMAIL PROTECTED] thinking it was an email address.

So the syntax should be xpath="/msi/table[(at symbol)name = 'ISProductConfigurationProperty']/row[td = 'ProductVersion']/td[3]"  

...without parentheses around the at symbol.



Here's what I came up with that worked for changing the product version for an XML Install Shield .ism file...

        <xmlpoke
            file="Test.ism"
            xpath="/msi/[EMAIL PROTECTED] = 'ISProductConfigurationProperty']/row[td = 'ProductVersion']/td[3]"
            value="${version}"/>
           
        <xmlpoke
            file="Test.ism"
            xpath="/msi/[EMAIL PROTECTED] = 'Property']/row[td = 'ProductVersion']/td[2]"
            value="${version}"/>

Thanks to those who suggested this as a solution and thanks to Patrick Cauldwell for providing me working xpath syntax.

~Robert



On 6/21/05, Chris Hansen <[EMAIL PROTECTED] > wrote:
Jeremy P. Owens-Boggs wrote:

> We saved the InstallShield projects as XML and used the xmlpoke task
> in nant, no messy scriptJ
>
>
>
Jeremy,

you wouldn't by chance be willing to show some sample code would you?  I
haven't done this yet, but I need to - it would be nice to have a
functioning example.

thanks,

Chris Hansen, tchansen at xmission dot com




Reply via email to