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!

MichaelL
Posts: 6
Joined: Thu Dec 03, 2009 1:27 am

'Error calling Msi API' while building patch

Hi I get multiple errors of type 'Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table:' ... when trying to build a patch. I see no way around it so am appending the build log and attaching the aip file.

Any help appreciated.

MichaelL

--- build log ---

Building package: M:\Data Mining\Software\CSOM\Installers\SiroSOM_Mixed_Patch_1.0.3_1.0.4\Patch Files\SiroSOM_1.0.3_1.0.4.msp
Running MSI patch compatibility tests...
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Component.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Feature.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: FeatureComponents.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Component.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Feature.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: File.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Component.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Feature.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: FeatureComponents.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Component.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Feature.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: File.
done.
Creating PCP database... done.
Creating MSP...
***** Log starting: 2010-04-27 14:46:39 *****

INFO: Using Pcp Path: M:\Data Mining\Software\CSOM\Installers\SiroSOM_Mixed_Patch_1.0.3_1.0.4\Patch Files\SiroSOM_1.0.3_1.0.4.pcp.
INFO: Using Temporary Directory: C:\Users\lof012\AppData\Local\Temp\~pcw_tmp.tmp.
INFO: Passed all of the main control parameter validation to PatchWiz, now calling the next 5 phases.
INFO: Phase I: Entered validation and processing phase.
INFO: Validation of Pcp.
INFO: MinimumRequiredMsiVersion is 200.
INFO: SEQUENCE_DATA_GENERATION_DISABLED is 1.
INFO: ListOfPatchGUIDsToReplace is .
INFO: ListOfTargetProductCodes is *.
INFO: MsiFileToUseToCreatePatchTables is .
INFO: PatchGUID is {85800BCA-3539-46FB-B8EF-A5D777A13CA8}.
INFO: PatchOutputPath is M:\Data Mining\Software\CSOM\Installers\SiroSOM_Mixed_Patch_1.0.3_1.0.4\Patch Files\SiroSOM_1.0.3_1.0.4.msp.
INFO: PatchSourceList is PatchSourceList.
INFO: PATCH_CACHE_DIR is .
INFO: AllowDualPatch is 0.
INFO: AllowProductCodeMismatches is 1.
INFO: AllowProductVersionMajorMismatches is 1.
INFO: ApiPatchingSymbolFlags is 0.
INFO: DontRemoveTempFolderWhenFinished is 0.
INFO: IncludeWholeFilesOnly is 0.
INFO: PATCH_CACHE_ENABLED is 0.
INFO: OptimizePatchSizeForLargeFiles is 0.
INFO: META_DATA_GENERATION_DISABLED is 0.
INFO: TrustMsi is 0.
INFO: AllowLaxValidationFlags is 0.
ERROR: UpgradedImages.MsiPath 'M:\Data Mining\Software\CSOM\Installers\SiroSOM_Mixed_Patch_1.0.3_1.0.4\images\setup\setup.msi' does not exist.
ERROR: The Last Error Received is: 0
INFO: Temporary folder is about to be cleaned out and deleted: C:\Users\lof012\AppData\Local\Temp\~pcw_tmp.tmp
ERROR: Internal PatchWiz Error occurred.
ERROR: The Last Error Received is: -1072803564
error.
Exception - Reason: MsiMsp.exe failed to create the patch file.

Build finished because an error was encountered.
Attachments
SiroSOM_1.0.3_1.0.4.aip
(2.61 KiB) Downloaded 487 times
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: 'Error calling Msi API' while building patch

Hello,

I am not sure why you are encountering this behavior.
Please make sure of the following:
- you are following ALL the patch rules. This is imperative.
- the msi files are not open with Orca or some other msi editor, nor are they running

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
MichaelL
Posts: 6
Joined: Thu Dec 03, 2009 1:27 am

Re: 'Error calling Msi API' while building patch

Thanks for the reply Gabriel.

I'm not editing the msi files with anything except AI. I don't think I'm breaking any of the patch rules.

Just to be sure, I took a copy of my 'v1' msi, and changed the product version only. I also renamed the aip file, but surely that can't be the problem? v2 built fine, I updated the patch to use the new 'v2' msi. Again the patch build failed in the same way.

A couple of extra bits of info:
- I'm using AI 7.6b27499, on Windows 7 x64. I did try it on another person's 32-bit XP, and got the same problem.
- The project I'm trying to patch is a mixed mode project. My attempt at getting this to work (as there are two msi's per project) was to create two 'families' in the Images pane, one for setup.msi, and one for setup.x64.msi.

