ACarpenter@msn.com
Posts: 15
Joined: Sat Aug 11, 2007 12:59 am

HOW do you update an XML attribute?

I have a very simple problem -

I install an xml file to the harddrive and then need the install to make one change to an attribute in the installed file.

I cannot find HOW to do this ANYWHERE in the documentation, even though it appears to be doable.

How?

Thanks.

Carp
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

The XML update feature is explained in Advanced Installer's User Guide, please take a look:
http://www.advancedinstaller.com/user-g ... files.html
http://www.advancedinstaller.com/user-g ... ialog.html

Let me know if you encounter any problems.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ACarpenter@msn.com
Posts: 15
Joined: Sat Aug 11, 2007 12:59 am

That doesn't help...

I apologize if this gets posted twice, but I don't know if my first reply made it through.

In any case - those help links do not help at all - there is absolutely no EXPLANATION of HOW you select and edit the XML file.

Clicking on the File and selecting Properties just brings up a properties dialog which is identical to every other file and has nothing to do with XML...

I am very confused...

Thanks.
ACarpenter@msn.com
Posts: 15
Joined: Sat Aug 11, 2007 12:59 am

OK I got a little farther by creating a NEW xml file with the same name which then allows the Properties dialog to show as the Edit Dialog, but my question now is do I just need to add the elements/attributes thast need updating to the root element or do I have to add the entire xml?

Thanks.

Carp
ACarpenter@msn.com
Posts: 15
Joined: Sat Aug 11, 2007 12:59 am

OK my panic level has subsided. Here's is what I have done which works perfectly up to the last step:

Create a New Xml File in the same directory as the file in the file list
Rename it to the same name as the xml file
DBl Click to Edit
Rename/Add elements for each requirement
In attributes enter the required value or Variable

There's where my final problem is -

I used the following as the value, and it put it in correctly during the install, HOWEVER this variable is the DEFAULT value, so if the user changed the destination directory it doesn''t put THAT file path in the XML:

[ProgramFilesFolder][Manufacturer]\[ProductName]\PDF

So I guess what I'm missing is the correct variable that stores the Install Destination directory.

Thanks.

Carp
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Have you tried [APPDIR]?

Mouse right-click, select "Folder..." pick Application Folder.

Regards,
Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ACarpenter@msn.com
Posts: 15
Joined: Sat Aug 11, 2007 12:59 am

Tried [APPDIR] and during the install it put in C:\Program Files...INSTEAD of C:\Program Files (x86)...

Note that its VISTA 64 bit, so maybe Vista isn't returning the correct destination.

I'll try it with a different path entirely and see what happens...

Thanks for the response.

Carp
ACarpenter@msn.com
Posts: 15
Joined: Sat Aug 11, 2007 12:59 am

My bad it works - had a backslash after the variable brackets.

Thanks!

Carp

Return to “Common Problems”