Solved

C# InstallShield - Update Config File

Posted on 2016-08-02
7
86 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now