Solved

C# InstallShield - Update Config File

Posted on 2016-08-02
7
144 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
[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
  • 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
Technology Partners: 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 500 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

756 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