Edit XML File

Got a problem you cannot solve? Try here.
Post Reply
nmoffatt
Posts: 13
Joined: Fri Jun 17, 2011 1:58 pm

Edit XML File

Post by nmoffatt »

Hi,

I'm trying out the evaluation version of Installaware 11 and am trying to use the XML edit to modify my config file. The file is pretty basic:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="IsLockServerEnabled" value="true"/>
<add key="ActiveLabviewVersion" value="latestSupportedVersion"/>
<add key="Topology.Network" value="Production"/>
<add key="Topology.Server.Host" value="server-qa32"/>
<add key="Topology.Server.Port" value="8084"/>
<add key="Synchronization.RemoteStatusCheck.MaxPeriod" value="00:05:00"/>
<add key="ShowSiteNameInTittleBar" value="true"/>
</appSettings>
</configuration>

My first question is that the 'Action' drop down is disabled and I can't seem to find the option to allow for me to change it to 'Update Only'

My next questions is how to use the dialog to edit the values for ="Topology.Server.Host" and ="Topology.Server.Port". I can't seem to figure out how to use it properly. I'm not 100% sure that it is suposed to be used in this manner.

Any help would be greatly appreciated.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Edit XML File

Post by giaviv »

Hi,

I apologize, but I don't really understand what you are trying to do - could you give a more specific description of your goal?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nmoffatt
Posts: 13
Joined: Fri Jun 17, 2011 1:58 pm

Re: Edit XML File

Post by nmoffatt »

Thank you for getting back to me.

What I am trying to do is modify the contents of an XML file installed with the product. The content of the file is in my first post.

I decided to try and use the XML files option under System Architecture.

I'm able to add a new XML file and enter in the correct path, but I am having trouble determining the correct 'element path' to change the following values in my XML file:

Topology.server.host
Topology.server.port

What is happening is that the file is being found and backed up, but the contents are not being changed the way I would like.

So my questions are:

1) Is this the correct use of "XML Files' ?
2) If so, can you assist me in determing the correct 'element path'?
3) ALso the 'Action' drop down is disabled and locked on 'Create Only'. How can it be changed to 'Update Only'?

I hope this is clear.

Thanks,

Neil
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Edit XML File

Post by giaviv »

Hi Neil,

I created a sample project (with the xml file you attached here) that illustrates what you are trying to do.

I hope its helpful!
Attachments
EditXML.zip
(3.22 KiB) Downloaded 843 times
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nmoffatt
Posts: 13
Joined: Fri Jun 17, 2011 1:58 pm

Re: Edit XML File

Post by nmoffatt »

Thank you so much. That has definetly helped!

I just have one last question. Please see the attached screenshot. The Action drop down is disabled and is showing 'Create Only' so it will only add the new key/value pair and not update an existing one. I just realized that we did have a license for IA 11 so I registered the product. I have version 11.0.2.2011 on my machine. Am I missing something? According to the help I should just be able to change the action. Once I can do this it should work perfectly.

Thanks for all your help!

Neil
Attachments
EditXML.jpg
EditXML.jpg (71.26 KiB) Viewed 11887 times
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Edit XML File

Post by giaviv »

Hi,

This shouldn't be the case - which edition of InstallAware do you have installed?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nmoffatt
Posts: 13
Joined: Fri Jun 17, 2011 1:58 pm

Re: Edit XML File

Post by nmoffatt »

I have version: 11.0.2.2011 installed. Studio Admin edition. I'm using the GUI to access this features not MSI Code.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Edit XML File

Post by giaviv »

What happens when you double-click the Edit XML File commands in the MSIcode? Are you able to change the action in that dialog?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nmoffatt
Posts: 13
Joined: Fri Jun 17, 2011 1:58 pm

Re: Edit XML File

Post by nmoffatt »

Thank you! That worked.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Edit XML File

Post by giaviv »

Enjoy :)
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply