Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

C# InstallShield - Update Config File

Posted on 2016-08-02
7
Medium Priority
?
311 Views
Last Modified: 2016-08-08
When creating an Installer with InstallShield it apparently takes the app.config and generates a file like

MyAppp.exe.config

In my config file I have directory locations and database connections in the file.  Is there a way to update that file with InstallShield?  

If not I'll update the directory locations with the App.  Any suggestion on the database connection?
0
Comment
Question by:CipherIS
  • 3
  • 3
7 Comments
 
LVL 22

Expert Comment

by:p_davis
ID: 41739263
the 'exe.config' is a visual studio construct for naming application configuration files. Installshield does  have the ability to modify these xml files. what version of installshield are you using.
0
 
LVL 1

Author Comment

by:CipherIS
ID: 41739427
2015
0
 
LVL 1

Author Comment

by:CipherIS
ID: 41739479
What i'm trying to do is updated the config file with directory locations of where the install is.  

The development application has the original directory structure.  It needs to change to the location of the install.
0
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!

 
LVL 22

Expert Comment

by:p_davis
ID: 41739639
there is an xml file changes listing in the installation designer tab. you can change by key/value combos. its not the most user friendly setup but it works.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 41739727
Here's the article that explains how to do it:

http://helpnet.installshield.com/installshield19helplib/helplibrary/XML-MSIProps.htm

from my own experience, I've eventually came to store the settings in the registry, rather than in xml files. #1 reason is the upgrades.
1
 
LVL 22

Accepted Solution

by:
p_davis earned 2000 total points
ID: 41739925
Registry is overused and is being locked down... especially by microsoft after windows 7. We have dealt with many permission issues and a local file is just as effective. xml is almost universal and can be serialized to boot.
0
 
LVL 1

Author Closing Comment

by:CipherIS
ID: 41747287
I've ended up using an xml file.  It ended up easier.  Also, I had problems writing to an App.Config file that I created which was in a different directory.  Using an XML file solved this issue.  Thanks for the input.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

782 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