Getting all Feature Names - Advanced Installer Community
smrutiRanjan
Posts: 9
Joined: Mon Jan 20, 2020 8:37 am

Getting all Feature Names

Hi,

I have created installer in advanced installer 15.0.1 version. I used to enable and disable the feature selection in VB Script based on License. Want to get all the features name from advanced installer when the welcome screen appear. Is there any way to achieve it?

Thanks,
Smruti
Thanks,
Smruti
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Getting all Feature Names

Hello Smruti and welcome to Advanced Installer forum,

Unfortunately, we do not have predefined support for your task.

You can, however, display all the features available using the predefined "OptionalFeatsDlg" dialog (go to "Dialogs" page --> select "WelcomeDlg" --> "Add Dialog" button from the toolbar --> "OptionalFeatsDlg").

Aside from that, I think that the only way would be through a custom action (e.g. a VBScript, PowerShell script) that will open the MSI database at install time and will run a query on the "Feature" table. Afterwards, you will need a control on the "WelcomeDlg" and the script should pass the returned values from the query to the dialog control.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
smrutiRanjan
Posts: 9
Joined: Mon Jan 20, 2020 8:37 am

Re: Getting all Feature Names

Thank you for your response Catalin. can i have any reference to query on the Feature Table?
Thanks,
Smruti
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Getting all Feature Names

Hello Smruti,

Please have a look on the following thread:

MSI Open Database to get list of file paths to the installed files in a custom dll

in which my colleague Danut has explained how this can be achieved. There you can also find a sample project.

Hope this helps.

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

Return to “Common Problems”