We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

dbanks
Posts: 4
Joined: Wed May 18, 2016 3:51 pm

How to validate %ERRORLEVEL% from batch script in AI

Hello,

example, i have a batch script that is returning an error level (Exit /b %ERRORLEVEL)

how can i add condition in the package to check this errorlevel before closing the package ?

Thanks,
Dave
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to validate %ERRORLEVEL% from batch script in AI

Hi Dave,

Unfortunately it's not possible to return values from a BAT file (e.g. by setting a Windows Installer property).

The value of a Windows Installer property can be used in a BAT file by passing parameters but returning values from the BAT file in a property is not possible.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”