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

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

Thu Mar 10, 2022 5:40 pm

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: 6542
Joined: Wed Jun 13, 2018 7:49 am

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

Mon Mar 14, 2022 4:57 pm

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: 6542
Joined: Wed Jun 13, 2018 7:49 am

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

Thu Mar 17, 2022 4:38 pm

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.64KiB)Viewed 3594 times


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


Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

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

Fri Mar 25, 2022 9:24 am

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: 6542
Joined: Wed Jun 13, 2018 7:49 am

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

Fri Apr 08, 2022 9:51 am

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”