This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: modifying config file while installing
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 21, 2011
05:23 PM
modifying config file while installing
I have to modify a config file while installing with user inputs and I'm using the installshield basic msi project. I guess this can be done with xml file changes so I created a dialog with edit fields for these user inputs and associated the fields to properties but it's not clear how to associate the properties with values in my config. What is the way to do this?? This is the structure of my config file:
The user has to set values for color and shape. Maybe, is it better to use other kind of project?? Thanks.
The user has to set values for color and shape. Maybe, is it better to use other kind of project?? Thanks.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 22, 2011
07:02 AM
I always use text file changes, and set up the config file as follows
%color%
%shape%
Then set the text replace to search for *.config and replace the text %color% and %shape% with the input from your dialog box.
Hope this helps
Then set the text replace to search for *.config and replace the text %color% and %shape% with the input from your dialog box.
Hope this helps
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 25, 2011
10:04 AM
That's a good way, but I still can't link my properties in the fields of the dialog box, to the value in the "replace with" option of the text files changes. When the user inserts a value, the property value is not updated. How can I do this?? Is it an event of the control?? Help!!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 25, 2011
04:14 PM
I found the problem. It was very simple, the property must be uppercase, otherwise it can't be recognized. I can use text file changes and xml file changes, both work fine. Sorry, I'm new using installshield. Thanks!!
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)