valiot
Posts: 77
Joined: Tue Dec 04, 2012 1:41 am

Getting build output path of installer EXE via command line

I'm using the AI CLI to automate my builds. I have a "single EXE setup (resources inside)" package type. is there a way to get (via the CLI) the path to the EXE that was generated from the build?
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Getting build output path of installer EXE via command line

Hello,

The output folder can be found/set in the "Builds" page.

The best way to achieve that could be the following:

- open your project --> go to "Builds" page --> in the "Folder" field, set a property which will contain the build output path:

e.g.: [|MY_PROP]

Now, your script could look something like this:

Code: Select all

AdvancedInstaller.com /edit <path_to_your_project> /SetProperty <property_name>=<value>
AdvancedInstaller.com /build <path_to_your_project>
This way, you will always know what the build output path is.

Please let me know if this helps. If not, please give me some more details about your scenario (for instance, why you need to know the build output path).

Also, as a side note, if you are more familiar with working with COM objects from within PowerShell, we have recently added predefined support for this. Please have a look on our "PowerShell Automation" article for more information.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”