Avatar of CipherIS
CipherIS
Flag for United States of America asked on

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?
C#Installation.NET Programming

Avatar of undefined
Last Comment
CipherIS

8/22/2022 - Mon
p_davis

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.
CipherIS

ASKER
2015
CipherIS

ASKER
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.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
p_davis

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.
Vadim Rapp

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.
ASKER CERTIFIED SOLUTION
p_davis

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
CipherIS

ASKER
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.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.