Hi,
It seems that the reference to ([SqlServerBrowseComboBox]) a private property was causing the problem
Indeed, private properties cannot pass their value from InstallUISequence (when the dialogs are shown) to InstallExecuteSequence (when the scripts run). A solution is to set a public property to the value of "SqlServerBrowseComboBox" before the install process starts. For this you can use a
Property set with Formatted custom action scheduled right above"InstallUISequence" -> "ProgressDlg". The public property can then be used in the connection string.
now to figure out how to check if the specyfied database is in the list returned by the browse database action.
I'm not sure I understand what you mean. Can you please give me more details about this?
P.S. The combobox control just doesn't display the popup for some reason... The log says:
DEBUG: Error 2826: Control BottomLine on dialog SQLConnectionDlg extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: SQLConnectionDlg, BottomLine, to the right
All installation dialogs have by default a line in the lower part. This line is longer than the dialog in order to look better. The error you mentioned is caused by the fact that the line is longer than the dialog. Please note that this doesn't affect the functionality of the installer in any way.
for some reason the combobox controls don't show anything on Win2K Sp4
Unfortunately older Windows versions don't determine the size of the combo correctly. A solution is to modify the size of the combo manually:
- go to the "Dialogs" page and select the combo with the problem
- in the "Properties" pane set the "
Height" to a high value, for example 100
- rebuild the project
Regards,
Cosmin