Optional Panel after SetupTypDlg is not correctly displayed - Advanced Installer Community
elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Optional Panel after SetupTypDlg is not correctly displayed

Hello,
I have a Dialog which I wants to be optional, depending on if a feature have to be installed or not.
I have create a new Dialog and use the "show only if...." option to make it optional.

The dialog will not correctly appear, I have to select the feature, go back, and select "standard installaton" to open it.

I have added a project file which demonstrate this.

regards, Éric.
Attachments
FeatureImmediate.aip
(15.38 KiB) Downloaded 371 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Optional Panel after SetupTypDlg is not correctly displayed

Hello,

This happens because by default your feature is configured not to be installed. Therefore the following condition:

Code: Select all

(&Funktion = 3) AND NOT (!Funktion = 3)
set on the control event (added on [Standard] button from "SetupTypeDlg" dialog), which sets the "OptionalDialog_Cond" property to "1", will be evaluated to FALSE.

So, can you please go to "Organization" page, select your "OptionalFeature" and set its "Installation Behavior" to "Installed" by default and then test again the installation?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Re: Optional Panel after SetupTypDlg is not correctly displayed

Hello Daniel,
thanks for your reply.
Setting the installation behaviour to "Installed" do not solve the problem and is not an option for me.
The condition

Code: Select all

(&Funktion = 3) AND NOT (!Funktion = 3)

is absolutly correct because I want to display the OptionalDialog when the feature has been selected for installation.

It seams that at the point where the condition is being tested ("do the OptionalDialog have to be shown or not?"), the "feature variable" have not the correct value.

It also seams to me that the "OptionalDialog_Cond" is missing when the InstallMode is InstallModeCustom or InstallModeComplete.

Regards,
Éric.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Optional Panel after SetupTypDlg is not correctly displayed

Hello Éric,

Please note that your feature is selected to "Not Installed" by default and I don't see and control event on your dialogs which could change the installation state of the feature. Therefore the related condition will be always false.

Can you please give us more details (maybe iterate a detailed test case) about the behavior you are trying to achieve?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Re: Optional Panel after SetupTypDlg is not correctly displayed

Hello Daniel,
thanks for your reply, please see the workflow I expect as attachment, hope you'll appreciate my artwork :)

regards, Éric.
Attachments
AdvancedInstallerFeatureWorkflow.png
AdvancedInstallerFeatureWorkflow.png (215.56 KiB) Viewed 9076 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Optional Panel after SetupTypDlg is not correctly displayed

Hello Éric,

To accomplish this you should proceed as follows:
1. go to "Dialogs" page and expand the "SetupTypeDlg" dialog tree
2. delete the "OptionalDialog_Cond"
3. expand the "InstallMode=InstallModeCustom" folder tree
4. select the "CustomizeDlg" in the expanded list and and from its context menu use "New Dialog" option to add a new dialog
5. select the new added dialog and from its context menu choose "Show only if..." option and use the following condition:

Code: Select all

((&Funktion = 3) AND NOT (!Funktion = 3))
6. rebuild and test again the installation

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Re: Optional Panel after SetupTypDlg is not correctly displayed

Hello Daniel,

Ok, it solves my problem, but do please notice:
- I do not want to create a new Dialog, so I have used my CustomizeBlg by moving it per drag&drop
- The result produced by the "Show only if..." wizzard for a component placed after SetupTypeDlg is not the expected one, this is an issue!

regards,
Éric.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Optional Panel after SetupTypDlg is not correctly displayed

Hello Éric,
- The result produced by the "Show only if..." wizzard for a component placed after SetupTypeDlg is not the expected one, this is an issue!
Please give us a test case or a more detailed description of the issue so we can be able to investigate this.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Re: Optional Panel after SetupTypDlg is not correctly displayed

When wo choose

Code: Select all

"Show ony if..."
on the

Code: Select all

OptionalDialog
AI-support-ShowOnlyIf.PNG
AI-support-ShowOnlyIf.PNG (88.74 KiB) Viewed 8883 times
Then it will be added before

Code: Select all

InstallMore=InstallModeCustom
which is wrong.
AI-support-ShowOnlyIf02.PNG
AI-support-ShowOnlyIf02.PNG (90.96 KiB) Viewed 8883 times
It shoud have been added at least in

Code: Select all

InstallMore=InstallModeCustom
.

Regards,
Éric
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Optional Panel after SetupTypDlg is not correctly displayed

Hello Éric,

Thank you for your feedback. Indeed, currently this seems to be a limitation in our application. We'll try to add an improvement in a future version of Advanced Installer. Thank you for your suggestion.

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

Return to “Common Problems”