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!

Moskito
Posts: 9
Joined: Tue Jun 26, 2012 8:17 am

Missing Resource

Hello,

we use an automatic build process with AIP's returncode as part. There is one situation, where API does not set a returncode:

Missing components do not result in a code other than zero.

It would be helpfull to have this.

Version: 11.6.1

Verify: delete a file, needed to build, outside the installer an build the project woth a batchfile like this:

-------------------
AdvancedInstaller /build MoskitoPro2.aip -buildslist DefaultBuild;WebBuild;FullBuild
if errorlevel 0 goto okMPro
Echo Build Moskito Pro gescheitert: Errorlevel %errorlevel%
pause
:okMPro
-------------------
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Missing Resource

Hello,

I've tested your scenario but I cannot replicate the described behavior.
Can you please give us a detailed test case scenario so we can further investigate this?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jhausfeld
Posts: 2
Joined: Wed Feb 05, 2014 1:55 pm

Re: Missing Resource

Hi,

I have a very similar problem using AI from the command line during our build process on a server. A referenced Executable does not exist for a merge module to create but AI always returns with success. I know that this works correcty in one of the previous versions.

AI version: 11.7

Some output from windows console prompt:

[INFO] Create setup "..\..\..\BigFarmNet\src\MainUnit-Setup\BigFarmNet-MainUnit-MergeModule.aip"
"C:\Program Files (x86)\Caphyon\Advanced Installer 11.7\bin\x86\AdvancedInstaller.com" /rebuild "..\..\..\BigFarmNet\src\MainUnit-Setup\BigFarmNet-MainUnit-MergeModule.aip"
Checking builds status... done.
Resources referred by the project are missing.

C:\wc\BigBin\Windows\Release-Win32\MainUnit\MainUnit.exe

[INFO] 0 creating setup ok

And here is the code snippet from batch file (adapted for test purposes).
:: create setup packages
for %%p in (%ProjectList%) do (
echo [INFO] Create setup %%p
echo %AIPath% /rebuild %%p
%AIPath% /rebuild %%p

if ERRORLEVEL 1 (
echo [ERROR] %errorcount% error occurs creating setups, view log files for details
echo\ 1>&2
set /A errorcount=errorcount+1
setlocal EnableDelayedExpansion
set errortext[!errorcount!]=error: creating setup package %%p
setlocal
) else (
echo [INFO] %errorlevel% creating setup ok
set /A successcount=successcount+1
)
echo.
)

Return to “Common Problems”