Solved

Installshield 10.5, trying to use XML file changes

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
If you don't know how to downgrade, my instructions below should be helpful.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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…

770 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