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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Registry problems with Windows Installer

Status
Not open for further replies.

ndalli

Programmer
Nov 6, 1999
76
MT
Hi,

I am not sure if this is the right forum but just in case ...

I am using Windows Installer for a VB6 application. I am storing the database path in the registry.

While setting up the Installation (through the installer), I am creating the registry keys. On the other hand I cannot set the registry values dynamically. Does any one knows how I can create these registry values?

By dynamically I mean that if the user changes the default path of the installation (and thus of the databases), I ouwld need to store the correct path in the registry values.


Many thanks in advance
 
If your are using the Visual Studio 6 Installer, your options are limited.
You would therefore need to edit the MSI file using the MS tool Orca.exe, find the key and use the constant identifying the user selected installation path.
 
If the databases are going to be in the same directory as the app or a sub directory, could you just not add some code to your start up form?
Something along the lines of
1) Is this first time app has run?
2) If so create registry Key
3) If not key exists
This way it doesn't matter where the user installs the software.

Greg Palmer

----------------------------------------
Any feed back is appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top