Accessing files from the 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!

Mike_Rider
Posts: 8
Joined: Fri Jul 17, 2009 8:01 pm

Accessing files from the command line?

Hello,

I want to get a file from the command line, then use it inside AI. Something like this:

AdvancedInstaller.exe filename

Then inside, have a custom action that uses that filename. Is that possible? Searched help and this forum, didn't find anything.

Using AI 4.9.2. Yes it's old, but that's all we have.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Accessing files from the command line?

Hello,

Please note that adding a custom action through command line is currently not supported.
I am afraid I cannot fully understand what you are trying to accomplish. Could you please give me more details?

Thank you,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Mike_Rider
Posts: 8
Joined: Fri Jul 17, 2009 8:01 pm

Re: Accessing files from the command line?

There are certain files whose name isn't known until installation time. We want to include those in the install. Somehow, we have to get the names to AI, so they get included.

Other possible approaches:
Put the files in a certain directory, AI grabs all the files in that dir.
Have their name in a text file, AI reads the file to see what files to include.

Would those approaches work?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Accessing files from the command line?

Hi,

Advanced Installer supports adding files through command line. To accomplish this, use the following syntax

Code: Select all

/AddFile  <target_folder_path>
          <source_file_path>
Here is an example:

Code: Select all

AdvancedInstaller.com /edit MyProject.aip /AddFile APPDIR C:\File.txt
For a full list of commands, please consult our guide on Editing Projects from the Command Line.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”