andy2k20
Posts: 2
Joined: Fri Nov 15, 2019 4:28 pm

Add folder to root Application Folder

I have a project file that I want to add a folder to via the command line.

My command is:
"C:\Program Files (x86)\Caphyon\Advanced Installer 16.5\bin\x86\AdvancedInstaller.com" /execute "C:\AdvInstaller_Commands\InstallAdviceWebCMD.aip" "C:\AdvInstaller_Commands\commands.txt"

In commands.txt:
;aic
SetVersion 1.2
AddFolder APPDIR "C:\Advice\src\Web\bin\"
Save
Rebuild

This works fine but the problem is that it adds the bin folder as a directory in the installation path on the target machine. So for example the path on the target machine would be "C:\Advice.Web\bin" where I want the contents on bin to just be in "C:\Advice.Web".

This is similar to if I just added all the files individually using the AddFile command. However the list of files is not consistent. Is it possible to achieve this structure using the AddFolder command?
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Add folder to root Application Folder

Hi,

To achieve this, you can use the "Synchronized Folder" command to synchronize the Application Folder from your project with the "C:\Advice\src\Web\bin\" from the disk.

Let me know if this helped, otherwise give me more details about your scenario.

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

Return to “Building Installers”