• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1456
  • Last Modified:

Edit .xml File in Wise 9

I need to set a couple of items in a .xml file as as variables so when my compiled Wise install runs, it will poplulate the variables with settings.  I can't seem to find a way to edit the text in the .xml file to set the 2 items as variables.  Does anyone know if this can be done and how to do it?
0
RyanEmporos
Asked:
RyanEmporos
  • 3
  • 2
1 Solution
 
MirfsterCommented:
I would suggest using a WiseScript within your MSI.  In WiseScript, simply use the "Insert Line into Text File" Action to update your XML.  You can tell the WiseScript to "Replace" a line that starts with your XML line that you want to update/replace.  

If you want to "Read" the values from your XML and update your MSI, the WiseScript will do this as well.
 
Also, WiseScript can Read/Update/Set MSI Properties so it shoud be easily intergrated.

BTW, are the variables you trying to configure custom ones or ones that already exists?  You really wouldn't want to go statically setting "Automatic Runtime" variables.
0
 
RyanEmporosAuthor Commented:
Thank you for the response Mirfster.  I'll try it out and let you know what happens.
0
 
MirfsterCommented:
Not a problem.  If you need any assistance with creating the WiseScript, feel free to ask.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Vadim RappCommented:
see article "Editing XML Files During Installation " in Help. See the picture. There you put the variables in square brackets.
Capture-12-23-00001.png
0
 
MirfsterCommented:
You know, in all my years of using Wise Studio I never even thought about having it edit an XMLl file.  New one on me.  Nice info vadimrapp1. :)
0
 
RyanEmporosAuthor Commented:
Thanks for your help!!!!!!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now