frefol
Posts: 12
Joined: Mon Jan 15, 2007 10:15 pm

Custom Dialog to launch just before ExitDialog

I want to create a custom dialog that I want to launch right after ProgressDlg and just before ExitDialog. I can't seem to do that with the Dialogs Editor. Everytime I create a new dialog, it always orders the new dialog right after the WelcomeDlg. Am I missing something or is this not possible with AdvancedInstaller?

BTW, the dialog I want to create is not really a dialog box but rather a pop-up notification with a message and a button. When the user clicks on the button, it launches a headless custom action executable and the install proceeds to the ExitDialog.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

A dialog is linked to other dialogs by control events. So how do you want to spawn that dialog? When a button is pressed? Please give me more details.

To spawn a dialog when a button is pressed select the button and add a published event like this:
Name: SpawnDialog
Argument: <NewDialog>

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
frefol
Posts: 12
Joined: Mon Jan 15, 2007 10:15 pm

It would basically come up right after ProgressDlg completes, just before ExitDialog is shown.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

What you want is not directly supported by Windows Installer. To do that you need to modify the "ExitDialog" (to fit your needs) and add a new one (to simulate the "ExitDialog") after that. And note that the pop-up dialog will be displayed on uninstall also.

But I don't understand for what you need to display that dialog? What exactly that custom action does? You want to launch a file at the end of the installation?

If you want to launch a file after installation you can use "Finish Actions" under "ExitDialog" or you can use a "Launch File or Open URL" custom action scheduled under "InstallExecuteSequence->InstallFinalize" standard action.

However if you really want to display that dialog contact me to support at advancedinstaller dot com and i'll send you a test project.

Kind Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
frefol
Posts: 12
Joined: Mon Jan 15, 2007 10:15 pm

We have a device driver that generates the "scary unsigned driver message" from windows whenever it is installed. We currently install it using a non-GUI executable that we launch via a custom action during the after commit.

We now want to put in a messagebox (prior to installing the driver) to instruct the user that it is OK to ignore this message. I was hoping not to have to rewrite the device driver installer for this and just add the needed UI in the MSI installer.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Displaying a dialog between "ProgressDlg" and "ExitDialog" is not a solution in the case because the pop-up dialog will be displayed on uninstall also.

So my suggestion is to inform the user about that "scary unsigned driver message" before the installation begins. Put the explanation test on the "VerifyReadyDlg" dialog and the user will see it before clicking Install.

Hope this helps.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
frefol
Posts: 12
Joined: Mon Jan 15, 2007 10:15 pm

Fair enough. I was just hoping I can put the pop-up before the actuall launch of the custom action. Thanks for your help.

Return to “Common Problems”