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!

AI_New_User
Posts: 25
Joined: Thu Aug 26, 2021 4:57 pm

Azure DevOps: Error calling MSI API: 161 Method: MsiRecordSetStream Table: _Streams.

When running AI 18.9 on Azure DevOps, I get this error message:
Checking builds status
Build required.

[ AppSetup ]
Building package: D:\a\1\a\MSI\AppSetup-20220310.5.msi
Prepare build
Detecting MSI incompatible resources
Preparing files
Creating CAB file(s)
Creating MSI database
Inserting CAB file(s) into MSI
Error calling MSI API: 161 Method: MsiRecordSetStream Table: _Streams.

Build finished because an error was encountered.
##[error]Failed to execute Advanced Installer task. Error: SetPackageName "AppSetup-20220310.5.msi" -buildname "AppSetup"
SetOutputLocation -path "D:\a\1\a\MSI" -buildname "AppSetup"
Build -buildslist "AppSetup"

Checking builds status
Build required.

[ AppSetup ]
Building package: D:\a\1\a\MSI\AppSetup-20220310.5.msi
Prepare build
Detecting MSI incompatible resources
Preparing files
Creating CAB file(s)
Creating MSI database
Inserting CAB file(s) into MSI
Error calling MSI API: 161 Method: MsiRecordSetStream Table: _Streams.

Build finished because an error was encountered.

Finishing: Create Installer msi

If I run this locally on my desktop, I don't get this error and the MSI is built and created.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Azure DevOps: Error calling MSI API: 161 Method: MsiRecordSetStream Table: _Streams.

Hello,

Could you please double check to make sure you are building the same .AIP file on DevOps and locally on your machine?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Azure DevOps: Error calling MSI API: 161 Method: MsiRecordSetStream Table: _Streams.

Hello,

This is quite strange, as there shouldn't be any difference between building in Azure and on your local machine.

If possible, please go to "Azure" --> "Repos" --> "Files" --> download your .AIP file and send it to me by email at support at advancedinstaller dot com together with the command line you are using so I can have a look over it.
ReposFiles.png
ReposFiles.png (50.64 KiB) Viewed 5857 times


Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Azure DevOps: Error calling MSI API: 161 Method: MsiRecordSetStream Table: _Streams.

Hello,

Unfortunately, it looks like the email did not get in our inbox.

Could you please try to send it again and then let me know so I can check?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Azure DevOps: Error calling MSI API: 161 Method: MsiRecordSetStream Table: _Streams.

Hello,

Thank you for providing the AIP file.

I have had a look over it and everything seems to be configured just fine.

Are you able to replicate this behavior in a sample project (i.e. a newly created project)? If so, could you please forward me that project so I can run some tests with it on my end?

I have tried running some tests using a sample AIP file on my end, but I was not able to reproduce that issue.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”