nibb
Posts: 16
Joined: Sat Feb 12, 2011 11:44 pm

Pass username to xml?

May I ask how do I pass a username which the user enters, into a xml file?

I was able to create a xml on install which writes the install path.

I also created a gui username text box the user fills in, how do I pass this info to the xml file?

I also find the xml editing is very limited, I would like to edit all type of text files which are readable with for example notepad, all of them are text, but use different extensions and the installer can only edit and write files with xml structure.

How hard would be to put a variable in a file like "%this is my unique variable%" and then make the installer replaces all files which contains this with you variable on install.

Im still scratching my head why it cannot do this, as its just open a file, read, it and replace all variables that match.
nibb
Posts: 16
Joined: Sat Feb 12, 2011 11:44 pm

Re: Pass username to xml?

I figured this out already, it seems the property are only passed to the xml if they are all upcase like "PROPERTY", single case has no effect. Strange.

Return to “Common Problems”