Dialog ordering - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Dialog ordering

I am currently evaluating the enterprise edition along with several rival products. I want to insert a readme dialog to be displayed immediately before the exit dialog. I don't seem to be able to do this. Advanced Installer insists on this dialog coming immediately after the Welcome dialog and there doesn't appear to be any way of changing this.

I can achieve this with the installer that comes bundled as part of visual studio so why can I not do this with your product - or have I missed something?

Regards,

Phil
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Phil,

Thank you for your interest in Advanced Installer.

Scheduling dialogs between "ProgressDlg" and "ExitDialog" is not yet possible. We have this on our TODO list and will be available in a future version of AI.

Until then you can do like this, as workaround:

- In the "Dialogs" page add the "ReadmeDlg" after "WelcomeDlg".
- On the "WelcomeDlg" select the "Next" button and edit the existing control event ("Published Events" tab). Add 0 as condition.
- Add a new published event like this:
  • Event: NewDialog
    Argument: FolderDlg
- On the "FolderDlg" select "Back" button and edit the existing control event ("Published Events" tab). Add 0 as condition.
- Add a new published event like this:
  • Event: NewDialog
    Argument: WelcomeDlg
- Select the "ReadmeDlg" and set the "Enable" flag of the "Back" button to "False" (see "Properties" list). Do this for the "Cancel" button also.
- On the "ReadmeDlg" select "Next" button and edit the existing control event ("Published Events" tab). Add 0 as condition.
- Add a new published event like this:
  • Event: EndDialog
    Argument: Return
Save the project and open the AIP file with a text editor, add following line under caphyon.advinst.msicomp.MsiInstallUISequenceComponent component:

Code: Select all

<ROW Action="ReadmeDlg" Condition="NOT Installed" Sequence="7000" ActionType="0"/>
Let me know if you encounter any problem.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
yayay
Posts: 2
Joined: Mon Jun 02, 2008 1:31 pm

Re: Dialog ordering

Hi

I tried this workaround with a custom dialog and it worked. However I can't access the Custom Actions panel anymore because of an access violation. Is there a way to fix this problem?

Regards, Y
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Dialog ordering

Hi,

The workaround suggested by Gigi has some issues which will be fixed in a future version of Advanced Installer. Until then, you can use the sample AIP attached to this post. Note that the standard ExitDialog takes the role of the Readme dialog and the ExitDialog functionality is provided by a custom dialog ("ExitDialog_Custom"). Also, this can be done only in an Enterprise project.

Note that the "View Readme file" and "Launch Your Application" options do not work in the sample project. If you want to show these options you need to use custom checkboxes and custom actions.

Regards,
Cosmin
Attachments
sample.zip
(2.8 KiB) Downloaded 404 times
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”