MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: Service Tips[Next]: Search MSIs
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Tips and Tricks->_Storages

_Storages (sub storages)

The "_Storages" table is used in a few very limited ways by Windows installer. It is used to imbed OLE storages into Windows Installer databases, these can not be extracted with normal Windows Installer methods. If you need to be able to read them use the "_Streams" or "Binary" tables.

There are two Windows Installer SDK utilities that you may wish to use for diagnostic purposes:

  1. WiSubStg.VBS
    This utility can add or delete sub-storages from an MSI. It can also list any storages the MSI contains.

  2. MsiDB.EXE
    This utility can add or delete sub-storages from an MSI. It can also extract sub-storages.

You will get error 2213 if you try to add a file with an invalid format (non-Windows Installer?).

EXAMPLE

The following code shows how an MSI can be imbedded as a sub storage. It is only complicated slighty by the default "_Validation" table not having entries for the "_Storages" table (so we need to ignore any "MISSINGDATA" error messages).

<$Table "_Storages" CREATE="N">
   <$Row Name="AnMsi" Data="c:\tmp\AN.MSI" @Validate="NEW -MISSINGDATA">
<$/Table>


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: Service Tips[Next]: Search MSIs


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Sunday February 28 2016 at 3:45pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.