Hi,
Is there a way to bypass the progress dialog? I have a custom dialog that creates a new database using a bunch of SQLcmd scripts via a c# custom action. The dialog shows the progress of the script via a progress bar and displays action text base on the output of a redirected console window. The next button will be enable once the scripts are done installing the database. This works as plan but when you click the next button, the progress dialog starts and goes through it process. There is nothing to install so I don’t need to display the progress dialog.
I’ve tried to incorporate the custom action into the progress dialog but I am unable to integrate it into the progress bar. If added to the init event of the progress dialog it will install the database but the cursor will just spin and stay on the previous dialog until it is done.
I’ve also got the custom action to start once the progress dialog is displayed but only the default progress bar activity is displayed (preparing etc) and once done it will move on to the exit dialog even through the c# custom action is still installing the database. Seems that the default progress dialog installation is started before the custom action. Custom action is started by a hidden HTML control calling a hidden button publish event (external.MsiPublishEvents('Button').
Another approach I’ve tried is “Close current dialog” custom action with an argument of exit. This works as it skips the progress dialog but the exit dialog displays that the installation failed. This could work if I can control what the exit dialog displays.
I am aware of Advanced Installers SQL database features but at this point it is not practical for us since it will require modifying many SQLcmd scripts.
Any suggestion are greatly appreciated.
Thank you,
Diego