Acting on AI return values - Advanced Installer Community
hovedsjef
Posts: 14
Joined: Wed Dec 14, 2011 2:22 pm

Acting on AI return values

Hello,

I am incorporating AI as a part of our build system - hence AI is run from the command line at the end of each full build of our software, packaging the output of several VS solutions into one installer. If AI returns an error (i.e. ERRORLEVEL != 0), I am returning an error. However, since we are using a floating license, I do not want to fail a build just because AI was not available at the time when someone runs a build - I just want to give a warning. Hence, I am only giving a warning if the error code is 536805277. I have however now discovered that this error code is even returned when there is a problem with a file, for instance a permission problem or similar. In such cases, I would have wanted to fail the build, but I am not able to distinguish between the two situations based on the common error code.

Is there any way from the command line to distinguish between a License not available issue and a file access issue?

Thanks,
Vidar.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Acting on AI return values

Hello Vidar,

Unfortunately, currently we don't have a specific exit code of Advanced Installer when no floating license seat is available. As you've noticed the "536805277" exit code is a generic one. I've added an improvement on our TODO list so we can have a specific exit code when no floating license seat is available. Thank you for your suggestion. We'll update this thread when the improvement will be out.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
seth
Posts: 2
Joined: Wed Aug 14, 2013 3:37 pm

Re: Acting on AI return values

I'm interested in this feature as well. Is there someway to become a watcher on the feature request so I can stay up to date on the status?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Acting on AI return values

Hello,

This improvement will be available starting with our next version of Advanced Installer (11.7). We'll update this thread as soon as the new version will be out.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Acting on AI return values

Hello,

This improvement has been added in version 11.7 of Advanced Installer released on December 16th, 2014.

The error code is 0xE001006D - Unable to acquire a floating license ( no slots or unable to contact the license server)

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”