I have a Wix installer who create an system DSN (ODBCDataSource component) from some parameters set by the user during installation.
<Component Id="ODBCDATASOURCE" Guid="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" KeyPath="yes">
<ODBCDataSource Id="ODBCDATASOURCE" Name="DBconnection" Registration="machine" DriverName="PostgreSQL Unicode" >
<Property Id="Database" Value="[ODBCDATABASENAME]" />
<Property Id="Server" Value="[ODBCSERVERIP]" />
<Property Id="Username" Value="[ODBCUSER]" />
<Property Id="Port" Value="5432" />
<Property Id="Password" Value="[ODBCPASSWORD]" />
</ODBCDataSource>
</Component
I have stored all these ODBCDataSource parameters in Registry keys to reused them during upgrade.
But if the user modified manually the ODBC configuration (for example to change the server IP address), my installer will not take this changes into account during upgrade as it reads properties values from Registry keys.
Is there a way for my installer to read properties from an existing OdbcDataSource instead of registry keys ?
Thanks for your help.