murgo
Posts: 4
Joined: Wed Feb 27, 2013 11:46 am

advancedinstaller.com returns 0 even if files are missing

Hello, we are using advancedinstaller.com as part of our continuous integration system.

Currently, command line tool advancedinstaller.com returns 0 as return code (errorlevel) even if resources referred by the project are missing. This causes our build to seem successful, even if the building of installer has failed.

Using Advanced Installer 9.9 on Windows Server 2008 R2 and on Windows 7.

Steps to reproduce:
Create project with some files.
Remove files used by the project.
Run "advancedinstaller.com /build project.aip"
Verify installer says something like:
"
Checking builds status... done.
Resources referred by the project are missing.
C:\installerproject\file.foo
Build finished because an error was encountered.
"
Run echo %errorlevel%, verify it says 0.

The return code should be something other than 0 since build failed.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: advancedinstaller.com returns 0 even if files are missin

Hi and welcome to our forums,

This is a bug that appeared in version 9.9, we already detected it and a fix will be included in version 10.0 very soon.

Until then the workaround is to use "/rebuild" command instead of "/build" or go back to version 9.8.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
murgo
Posts: 4
Joined: Wed Feb 27, 2013 11:46 am

Re: advancedinstaller.com returns 0 even if files are missin

Thanks! We'll switch to use /rebuild then.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: advancedinstaller.com returns 0 even if files are missin

My pleasure.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”