Folder Properties In Command Line - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

MatthewHall
Posts: 5
Joined: Tue Oct 30, 2012 11:52 am

Folder Properties In Command Line

I have been looking into using the command line to automatically create an installation package when a TFS build completes. I have managed to successfully get a package building but some of the options of the package/ project need setting. These were things like the Product Name, Company Name etc. I found the SetProperty command useful for solving this problem but now ive hit a problem with the folder options.

I am adding a single folder to the project in the command line using the following code
…advinst.exe" /Edit "C:\AdvancedInstaller\MyProject.aip" /AddFolder APPDIR %1

The %1 is a parameter that I am passing in from Visual Studio which is the directory of the folder I want to add (Drop location from TFS build).

This again is working but the problem I am having is that when installing this folder is being added to the install path. Ie ProgramFiles/MyCompany/MyProduct/FolderName
I have seen that in the UI there is a check box option in Folder Options to
Install Content into Parent Directory

Does anyone know how to access this property in the command line?

Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Folder Properties In Command Line

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm afraid we don't have a predefined functionality for this. However, if you want to install the related folder content in the APPDIR, then you can synchronize the APPDIR folder with the related folder.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MatthewHall
Posts: 5
Joined: Tue Oct 30, 2012 11:52 am

Re: Folder Properties In Command Line

Hi Daniel,

Thanks for your response. I tried your method and it worked a treat!

Thanks for your help

Regards
Matt
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Folder Properties In Command Line

You're welcome. I'm glad you got this working.

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

Return to “Common Problems”