Page 1 of 1

Error running miabuild.exe from automation build tool

Posted: Fri May 22, 2009 6:19 am
by ALive
Hi!

We've encountered a problem running miabuild.exe under TeamCity. The error code is 3, which means (according to the docs 3: Unhandled fatal exception during build).
The weird thing is, that exactly the same script successfully runs when we use IA 8.01, we just reinstalled to version 9.01 and the problem appeared.

Some things to notice:
1. Running project build through IDE is fine!
2. Running miabuild.exe through *.cmd file with parameters is fine
The problem appear only with TeamCity. It could be probable TeamCity's issue if non of the versions of miabuild (8.01 or 9.01) would work, but it was OK with 8.01.

Here is cmd line (maybe it could help):
"C:\\Dev\\InstallAware9"\\miabuild.exe C:\\Dev\\TeamCity\\BuildAgent\\work\\TRUNK_FULL\\dev\\install\\JavaTomcatInstaller\\JavaTomcatInstaller.mpr /o=C:\\Dev\\TeamCity\\BuildAgent\\work\\TRUNK_FULL\\dev\\install\\JavaTomcatInstaller /b=0 /r /l=Russian DEPOTDIR=C:\\Dev\\TeamCity\\BuildAgent\\work\\TRUNK_FULL BUILDNUMBER=1.2.3.4

DEPOTDIR and BUILDNUMBER - is compiler variables that we use inside the MSI code

It builds a small Prereq setup package for Java and Tomcat files (customized for our needs)

When we used version 8.01 the cmd string was:
"C:\\Dev\\InstallAware8"\\miabuild.exe C:\\Dev\\TeamCity\\BuildAgent\\work\\TRUNK_FULL\\dev\\install\\JavaTomcatInstaller\\JavaTomcatInstaller.mpr /o=C:\\Dev\\TeamCity\\BuildAgent\\work\\TRUNK_FULL\\dev\\install\\JavaTomcatInstaller /b=0 /r /l=Russian DEPOTDIR=C:\\Dev\\TeamCity\\BuildAgent\\work\\TRUNK_FULL BUILDNUMBER=1.2.3.4

the difference only in ("C:\\Dev\\InstallAware8"\\miabuild.exe) the folder, containing IA files.

After a dozen of experiments my colleague finally pin pointed the reason of the issue. Then we changed the account from which TeamCity works from "build" user ("build" user account has Admin rights) to Local System Account turning on Desktop Interaction option and it starts to work!

Can anyone confirm that the Service (in out case it's TeamCity) executing miabuild.exe (version 9.01) require Desktop interaction option set to ON?? Because for version 8.01 it was fine. We used our "build" user with Admin rights and without "Desktop Interaction" option turned on.

Many thanks in advance!
Have a nice day!

Posted: Fri May 22, 2009 4:39 pm
by MichaelNesmith
InstallAware 9.0+ does add more checks into miabuild.exe - such as, failing the build with an error code when a compile fails (this was not the case with older versions). It is possible this could have something to do with it.