Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Deploying VB.NET VS 2008 with a configuration file

Posted on 2009-02-17
Medium Priority
Last Modified: 2012-08-13
I have migrated successfully (in development mode) a VB6 application to VS.NET 2008.
The application uses an INI file which is read on startup to obtain configurable parameters.
The old VB6 application simply looked for the INI file in the folder where the application resided, and read the parameters. On installation, it was normally installed in C:\Program Files\'applicationname'
This was fine as it was easy to create a new folder, copy the aplication/INI file to that location, configure the INI file, and off you go.
This was important as multiple copies needed to reside on the workstation, to allows the program to run with different parameters against different database etc.
This is my first deployment of the .NET application.
How can I mirror the functionality of the VB6 deployment ?
Question by:josephwalsh
  • 2

Author Comment

ID: 23668964
The links provided were very interesting.
The INI file I use is read olny to get the parameters, and I had created my own Function to read the INI file passing appnam/key/INI file name.
I will probably move to using the xml config file.

The nub of the problem. When I install the app it installs it on the Start/Programs area. In VB6 it would have been installed in the C:\Program Files\appname folder. I could then copy the program and INI file to a different folder for separate execution. The install creates the following files :
appname.exe.config (Ihave started using configuration settings)
Do I need to copy all files to the new folder in order for the app. to run in the new folder ?
Will there be any issues ?
LVL 70

Accepted Solution

Éric Moreau earned 1000 total points
ID: 23669400
You should move to the app.config file which is really the .Net way of doing.

I have no clue on what .cdf-ms is.

Yes the other files should be copied.

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

577 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