Running Ant task under CruiseControl service - 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!

mvanec
Posts: 3
Joined: Wed Jun 11, 2008 5:23 am

Running Ant task under CruiseControl service

Not sure if this is a forum or incident question.
I have CruiseControl running as a Windows service on my project's build machine (which coincidentally is my spare desktop running XP). The service runs as the local system account. I added the AdvancedInstaller.com exec to one of my Ant build scripts, building a Java MSI package. When AI builds the package, the package is built as if done by the evaluation version of AI (that is, I get the "evaluation version" message when I test the produced MSI files).

If I change CruiseControl's service to run as my own user ID (after opening & resaving the AIP file to get it back to the registered state), then the MSI package is built correctly, without the "evaluation version" message (of course, because we bought a license).

So, the question is, how can I get AI to build the MSI package from CruiseControl without the "evaluation version" message, and with CruiseControl running as the local system account logon of my network logon? We have to change our network passwords rather frequently, and I don't want to have to constantly update the CruiseControl service accordingly....

Thanks,
Matt
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Running Ant task under CruiseControl service

Hi Matt,

Advanced Installer is licensed per-developer. This means that when you register Advanced Installer on a machine, it will be registered only for the current user account. Since CruiseControl runs under the local system account and not under the account which registered Advanced Installer, the packages you create will be unregistered.

Therefore, the only solution for using CruiseControl to build your Advanced Installer projects is to make sure that it runs under the user account on which you registered Advanced Installer.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”