Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Installshield 10.5, trying to use XML file changes

Posted on 2009-05-12
2
Medium Priority
?
1,768 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

730 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