Problem with AI called by ANT after Update 4.6 to 4.8 - 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!

FF
Posts: 1
Joined: Mon Mar 12, 2007 11:37 am

Problem with AI called by ANT after Update 4.6 to 4.8

We have the following problem after we updated from AI 4.6 to AI 4.8 (also in 4.7 and 4.8.1)

Environment: XP SP2, ANT 1.6.5

Error:
Exception - Error calling Msi API: 161 Method: MsiRecordSetStream Table:_Streams.

Further examination using Filemon reveiled that AdvancedInstaller builds a cab file (disk1.cab) on the file system root (D:\inst1.cab) and later fails (FILE NOT FOUND) when trying to read inst1.cab from the project directory d:\<projectDir>\inst1.cab into the msi file.

More interestingly the msi build succeeds when Advanced Installer was either started in GUI mode or started from cmd.exe, but failes when being called from ANT.

This is how we call AdvancedInstaller using ANT:

<exec dir="${projectDir}" executable="${path.AdvancedInstaller}">
<arg line="/build ${projectDir}/Project.aip"/>
</exec>

So the internally used cab file path seems to be wrong. Question: does version 4.8 need different settings (e.g. environment variables, commandline switches) than version 4.6?

Thanks in advanced for any help. In the meantime we will step back to version 4.6
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

In order to investigate the problem please send the AIP project file created with 4.6 version of AI (if not contain any confidential information) or a small similar test case reproducing this issue to support at advancedinstaller dot com.

Waiting for your reply.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
jef
Posts: 2
Joined: Wed Jul 25, 2007 2:34 pm
Location: Midwest

Running AI from Ant

Was there ever a resolution to this issue? I am experiencing the same problem, running AI from an Ant build script, using 5.0.

My Ant script looks very similar to FF's below. I am thinking there must be some combination of working directories in ant, and ant's exec target, combined with the file pathing options in AI that will make this work, but have tried many different combinations with no success. My AIP is just a "simple" project.

Thanks in advance.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The problem was with the fact that "/" was used instead of "\" for ANT properties that contains path to file/folders.

For example if you use "/folder/project.aip" replace it with "\folder\project.aip".

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
jef
Posts: 2
Joined: Wed Jul 25, 2007 2:34 pm
Location: Midwest

Running AI from Ant

Thanks Gigi! Worked like a charm...

Return to “Common Problems”