I have an installer that asks for SQL Server database credentials when installing the software.
After the application is installed, a custom action (which is a VBS script) is run. That action just opens some configuration files of the software and set the connection string to the database using the credentials entered previously,
To accomplish that, I set the connection string, in the configuration files, to something like:
Code: Select all
data source=[SERVER];user id=[USERNAME];password=[PASSWORD]
So far, so good. The problem is when I run the installer in repair mode.
When I did it, I realized that the connection string in configuration files was set to empty server, empty username and empty password.
Code: Select all
data source=;user id=;password=
Is there a way to avoid that?
I was thinking about preventing the file to be copied in repair mode. Is that possible? Or maybe, to show credentials dialog in repair mode. When first install, that credencials dialog is just the SQL Server connection dialog.
Thanks
Jaime