Dialog went missing... - 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!

RedDrago
Posts: 33
Joined: Thu Jan 19, 2012 9:23 am

Dialog went missing...

Hello,

I finally found my easter egg.
I was finally able to reproduce a problem, which caused a dialog to disaper. Once that happens, it is impossible to remove that dialog from the project and it won't show in the "Unused Dialogs". But it's still possible to add that dialog into a sequence.
  1. Create a new Project
  2. Create a Install Property
  3. Add 3 new Dialogs to the "First Time Install" sequence.
  4. Add a Chombobox (or another control that can change property values) to the first new dialog in the line.
  5. Customize the "Next >" Button so that either the second or the third Dialog will be shown, depending on the Property Value
  6. Customize the "< Back" button of the last Dialog, so that either the first or the second dialog is shown.
  7. Make the other two dialogs unique. A label with some text should do it.
  8. Test the UI, it should work es expected.
  9. Save the project and close AI completly
  10. Start AI again and load the Project.
  11. One of the new Dialogs should be gone now.
TestProject.aip
A sample project with the "result" of the steps above
(15.52 KiB) Downloaded 336 times
That should be the correct approach to skip a dialog based on a condition, or am I wrong?
AI Version used: 9.0

Thanks,
Tobias
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Dialog went missing...

Hi Tobias,

To condition a dialog's appearance we recommend to use the “Show only if...” tree context menu item. During installation, the dialog will be displayed only if a specified condition is met. For more details see our tutorial "Display a dialog based on a condition".
I was finally able to reproduce a problem, which caused a dialog to disaper.
If you will expand the tree node "NewDialog" you will observe that it will contain, as a child node, the "NewDialog_2" dialog. This happens because when you condition a dialog's appearance Advanced Installer reorganize the dialogs tree.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”