Solved

Installshield 10.5, trying to use XML file changes

Posted on 2009-05-12
2
1,681 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

One of the major drawbacks of deploying applications by GPO is the complete lack of any centralized reporting. After a normal deployment, there are two ways to find out if it was successful – by looking in the event log, and by looking in the log of…
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 …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now