/build/static/layout/Breadcrumb_cap_w.png

Writing in xml file Weird behavior

Hi all.


I am trying to write in an installed xml file a value which taken from a public property.

The property take its value from an edit field where the user writes some value

The weird thing is that after installation the value written in the xml file is the the following:
<IPAdr><!--WISEMETA: default="[DAHER]"-->139.176.11.177</IPAdr>

Where [DAHER] is a public customer property i made and 139.176.11.177 is the value which alread exists in this tag.

Note that i have already deleted this value and put instead it [DAHER] during setup edit!!!
I tried to make new property and put them in the xml file but it does not work but it works if i start a new Project.

Starting a new project is not a solution!Such behaviors are blowing my work and wasting a lot of effort and time!!!

I hope some have faced such problem and can help to get rid of it


Thanks again in advance

0 Comments   [ + ] Show comments

Answers (3)

Posted by: anonymous_9363 15 years ago
Red Belt
0
It sounds like you're trying to use your packaging tool's built-in XML file handling? Forget it. I've never had much success with them.

There's a script-friendly Windows Scripting Component (WSC)for XML which you can use via a script. Much more flexible, guaranteed to work and, because it's a WSC, fully customisable to your needs.
Posted by: jmcfadyen 15 years ago
5th Degree Black Belt
0
this wouldn't do stuff all anyway.

[DAHER] is between comment tags so I cant seen an application actually using it.

<!-- --> is a comment in XML. What are you actually trying to achieve.

WiX has a very good XML update action / dll which add's an xml processing table. Its fully tested and works well also. You can build a sample with WiX and extract the desired content. I can do that if you need it.
Posted by: nheim 15 years ago
10th Degree Black Belt
0
Hi daher,
that looks to me, as if the "write to xml" function was applied twice to the xml-file.
<!--WISEMETA: default="[DAHER]"--> is a unique string which will be replaced by the content of the property "DAHER", if everything is setup properly.
Check the xml file in the wise project folder. I assume you need to put in just the IP-adress, hold in "DAHER" and nothing else.
If this is correct, make sure the line looks like this:
<IPAdr><!--WISEMETA: default="[DAHER]"--></IPAdr>
And make sure, the property is set at the time the xml gets modified, which, btw. is at the very end of the installer script.
Also check the following table for an entry for the xml file in question: WiseFileAttributes.
Regards, Nick
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