“Save” and “Save As” don’t do the same thing in Microsoft’s “Orca”

“Orca” is an editor for MSI files that comes with the Microsoft Windows Installer SDK.

Some program wouldn’t install on my system, claiming it can’t run on “Server” editions of Windows.
I edited the MSI file with Orca to remove the offending condition. I used File -> Save As to save the edited MSI under a different filename.

When I ran the installer again, it skipped the “Bad Windows edition” message, and instead gave me a worse error: “Error 2356”.
Digging in the SDK revealed the matching error message: “Could not locate cabinet in stream: [2].”

After a while of searching for the possible cause, I uncovered this in the Orca help, under “Special Considerations when editing Databases”:

Embedded Streams and Storages
When a database is saved using the Save As… or Save Transformed As… command, embedded binary streams (such as embedded cabinet files) are not saved to the new database unless they are part of a data row. Embedded sub-storages (nested install files) are never saved to the new database.

The solution? Make a renamed copy of the original MSI, edit with Orca, and save using File -> Save.

Advertisements

16 Responses to “Save” and “Save As” don’t do the same thing in Microsoft’s “Orca”

  1. Yoav F says:

    isn’t Orca*S* the beta-name for VS2007, or something?

  2. yoni says:

    Yep. Orca and Orcas are two different things.
    For instance, I’m sure in Orcas, Save and Save As do the same thing.

  3. vitalyb says:

    Orca’s attack smaller animals and tear chunks from them.
    They don’t save shit. Duh.

    Stop blaming Microsoft for everythnig.

  4. Lobsi says:

    Sorry, but this is so stupid… im wondering about why im still getting the Error: “Could not locate cabinet in stream”

  5. I came across this problem too, but noticed that under Tools/Options, on the “Database” tab there is an option called “Copy embedded streams during ‘Save As’.” that resolved this for me. I’m not sure why it would default to “off”.

  6. David Sain says:

    Go to Tools | Options. On the Database tab, check the box for “Copy embedded streams during ‘Save As’.

  7. Anonymous says:

    Still helping 9 years after publication.Thanks!

  8. Anonymous says:

    Thank you, I thought I had wasted 2 days trying to fix this cab error. This solved my problem

  9. Doris Kotzur says:

    This is very satisfactorily written. The blog post was informational to elocutionists who have a good worth for articles. We look ahead for even more of the very same. He has detailed each and every little thing extremely well and in brief.

  10. Bernie Canto says:

    This stuff is very satisfactorily composed. The article was helpful to subscribers who exactly possess a great worth for articles. We look forward for more of the same. He has detailed each and every little thing extremely well and briefly.

  11. Teddy Diehl says:

    This is very satisfactorily composed. The blog post was helpful to readers who have a great worth for articles. We look forward for more of the very same. He has described each and everything very well and in brief.

  12. Anonymous says:

    Thank you for your post….still working :)

  13. Joshua Drake says:

    Can’t believe I had never run into this before, thank you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: