mhatkinson
Posts: 32
Joined: Tue Apr 08, 2008 5:36 pm

Error Inserting CAB Files

When building from an automated process on our Windows 2012 Server and using a command line that looks like this:

AdvancedInstaller.com /rebuild "\..\PathToProject\CityViewManager.aip"

We get an error at the point when the AdvancedInstaller is adding the CAB files into the MSI. The error is:
"Error calling MSI API: 161 Method: MsiRecordsetStream Table: _Streams"

We don't get the error when running directly from Advanced Installer.
I've browsed the posts and seen some similar issues and I've tried some of the suggestions in those posts like re-installing Advanced Installer and altering the slashes in the path (changing from forward to back slashes).

Any ideas?

I've attached the problematic .api file and I should note that this seems to happen sporadically with a few of our .aip projects.

Thanks,
Mark Atkinson
Attachments
CityViewApplicationBuilder.aip
(42.92 KiB) Downloaded 440 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error Inserting CAB Files

Hello Mark,

I'm not sure what is the root cause of this behavior. Can you please make sure the current building user account has write permissions on your "Output -> Folder" location from "Media -> Configuration" tab?

Also, can you please try to use a command line like this (include the path to AdvancedInstaller.com between quotes):

Code: Select all

"C:\Program Files (x86)\Caphyon\Advanced Installer 10.2\bin\x86\AdvancedInstaller.com" /rebuild "\..\PathToProject\CityViewManager.aip"
and see if the behavior still persist?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mhatkinson
Posts: 32
Joined: Tue Apr 08, 2008 5:36 pm

Re: Error Inserting CAB Files

Hi Daniel,
Yes, the command line syntax is all quoted like that and I double checked the permissions on the folder.
It's running from a process that builds about 8 AI projects in a row and it seems to be somewhat random. Sometimes everything builds and other times it's a different project that throws the error. I'm wondering if it's a timing thing.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error Inserting CAB Files

Hello Mark,

I'm not sure why this happens. I'm afraid that in order to be able to find the root cause of this behavior we need a step by step test case scenario which always reproduce the behavior. So, what you can try is to isolate the behavior in a sample or give us a step by step test case scenario which always reproduce the behavior so we can reproduce and investigate this on our test machines.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mhatkinson
Posts: 32
Joined: Tue Apr 08, 2008 5:36 pm

Re: Error Inserting CAB Files

It's pretty weird. It only happens some of the time - maybe 80% of the time.

Can you tell me what this: "Error calling MSI API: 161 Method: MsiRecordsetStream Table: _Streams", actually means?

Do you know if it sounds like a permissions/security issue or the .aip file is in a read-only state or something?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error Inserting CAB Files

Hello,

This may be a possible cause. Can you please make sure that the current building user has full access on project output location and on all resource files referrenced in your .aip (project file)?

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

Return to “Common Problems”