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]"--></IPAdr>

Where [DAHER] is a public customer property i made and 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   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


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.
Answered 09/12/2008 by: VBScab
Red Belt

Please log in to comment
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.
Answered 09/14/2008 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
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
Answered 09/15/2008 by: nheim
Tenth Degree Black Belt

Please log in to comment