codesynergy
Posts: 100
Joined: Fri Nov 14, 2014 10:29 pm

Passing in Version Number when Building from Command Line

Hello,

Is there a way to pass in the version number (ProductVersion) when running a build via command line?

Code: Select all

AdvancedInstaller.com /build <project_file_path>
The only way I could find to do so is here: https://www.advancedinstaller.com/user- ... rsion.html

I would suggest adding the ability to specify the version number in the build command to more easily support an automated build process. Not a big deal, but it's a little annoying having to run an extra command just to change the ProductVersion (to match the build number).


Thanks.
Catalin
Posts: 6585
Joined: Wed Jun 13, 2018 7:49 am

Re: Passing in Version Number when Building from Command Line

Hello,

In order to execute more commands at a time, you can create a file which executes multiple commands. After that, you can use the following command in your command line :

Code: Select all

AdvancedInstaller.com /execute <path_to_project_file> <command_file_path>
For more information about this, you can check our "Executing a file of commands" article.

Hope this helps!

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
codesynergy
Posts: 100
Joined: Fri Nov 14, 2014 10:29 pm

Re: Passing in Version Number when Building from Command Line

Catalin wrote:Hello,

In order to execute more commands at a time, you can create a file which executes multiple commands. After that, you can use the following command in your command line :

Code: Select all

AdvancedInstaller.com /execute <path_to_project_file> <command_file_path>
For more information about this, you can check our "Executing a file of commands" article.
I guess that works just as well. Thanks!
Catalin
Posts: 6585
Joined: Wed Jun 13, 2018 7:49 am

Re: Passing in Version Number when Building from Command Line

You're always welcome!

I'm glad you got this working!

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

Return to “Building Installers”