Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 459
  • Last Modified:

C# InstallShield - Update Config File

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
CipherIS
Asked:
CipherIS
  • 3
  • 3
1 Solution
 
p_davisCommented:
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
 
CipherISAuthor Commented:
2015
0
 
CipherISAuthor Commented:
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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
p_davisCommented:
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
 
Vadim RappCommented:
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
 
p_davisCommented:
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
 
CipherISAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now