Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

PatchWiz error


3 replies to this topic

GuySmiley

GuySmiley
  • Members
  • 14 posts

Posted 27 May 2003 - 18:05

Hi.. I'm attempting to generate a patch using PatchWiz.dll
that will patch between two versions of an .msi file that
was generated using the MSI API. I get the following
error:
Failed to create patch. Error code: 0xC00E5115

... which is the error
ERROR_PCW_UPGRADED_IMAGE_PATH_NOT_MSI, Path not to .msi
file in MsiPath of UpgradedImages Table.

This was confusing because the MsiPath entry of the
UpgradedImages table in my .pcp file was in fact the fully
qualified name of an existing .msi. I discovered that the problem is actually with the .msi file itself, which I generated using the C++ MSI API.
if I open the .msi using Orca and save it again without
making any changes then the patch would generate fine
thereafter. I did a binary diff and indeed Orca changes
the binary format around in some way when I resave which
makes the difference between PatchWiz accepting and not-
accepting my .msi as input.

I'm stumped as to why this is happening. I'm using the
MSI API calls MsiOpenDatabase() and MsiCommitDatabase() to
generate the .msi, so it's not like I'm mucking with the
nuts and bolts of the binary formatting. Windows
installer will run the package just fine, it is only
PatchWiz.dll that has a problem with it.

If anyone knows a reason of what might be happening or how
I can make PatchWiz accept the .msi I would appreciate
your help very much.

thanks,
Steve B.
.



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 27 May 2003 - 20:41

Might be a difference in the database schema. Maybe you can run a MSI diff tool to see what Orca changed?

GuySmiley

GuySmiley
  • Members
  • 14 posts

Posted 27 May 2003 - 21:17

Thanks for the suggestion Stefan. I tried MsiDiff and it reports no differences. Also there is no difference between the properties (including summary stream properties) between the original and resaved file. The only differences I can detect at all are when I open them up in a binary editor.

Any other ideas? This is driving me nuts.. smile.gif

thanks again
gs

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 28 May 2003 - 07:51

Are your application files embedded in the MSI? AFAIK Orca will remove any embedded files when saving.