Getting Error calling Msi API: 161 Method on Anthill server - 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!

jmccormick
Posts: 5
Joined: Wed Oct 26, 2011 4:44 pm

Getting Error calling Msi API: 161 Method on Anthill server

I'm having some problems with Advanced Installer on my anthill server. When I build locally, everything works fine, but when I try to make a build to push to the server, I get this error:


[exec] Building package (en): F:\anthill\agent\var\jobs\projects\ccs\Build_from_Branch\src\main\client-installer\dev-ccs-client-installer-proj.msi
[exec] Creating CAB file(s)... done.
[exec] Creating MSI database... done.
[exec] Inserting CAB file(s) into MSI...
[exec] Exception - Error calling Msi API: 161 Method: MsiRecordSetStream Table: _Streams.
[exec] Result: 536805277

It's only started again since I made the latest branch of the project, affects both the branch only (the trunk uses the same build.xml file and has no problems), and only happens on the Anthill server. What's happening?

I've checked the build.xml file for stray backslashes, but there doesn't seem to be anything there.

ETA: This is on version 6.5.2. I've also included the troublesome AIP file and the build.xml file.
Attachments
dev-ccs-client-installer-proj.aip
(156.13 KiB) Downloaded 530 times
build.xml
(44.42 KiB) Downloaded 402 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Getting Error calling Msi API: 161 Method on Anthill ser

Hi,

I'm not sure why you are encountering this behavior. Can you please send us the .AIP (project) file and your build commands file to support at advancedinstaller dot com so we can investigate them?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jmccormick
Posts: 5
Joined: Wed Oct 26, 2011 4:44 pm

Re: Getting Error calling Msi API: 161 Method on Anthill ser

Okay, I sent those files to you.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Getting Error calling Msi API: 161 Method on Anthill ser

Hi,

The files seem correctly configured, so there should be no problem with the backslashes. We had a similar problem in the past with another user
running automated builds from a TFS server. In that case the problem was that Advanced Installer was not correctly registered on the machine.

Can you please check that on your machine it is registered, simply go to Help -> About to see the license information or use command prompt directly to build
a test project, without any ANT scripts.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jmccormick
Posts: 5
Joined: Wed Oct 26, 2011 4:44 pm

Re: Getting Error calling Msi API: 161 Method on Anthill ser

Well, the thing is that other projects that require Advanced Installer build. This one still throws this error intermittently.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Getting Error calling Msi API: 161 Method on Anthill ser

Hi,

Try analyzing the project content and output when the error occurs. Perhaps something is not configured correctly for that specific build process which fails. For example a temporary problem related to source files access.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jmccormick
Posts: 5
Joined: Wed Oct 26, 2011 4:44 pm

Re: Getting Error calling Msi API: 161 Method on Anthill ser

Sorry this has taken so long, but the problem is back. Same AIP files, same build scripts, same problem--and a clean environment.

This is happening on a remote server. It does not happen in an environment where I can monitor the project. A branch of the codebase (using the same project and build files) builds on the same machine.

The build succeeds on my local machine.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Getting Error calling Msi API: 161 Method on Anthill ser

Hi,

Searching some more on our forums lead me to this topic. Since the problem seems to be the same can you try the solution suggested by my colleague, i.e. to replace the '/' characters with '\'. For example if you use "/folder/project.aip" replace it with "\folder\project.aip".

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”