Visual Studio Installer - Registry Settings

Posted on 1999-11-10
Medium Priority
Last Modified: 2008-02-01
I'm using the VS Installer to create an installation package for a Visual Basic Program.  I need to set values in the registry indicating the location of various files, most importantly the back-end Access Database.

Since the user chooses the directory in which to install the program during setup, the registry setting cannot be a static value set ahead of time.

I set the component of the registry key to the Access database but when i install it on a machine, the path is not entered as the value in the registry.

How do i do this?  Thanks!!!!!!
Question by:laurap
  • 2
  • 2

Expert Comment

ID: 2198129
i've used that tool recently doing registry entries with great success.
can you describe EXACTLY what you did so your mistake can be traced ?

Author Comment

ID: 2198253
Thanks for your response.....I hope this is clear enough.
After adding my VB Project to the Installer....

1-I added my database file ("Profile.mdb") to Files

2-In the registry editor i added a new Key for my program settings

3-I added a new Value "Database" to hold the path to the database.

(note: i did not set the value for "Database" because i wanted it to be set during the installation.)

4-In the properties window for the registry entry("Database"), i selected my database as the component file, which automatically set the componentID to that of my database file.

That's all i did...i only started using VB Installer today and am pretty much shooting in the dark at this...

Thanks a lot for your help


Accepted Solution

AnswerTheMan earned 400 total points
ID: 2198391
after you've added the MDB file under Files - note that in its properties window - it's dimmed that it will automatically be installed on the Application Path.
No registry is needed in this case.

just note to refer the DB from your code as :
App.Path & "\Profile.mdb"

Author Comment

ID: 2198569
thanks so much...guess i made it more difficult than it had to be.......

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

601 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