Visual Studio Installer - Registry Settings

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!!!!!!
laurapAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AnswerTheManCommented:
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 ?
0
laurapAuthor Commented:
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
HKEY_LOCAL_MACHINE/SOFTWARE/ACPASIM/
GOVOFFICE

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




0
AnswerTheManCommented:
ok.
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"
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
laurapAuthor Commented:
thanks so much...guess i made it more difficult than it had to be.......
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.