Dialog freezes - Advanced Installer Community
MichaB
Posts: 18
Joined: Mon Oct 28, 2013 7:44 am

Dialog freezes

Hi,
I have a Dialog that installs SQL Server 2012.
This will be done in the Init Events.
When I open the Dialog the SQL Server gets installed but the user Interface freezes and dont react.
After finishing the Installation the Dialog will be visible.
How can I Show the Dialog immediately and start the SQL Server without a button click? Need help !
Thanks!.

Michael
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Dialog freezes

Hello Michael and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm afraid I don't fully understand your scenario. Can you please give us more details about your specific scenario(maybe exemplify)?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MichaB
Posts: 18
Joined: Mon Oct 28, 2013 7:44 am

Re: Dialog freezes

Hi Dan,
thanks.. I have my own Dialog to install the express Version of SQL Server.
I created a custom action that calls an exe-file with command line parameters that does this Installation.
This custom Action gets called from the init Events of my Dialog.

So is my method:

1) Call my custom Dialog 'InstallSQLServer'
2) Init Events gets callled e.g. my custom Action 'InstallSQLRoutine'
3) While the Installation runs a Progress bar should be visible ( but the complete Dialog is not visible)
4) The Installation gets finished and then gets the Dialog visible.. why?

My CustomAction has the following properties:
-Wait for custom Action to finish before proceeding - true
-Fail Installation if custom Action Returns an error- true
MichaB
Posts: 18
Joined: Mon Oct 28, 2013 7:44 am

Re: Dialog freezes

Ok i saw that Init Events are called before the Dialog is shown. But how can i start my custom Action, when the Dialog is started without a button click?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Dialog freezes

Hi Michael,

Unfortunately this is the default behavior of the Windows Installer.
As a workaround you can disable the Wait for custom Action to finish before proceeding option but please notice that you may get an installation conflict because you cannot have two installation operations in the same time. This may happens when you will press the [ Install ] button from the VerifyReadyDlg and the SQL Server installation hasn't been finished.

You can also add the related custom action as a Published event on a button and in order to make sure that will be no conflict during the installation, the Wait for custom Action to finish before proceeding option should be enabled for the custom action.

By the way, have you noticed our support for the prerequisites? You can have your SQL Server 2012 installation package as a Pre-install prerequisite. You can take a look on the Add prerequisite article.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MichaB
Posts: 18
Joined: Mon Oct 28, 2013 7:44 am

Re: Dialog freezes

Hi Dan,
it helped to disable that Option.
I dont want to install it as a prerequisite because the users can decide in a custom Dialog if they like to install it or not.
Many thanks!

Kind regards
Michael
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Dialog freezes

You're welcome Michael.

If there is anything I can help with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”