Brahnsuk
Posts: 38
Joined: Thu Feb 10, 2011 6:06 pm

Customize Dialog - Features enable/disable

Hi,

in our installer we've 5 features.

MainFeature (invisible at the CustomDialog)
F1
F2
F3
F4

similar to the "LicenseAgreement"-Dialog I want in the "CustomDialog" only the "next"-button enabled if F1, F2 or F3 is selected to install it on the hard drive. If F1, F2 and F3 are unvailable or "feature will be installed when required" i want the "next"-button disabled. Independent of F4!
I already have tried to add "Control Conditions" at this button like
&F1 = 3 Enable
&F1 <> 3 Disable
or
!F1 = 3 Enable
!F1 <> 3 Disable

but I still not have the behavior what I expected/want.
Can someone help me please?

Currently the MainFeature will always be installed because if F1, F2 or F3 will be installed they need the files from the "MainFeature" (F4 is separately). But in the future it should only install if it is needed.
My idea was to set in the MainFeature a "Install based on condition" if F1, F2 or F3 is selected and in the next step to enable/disable the "next" button in the "CustomDialog" on base of the "MainFeature"-Status...
I want this behavior indepent if it is a "First Time Installation" or a "Update"

I hope you understand what I want :mrgreen:
thank you in advance
Current Version of AI: 16.5
Dan
Posts: 4528
Joined: Wed Apr 24, 2013 3:51 pm

Re: Customize Dialog - Features enable/disable

Hello,

Unfortunately, you cannot have this scenario due to windows installer limitation.
As a workaround, you can have a custom dialog where you can add a check box for each feature ( you should also rename its “Property Name” to something meaningful e.g. F1_INSTALL etc).
Then you can use the control condition to enable the [Next] button when a check box is selected, something like:
Enable the [Next] button:
Condition field: F1_INSTALL
Action field: Enable
Disable the [Next] button:
Condition field: Not F1_INSTALL
Action field: Disable

Now you can go in the “Organization” page, and select for each feature the “Install based on condition” option from the “Installation Behavior” panel. You can use as a condition the property of the check box assigned to the related feature.
You can also take a look on Show a custom feature selection dialog article which may be useful to you.

If you have any more questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Brahnsuk
Posts: 38
Joined: Thu Feb 10, 2011 6:06 pm

Re: Customize Dialog - Features enable/disable

Hello Dan,

thank you for your reply!
That's sound's for a solution, but before I'll try your solution in your article there is the info "This article can be implemented from an Enterprise or Architect project type (Advanced Installer 9.3 or greater).".
Our version is "8.9 build 41901" (enterprise), then I can't do this, or?

thank you
Current Version of AI: 16.5
Dan
Posts: 4528
Joined: Wed Apr 24, 2013 3:51 pm

Re: Customize Dialog - Features enable/disable

Hi,

Indeed, this options is available starting with the 9.3 version of Advanced Installer. Also that article was updated with the 9.3 version.

There is a workaround for previos version of Advanced Installer. You can take a look on “Show a custom feature selection dialog” article. You can also find a sample project in the page's bottom.

If you have any questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”