Solved

Installshield 10.5, trying to use XML file changes

Posted on 2009-05-12
2
1,725 Views
Last Modified: 2013-11-14
I am pretty new to InstallShield and it's very confusing to me. I have a config xml file that I need to change during the installation based on the user input. Do i need to create new Property's and then set the XML element's content to [Property1] etc...? Or how do i do this?
0
Comment
Question by:Makolyte
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Assisted Solution

by:jmcmunn
jmcmunn earned 500 total points
ID: 24553039

You can do this a lot of ways, including the XML file changes.  You should be able to point the XML changes wizard toward your existing XML, and then choose what nodes you want to set.  You should be able to type in the public properties that the user is entering (there are a lot of ways to do this, and I am sure there are other answers on this site for that).

Depending on your experience with writing custom actions, you could do this with an Installscript custom action by writing some Installscript code, or you could write a C++ or VBscript custom action.

Do you have experience in any of these programming languages?  I find that writing code in a familiar language and using a custom action for things like this works well in the long run.  That way when you have to change it, you just change the code in the CA (typically a dll of c++ code for me) and the install itself doesn't really have to change (just copy the new dll and rebuild the install).
0
 
LVL 4

Accepted Solution

by:
Makolyte earned 0 total points
ID: 24553097
I actually solved this quite a while ago. I will give you points for actually answering though.

For people searching this in the future here are some things you need to know to get XML file changes to work:

1. If you want to set a node's content to a user's value you need to use MsiSetProperty supplying it with the proper info. [PROPERTYNAME]

2. you have to use InstallScript MSI project type in order to have access to the property table and be able to use MsiSetProperty...otherwise you don't get both and cant do this.

3. In the node's content you need to first set it to "[PROPERTYNAME]" WITH QUOTES, and then remove the quotes. I dont know why you need to do this, but if you dont do that it wont work.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
I have been scripting applications way too long and can never remember how to create an ISS file.  So I decided to write this article to act as my own knowledge base for future reference, and hope you will also benefit. An ISS file is a response …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question