Solved

Installshield 10.5, trying to use XML file changes

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

One of the frequent problems with the installations is when some file or registry entry is not removed from the system upon un-installation of the product. Clean removal is always highly desirable. One major reason for that is badly authored inst…
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 …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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

10 Experts available now in Live!

Get 1:1 Help Now