a.guelle
Posts: 97
Joined: Tue May 19, 2015 2:23 pm

Move to Feature from Command Line (AddFolder / AddFile) [solved]

Mon Aug 29, 2022 7:02 am

Dear AI Team,

when I add a file or a folder via the command line, is it possible to move it to a specific feaure?
To which feature is it added by default?

Best regards,

Angelo
Last edited by a.guelle on Mon Feb 19, 2024 11:23 am, edited 1 time in total.

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Move to Feature from Command Line (AddFolder / AddFile)

Mon Aug 29, 2022 1:19 pm

Hello Angelo,

Your files are added by default under your current feature.

In order to set the current feature, you can use the following command line: /SetCurrentFeature <feature_id>

All new added resources (files, registry, etc) will be included in this feature.

Code: Select all

AdvancedInstaller.com /edit MyProject.aip /SetCurrentFeature MainFeature

To create a a new feature you can check our New Feature Command Option article.

Therefore, you can set the current feature and then add your folder/file.

Hope this helps! If you have any other questions, please don’t hesitate to contact us.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”