Are there any further things I can do to assist in diagnosis? All I can think of is to start with a really simple project and get progressively more complex, approaching what I'm testing with now.

Regards,

Michael
MichaelL
Posts: 6
Joined: Thu Dec 03, 2009 1:27 am

Re: 'Error calling Msi API' while building patch

Some follow up testing:

First I followed your tutorial to create a simple installer, x2, with a simple patch. This worked ok.

Following this I created a simple project but with the mixed installer project template. I added three files, one to 64-bit, one to 32-bit, and one to common. This built and ran ok. I copied it, changed the product version, and built the new version, and made the patch. The patch generated the same errors as reported previously.

It's starting to look like there's a general problem with patching mixed installer projects...

Below is the log of the last test. Attached is the aip file.

Regards,

MichaelL

--- build log ---

Building package: M:\Data Mining\Software\CSOM\Installers\Test\MixedPatch\MixedPatch-SetupFiles\MixedPatch.msp
Running MSI patch compatibility tests...
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Component.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Feature.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: FeatureComponents.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Component.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Feature.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: File.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Component.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Feature.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: FeatureComponents.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Component.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: Feature.
Error calling Msi API: 1615 Method: MsiDatabaseOpenView Table: File.
done.
Creating PCP database... done.
Creating MSP...
***** Log starting: 2010-04-28 16:42:18 *****

INFO: Using Pcp Path: M:\Data Mining\Software\CSOM\Installers\Test\MixedPatch\MixedPatch-SetupFiles\MixedPatch.pcp.
INFO: Using Temporary Directory: C:\Users\lof012\AppData\Local\Temp\~pcw_tmp.tmp.
INFO: Passed all of the main control parameter validation to PatchWiz, now calling the next 5 phases.
INFO: Phase I: Entered validation and processing phase.
INFO: Validation of Pcp.
INFO: MinimumRequiredMsiVersion is 200.
INFO: SEQUENCE_DATA_GENERATION_DISABLED is 1.
INFO: ListOfPatchGUIDsToReplace is .
INFO: ListOfTargetProductCodes is *.
INFO: MsiFileToUseToCreatePatchTables is .
INFO: PatchGUID is {7935B39D-576A-4DB7-8BDC-3A865184AC16}.
INFO: PatchOutputPath is M:\Data Mining\Software\CSOM\Installers\Test\MixedPatch\MixedPatch-SetupFiles\MixedPatch.msp.
INFO: PatchSourceList is PatchSourceList.
INFO: PATCH_CACHE_DIR is .
INFO: AllowDualPatch is 0.
INFO: AllowProductCodeMismatches is 1.
INFO: AllowProductVersionMajorMismatches is 1.
INFO: ApiPatchingSymbolFlags is 0.
INFO: DontRemoveTempFolderWhenFinished is 0.
INFO: IncludeWholeFilesOnly is 0.
INFO: PATCH_CACHE_ENABLED is 0.
INFO: OptimizePatchSizeForLargeFiles is 0.
INFO: META_DATA_GENERATION_DISABLED is 0.
INFO: TrustMsi is 0.
INFO: AllowLaxValidationFlags is 0.
ERROR: UpgradedImages.MsiPath 'M:\Data Mining\Software\CSOM\Installers\Test\MixedPatch\images\setup\setup.msi' does not exist.
ERROR: The Last Error Received is: 0
INFO: Temporary folder is about to be cleaned out and deleted: C:\Users\lof012\AppData\Local\Temp\~pcw_tmp.tmp
ERROR: Internal PatchWiz Error occurred.
ERROR: The Last Error Received is: -1072803564
error.
Exception - Reason: MsiMsp.exe failed to create the patch file.

Build finished because an error was encountered.
Attachments
MixedPatch.aip
(2.09 KiB) Downloaded 943 times
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: 'Error calling Msi API' while building patch

Hello,

I am sorry, it appears I overlooked the fact that your project is a mixed 32/64 bit. I am afraid patches can not be generated for this type of installer.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
MichaelL
Posts: 6
Joined: Thu Dec 03, 2009 1:27 am

Re: 'Error calling Msi API' while building patch

Hi Gabriel,

It would be nice to see patch support in mixed projects implemented soon. Patch support is the reason I bought the enterprise version.

MichaelL
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: 'Error calling Msi API' while building patch

Hi Michael,

Windows Installer does not support mixed 32/64bit packages. Despite that, we add the mixed 32/64bit package functionality by creating .exe installers. Since patches are a Windows Installer specific feature, and mixed packages are Advanced Installer specific, they can not work together.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”