tdas
Posts: 1
Joined: Wed Apr 04, 2018 12:03 pm

Adding directories to a file

Wed Apr 04, 2018 12:08 pm

My app uses two files, 'include.txt' and 'exclude.txt', which require a list of directories (one on each line).

Can I get AI to build these files by asking the user to select directories at the point of install?

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Adding directories to a file

Thu Apr 05, 2018 2:56 pm

Hi and welcome to Advanced Installer forums.

In order to achieve this, you can implement the steps from the "Browser for folder" tutorial for each folder that the user needs to select. The path to each selected folder will be stored into a property.

Then, you can go in the "Files and Folders" page, use the "New TXT File Update" option to create your TXT files and use the folders' properties to create the files' content.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”