Hi Gabriel,
I'm aware of errorlevel.
I finally figured out the problem.
I'm calling AdvancedInstaller.com from a powershell script:
Code: Select all
&$ADVINSTALLER\AdvancedInstaller.com /execute .\InstallerStaging\$TargetChannel\XYZ.aip .\InstallerStaging\$TargetChannel\AICommands.txt -nofail | Out-File -Append -filepath BuildLog.log
if ($LASTEXITCODE -ne 0)
{
ErrorHandle($CurrentAction)
}
An exception occurs, and $LASTEXITCODE is 0
The issue is the -nofail option, which makes sense to me. Removing -nofail resolves the issue.
I put all this in the reply in case others have this problem in the future.
Dennis
FOLLOW US
Get the latest news in Application Packaging