alter_ego_dev2
Posts: 22
Joined: Wed May 10, 2023 4:09 pm

How to build installer project using a specific build?

Mon Mar 04, 2024 1:53 pm

At the moment CI pipeline builds an advanced installer project using PowerShell script with command line tools:

Code: Select all

$installerScript = @"
;aic
SetVersion $version
SetAzureKeyVaultSecret $azureKeyVaultSecret
SetProperty CONFIGURATION=$configuration
Save
Rebuild
"@
$installerScript | Out-File build-installer.txt -Force
& AdvancedInstaller.com /execute $aipFile build-installer.txt | Write-Host
if ($LASTEXITCODE -ne 0)
{
    throw "Failed to build installer"
}
I would like to add an additional build to the installer project and build only a specific build if needed.
I have found that I could use -buildslist <builds_list> parameters to specify a build, but the parameter can be used only with /build and /rebuild commands. It is not clear how to use -buildslist <builds_list> in my case when CI uses the /execute command.
Could you please clarify how I could change my CI PowerShell script to include build parameter?

alter_ego_dev2
Posts: 22
Joined: Wed May 10, 2023 4:09 pm

Re: How to build installer project using a specific build?

Tue Mar 05, 2024 9:15 am

It seems I have found how to specify a build:

Code: Select all

Rebuild -buildslist $buildName

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: How to build installer project using a specific build?

Tue Mar 05, 2024 9:54 am

Hello,

Thank you for your followup on this.

Glad to hear you found the solution.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”