Command line building - Advanced Installer Community

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!

FergusMurray
Posts: 150
Joined: Thu Sep 30, 2010 10:44 am

Command line building

We use a big batch file to current rebuild all our projects and installers during an overnight build, if there is a problem we report that back in an automail to the developers. If I want to be able to tell if the commandline build of the AI project was sucessful or not, is there a return code generated by the build I can use to alert if the build has failed?

I'm using the command line to build:
C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advancedinstaller.com /rebuild C:\SVN\WebApplications\DocumentArchive\DocArchiveSolution\DocumentArchive.aip

Cheers,
Fergus.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Command line building

Hello Fergus,

The build return codes are:
  • 0 for success
  • 1 for fail
Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
FergusMurray
Posts: 150
Joined: Thu Sep 30, 2010 10:44 am

Re: Command line building

Thanks Mahai

For future reference for anyone else this is a template for the batchfile

echo off
"C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advancedinstaller.com" /rebuild .\DocumentArchive\DocArchiveSolution\AISetup\ApertaDocumentArchive.aip
IF %ERRORLEVEL% NEQ 0 echo Build Failed with code %ERRORLEVEL%
IF %ERRORLEVEL% == 0 echo Build Success

Return to “Common Problems”