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 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?