Question : Setting up an ODBC source with a username with Wise Package Studio 8

Hi experts!

I'm trying to set up an ODBC source with the ODBC tab in the Windows Installer Editor (I captured an MSI and are editing the MST file.

I can naturally add the ODBC source ok with the correct DSN, but is there a way to set up the username and possibly the password? The username itself will do at this stage.

Answer : Setting up an ODBC source with a username with Wise Package Studio 8

The tables in MSI database don't support storing odbc username and password, because those parameters are provider-specific. The idea is that the application will provide them as part of the odbc connection string: DSN=... PWD=....

For sql server, you still can put username by injecting it into the registry as

HKCU\Software\ODBC\ODBC.INI\<your-odbc-name>\LastUser (or HKLM\... if machine data source). I would also move in the script WriteRegistryValues after InstallODBC .

Generally, if some odbc provider allows storing username and password (or anything else), you need to figure out where (most likely in the registry), and put in the MSI by non-ODBC means.

Random Solutions  
 
programming4us programming4us