Dialog "Next" condition problem - 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!

kettch
Posts: 28
Joined: Wed Dec 03, 2008 9:34 pm

Dialog "Next" condition problem

I have several custom dialogs I made, A, B, C and D. There are two properties (FOO on dialog A, BAR on dialog B) that if either is true then dialog C should be shown.

I have a published NewDialog event on dialog B with argument DialogC to check for either value, in which case it forwards to dialog C instead of going straight to dialog D: AI_INSTALL AND ((FOO = "truefoovalue") OR (BAR = "truebarvalue"))

The problem is that dialog C is always skipped regardless of FOO or BAR's values. If I add two textboxes to dialog B set to properties FOO and BAR the textboxes correctly reflect the property values. However, if I add a custom script action to the NEXT button on dialog B to display a message box with either/both of the property values the message box always displays an empty string.

I shortened the above names for brevity, but the actual property names are "DATABASESERVERTYPE" and "TOMCATSERVERHOSTTYPE" so they should be public properties freely available to the dialogs.

I'm confused as to why this isn't working, especially since we do the exact same thing in one of our other AI projects which works fine. Any help would be greatly appreciated! This project is in AI 8.2 and is an Enterprise type.

Thanks!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Dialog "Next" condition problem

Hi,

I'm not sure why this happens. Can you please send us the .AIP (project) file you are using to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kettch
Posts: 28
Joined: Wed Dec 03, 2008 9:34 pm

Re: Dialog "Next" condition problem

Thanks Cosmin, I just sent my AIP file over.
scrossley
Posts: 2
Joined: Tue Nov 20, 2012 2:31 pm

Re: Dialog "Next" condition problem

I have this same problem. I have experimented and searched far and wide but cannot find a resolution.

To summarize: I have two features that can be selectively installed. There is a conditional dialog for each of these features. If I 'condition' each of these dialogs to 'show' only if the relative feature is selected for installation, only one of the dialogs will show. For instance: if I install feature 1, then dialog 1 will show. If I install feature 2, then dialog 2 will show. If I install both feature 1 and feature 2, then only dialog 1 will show.

I think this is due to a limitation in the mapping of the navigation, but I need a way to accomplish this. Even if the solution is very creative.

Can anyone help?

Sue
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Dialog "Next" condition problem

Hello Sue and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what you want you want you can take a look on our "Always Custom in Professional setup" thread which debates a similar issue.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
scrossley
Posts: 2
Joined: Tue Nov 20, 2012 2:31 pm

Re: Dialog "Next" condition problem

That looks like the solution.

Thanks,
Sue
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Dialog "Next" condition problem

You're welcome. Glad to help.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”