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!

sonda
Posts: 103
Joined: Mon Apr 30, 2018 12:01 pm

Instalation by feature

I have this demo from your site about installation of features:
DialogsByFeatures.aip
(28.87 KiB) Downloaded 475 times
Let say that i have insaled feature 3 :
feat_3.png
feat_3.png (27.16 KiB) Viewed 9252 times
and later after few days i decide to install another feature, i run installer again and remove reparir and modufy screen is shown:
i click on modify and i see that i can select features, but i can't see that featrure 3 is already installed in the tree. I like to see that feature 3 is installed and to be able to select other. Is that possible how feature tree detect which component is installed. How can be achieved this. Any input or direction appreciated
feat_instal.png
feat_instal.png (29.15 KiB) Viewed 9252 times
sonda
Posts: 103
Joined: Mon Apr 30, 2018 12:01 pm

Re: Instalation by feature

:D I figured out, You must have at least one component installed by feature, installer to be able to detect if feature is installed or not.. Because demo does not install anything cant figure if component is installed.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Instalation by feature

Hi,

Indeed, a feature is not marked as installed if it contains no component that will be registered during the installation.

If you have other questions, just let us know.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Instalation by feature

Hello,

Thank you for your followup on this and for sharing your solution with us.

I am glad you got this working.

Indeed, as you have mentioned, you need at least one component to be installed by the feature.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sonda
Posts: 103
Joined: Mon Apr 30, 2018 12:01 pm

Re: Instalation by feature

Thanks for the answers and support , i want to ask is there some tutorial for installing features, i'm not sure where do define new dialog's for the certain Feature, in the demo i see the everything is under configureDlg
dlg.jpg
dlg.jpg (49.3 KiB) Viewed 9234 times

What if dialog's are out the congigureDlg, what is the right way to work with dialog's for the features.
If one feature is selected for installation and other not, how you decide where installation will continue.
Its like normal dialog by defining conditions in the next previous buttons for display?
is making difference where and how dialog s are defined, should be followed some rules when working with feature dialog s?

Thanks in advances
regards
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Instalation by feature

Hello,
i want to ask is there some tutorial for installing features, i'm not sure where do define new dialog's for the certain Feature, in the demo i see the everything is under configureDlg
Have you tried following the "How to display some dialogs depending of the selected features" article, or you just downloaded the sample project?

Everything is under the "ConfigureDlg" dialog because that dialog contains the "Display a specific dialog" events.

When adding a new dialog to your project, it is not added under another dialog. However, if the dialog is subject to the "Display a specific dialog" event, then it will be added under the dialog that contains that event.
What if dialog's are out the congigureDlg
If dialogs are out of the "ConfigureDlg" (they are not subject to a "Display a specific dialog" event in the "ConfigureDlg" dialog), then you can still condition them using the "Show only if..." option (right click on your dialog --> "Show only if...").
If one feature is selected for installation and other not, how you decide where installation will continue.
The decision is taken based on the condition. For instance, if the Feature1 is selected for installation, then display Feature1 dialog, if Feature2 is selected for installation, then display Feature2 dialog and so on.
Its like normal dialog by defining conditions in the next previous buttons for display?
Yes, that is exactly what it is. It's simply a custom dialog that you want to spawn if a specific feature is selected for installation.
is making difference where and how dialog s are defined, should be followed some rules when working with feature dialog s?
There are no specific rules that must be followed for the "feature" dialogs. As explained above, "feature" dialogs are just custom dialogs.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sonda
Posts: 103
Joined: Mon Apr 30, 2018 12:01 pm

Re: Instalation by feature

Thanks for exhaustive answer , i find https://www.advancedinstaller.com/user- ... tures.html very confusing, for example
step 3

Code: Select all

3. Under the “ConfigureDlg” dialog add a “New Dialog” for each feature that you have in your package and rename each dialog as you please (e.g. Feature1Dlg, Feature2Dlg, etc.)
img1.png
img1.png (21.83 KiB) Viewed 9226 times
and as you can see you can add new dialog and we can say that is under "ConfigureDlg", but if we want relay to add under ConfigureDlg then we go with on next button and with display specific dialog, or i m doing something wrong..
img2.png
img2.png (68.38 KiB) Viewed 9226 times
somehow find hard to follow ...

Thanks for the answer i will try to play a little with features dialog s
sonda
Posts: 103
Joined: Mon Apr 30, 2018 12:01 pm

Re: Instalation by feature

What if ia have multiply screens dialog s for feature 1? How you connect them? I have attached some .aip
c.aip
(38.68 KiB) Downloaded 687 times

, i have organised project i have added dialogs but still unsure how to connect them properly.


For example: I have App and Plugin feature organization, App feature have Sql Dialog, DIalog1, and Dialog 2, Plugin feture have only DIalog3.
if i select from Configure dialog that i want to install app, then it show sql dialog1, dialog 2, and run install, but if i select to install And plugin Dialog 3 is not shown.


Also from Configure dialog if i choose to install plugin only dialog 3 is shon but when i click install its go to finish without installation, on next button is set VerifyReadyDialog.



Any help appreciated
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Instalation by feature

Hello,
Thanks for exhaustive answer
You are always welcome!
i find https://www.advancedinstaller.com/user- ... tures.html very confusing, for example
step 3
Indeed, you are right. The article is a little bit confusing.

I will forward an update request to our Technical Writing team so we can try and make that clearer.
For example: I have App and Plugin feature organization, App feature have Sql Dialog, DIalog1, and Dialog 2, Plugin feture have only DIalog3.
if i select from Configure dialog that i want to install app, then it show sql dialog1, dialog 2, and run install, but if i select to install And plugin Dialog 3 is not shown.
I have downloaded and built the sent .AIP file and it seems that the "NewDialog_3" is correctly spawned.

However, what I could notice here is the fact that the event on your "NewDialog_3" dialog is "Display a specific child dialog", instead of "Display a specific dialog".
Also from Configure dialog if i choose to install plugin only dialog 3 is shown but when i click install its go to finish without installation, on next button is set VerifyReadyDialog.
Here, this may be happening due to the used event, as described above. Please change the event to "Display a specific dialog" and let me know if that helps.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sonda
Posts: 103
Joined: Mon Apr 30, 2018 12:01 pm

Re: Instalation by feature

Hi Catalin, i manage to organaze my old instaler in features, and seem to work installation. Now i have two features app and plugin.
Let say i have installed plugin and now i run again installer and i Click on modify, on modify i want to install App, so what is correct way to do this. Should i use existing Dialogs from installation and with condition to try to run installation of app. Or i should create, duplicate Dialogs and use for maintenance?

Also i want to know it is possible to work wit Quick Selection tree control on click. For example if i select to install plugin but some registry are missing i want to display message but, only when plugin is clicked. I want to notify user that this plugin is dependent from something else. And also i dont want to start installation.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Instalation by feature

Hello,
o what is correct way to do this. Should i use existing Dialogs from installation and with condition to try to run installation of app. Or i should create, duplicate Dialogs and use for maintenance?
I am not quite sure I understand your scenario here. Could you please give me some more details (maybe exemplify through some screenshots)?
Also i want to know it is possible to work wit Quick Selection tree control on click. For example if i select to install plugin but some registry are missing i want to display message but, only when plugin is clicked
Unfortunately, this is not possible. The QuickSelectionList and QuickSelectionTree controls are treated as a whole - you can not work with the objects inside it.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”