anasrallah
Posts: 14
Joined: Tue Dec 13, 2011 7:52 pm

Always Custom in Professional setup

How can I remove the SetupTypeDlg from dialogs and force the installation to be always Custom.

Also I would like to know how to show more then one custom dialogs based on Feature selections.
per example I would like to show CustDlgA if Feature A is selected and CustDlgB if Feature B is selected. both dialog should show if I have both features selected and none should show if I have A nor B selected.
I tried the option to "show only if..." and this works great when I have one custom dialog, when I try to add a second custom dialog based on the criteria I mentioned above, if I select both features A and B together CustDlgA would show and not CustDlgB. (if I chose Feature A without B CustDlgA shows and vice verca - only when both selected there is a problem).

ideally what I'm trying to achieve is something like this:

--> Ask for feature selection

IF FeatureA
show CustDlgA
IF
....
ELSEIF
....
ENDIF
ENDIF

IF FeatureB
show CustDlgB
IF
....
ELSEIF
....
ENDIF
ENDIF
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Always Custom in Professional setup

Hello,

I'm not sure why you mentioned a "Professional setup" because this functionality requires at least Enterprise project.

Indeed I can confirm the behavior you are getting, thank you for bringing it to our attention. I'll notify the development team to investigate and we'll get back to you as soon as we have a conclusive answer.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
anasrallah
Posts: 14
Joined: Tue Dec 13, 2011 7:52 pm

Re: Always Custom in Professional setup

ok please let me know as soon as you find out about the problem. I'm trying to switch out from installshield and would like to know if advanced installer will do what I'm looking for

and yes you are right it's Enterprise, so is there any way to suppress the SetupTypeDlg?

Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Always Custom in Professional setup

Hello,

Actually, "Show only if..." behaves a little different. It creates a subchain for every condition you add.

In order to accomplish your scenario three subchains must be added:
1. (&FeatureA=3) => DialogA is shown
2. (&FeatureB=3) => DialogB is shown
3. (&FeatureA=3) AND (&FeatureB=3) => DialogA and DialogB are shown
You are getting this behavior because you only added the first two.

To add the third case please follow these steps:
- expand the dialog previous to DialogA and DialogB
- add a "NewDialog" and set its condition with "Show only if..." to:

Code: Select all

(&FeatureA=3) AND (&FeatureB=3)
- expand the new child subchain folder created under previous dialog
- drag and drop holding Shift both DialogA and DialogB from the other subchain siblings into the one you just created
- delete the "NewDialog" from the subchain and from Unused Dialogs
Here's a sample project that demonstrates this functionality:
test_ShowOnlyIf.aip
(21.67 KiB) Downloaded 690 times
is there any way to suppress the SetupTypeDlg?
Yes, there is. You can try to create a "New Dialog" and copy-paste all CustomizeDlg controls. Then you can delete SetupTypeDlg and replace it with the CustomizeDlg replica.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
anasrallah
Posts: 14
Joined: Tue Dec 13, 2011 7:52 pm

Re: Always Custom in Professional setup

Thanks for the help this made the trick for the DialogA, DialogB or DialogA and B. it's just a little cumbersome if you have multiple IFs and sub IFs

as for removing the setuptype dlg, I'm still not able to remove it. I followed your instructions but when i get to the point where I want to remove the original SetupTypeDlg, the Delete button is still grayed out.

Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Always Custom in Professional setup

Hello,

Some themes have the SetupTypeDlg as a mandatory dialog and it cannot be deleted from the chain install sequence( e.g. Air ).

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”