stretch327
Posts: 9
Joined: Mon May 19, 2008 7:13 pm

Isolating a problem from a command line build

We're in the process of automating our build procedure for one of our products and I've finally migrated the build process of AdvancedInstaller. The problem we're running into now is that while everything works just fine when running the AI application, it does not from the command line. The command we're sending is:

C:\Program Files\Caphyon\Advanced Installer 12.2\bin\x86\AdvancedInstaller.com /rebuild .\Build\Windows\Feedback.aip

If I run this command from either a normal shell or from PowerShell, the project builds just fine, but If it is run from within our CI environment, it fails.

I have two questions:

1. Is there any way to get the command line system to reveal its errors on the command line so I could send them back to our system

2. Does AI require anything specific in the environment? Our CI system runs with the environment completely empty and I need to add necessary items.

This is the output we DO get:

08:15:09.392 Build required.
08:15:09.408
08:15:09.408 [ StandardBuild ]
08:15:09.408
08:15:09.408
08:15:09.486 Building package (en):
08:15:09.486
08:15:09.486 C:\Program Files\Go Agent\pipelines\Feedback-Packaging\Builds\FeedbackSetup.exe
08:15:09.486
08:15:09.502 Error opening database file 'C:\Program Files\Go Agent\pipelines\Feedback-Packaging\Builds\Feedback.msi'.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Isolating a problem from a command line build

Hello,
1. Is there any way to get the command line system to reveal its errors on the command line so I could send them back to our system
To achieve this you can try to redirect the commands output to a file by using the command redirection operators.
2. Does AI require anything specific in the environment? Our CI system runs with the environment completely empty and I need to add necessary items.
No, it shouldn't. All you have to do is to make sure the current user (under which the build is triggered) has enough permissions to access the files referenced by the project and the project output location (the location in which the project will dump the built setup).

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”