Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLL Deployemnt with config file

Status
Not open for further replies.

fawkes

Technical User
Sep 12, 2003
343
GB
I've a class library that I've written and I intend to utilise it across a number of applications.

The class libraries config file has details that can be adjusted by the user specific to their machine so the config file is included in the deployment.

This works fine, I can deploy the file and make some amendments to the config file during installation.

Now I write a windows application that references the dll from before and always includes it in the dependencies and always installs in the application folder but doesn't include the config file for the dll.

How do I include an installation that references a dll that is already installed on the client or runs the original setup file for the dll if it isn't there?
 
I'm not sure I understand your question.

Do you want to install a second application that uses the dll installed by the first application? Do you want to share the configuration file between the two applications, or does each application have its own config file? Is the second application installed in the same folder as the first?

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day! Ye has a choice: talk like a pira
 
Ok

Yes, I want to install a second application that uses the dll installed by the first application.

Yes, I would like to share configuration files.

No, the second application is not stored in the same folder as the first.

 
My understanding is that the config file is "owned" by a process, not a library. So you'd have to merge your custom app settings into the .config file of the owning application.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
I seem to get the same feeling from investigations on the web.

What I'm thinking is that I add the dll created from the class library to the global assembly cache and add all the 'configuration' settings to the all users application data folder.

I can add a special folder to the set up project and add xml files to that but I'm not sure how to reference the folder, I think it is [CommonAppDataFolder]\[Manufacturer]\[ProductName] but I could be wrong.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top