Getting a list of files mapped under a feature - Advanced Installer Community
devAdvanced
Posts: 2
Joined: Thu Dec 22, 2016 8:46 am

Getting a list of files mapped under a feature

I have advanced installer version 6.3 and I cannot upgrade this.

Is it possible for me to get a list of files(with their path) mapped under a Feature in vbscript?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Getting a list of files mapped under a feature

Hello and welcome to our forums,

If you want to list the paths of all files added under a specific feature, then you should proceed like this:
1. you should first query the "FeatureComponents" table of the MSI database to get all components belonging to the specified feature
2 next, for each component, you should query the "Component" table of the MSI database to get the component directory name
3. for each directory name you should query the "Directory" table to resolve the paths of each directory
4. finally you should query the "File" table to get all the files belonging to the extracted components and bound them with the directory paths extracted above

For more infor about how such a script can be built please take a look on the following articles:
- Examples of Database Queries Using SQL and Script
- Get-MsiDatabaseProperties

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

Return to “Building Installers”