Link to home
Start Free TrialLog in
Avatar of laurap
laurap

asked on

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!!!!!!
Avatar of AnswerTheMan
AnswerTheMan

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 ?
Avatar of laurap

ASKER

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




ASKER CERTIFIED SOLUTION
Avatar of AnswerTheMan
AnswerTheMan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of laurap

ASKER

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