HI Nadav:
You'll want to take a look at MsiRecordReadStream. It's been a while
since I have worked with the MSI API so I can't think of where the
specific examples are. You might want to poke around in the
microsoft.public.platformsdk.msi for API help.
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sun, 21 Nov 2004 00:47:01 -0800, "Nadav"
<Nadav@discussions.microsoft.com> wrote:
[color=blue]
>Hi Scott,
>
>- Thanks for your immediate response, I need to figure out a way to extract
>a single file from the MSI package with out doing any special installation
>procedure.
>- I was looking at the Msi API you were referring to , BUT, I didn't find an
>API to extract a single file from the installation package, I can use the
>'MsiInstallMissingFile' API, BUT, I assume that this will copy the file and
>will perform additional installation procedure ( such as registering the file
>), however, I need to extract the file with out installing it...
>
>Any help would be appreciated...
>[*] How could I extract a single file from the MSI package with out
>installing it ( e.g. registering it ) ?
>
>Thanks in advance,
> Nadav.
>
http://www.ddevel.com
>
>
>"Scott Allen" wrote:
>[color=green]
>> It's unfortunately a non-trivial task.
>>
>> There is a set of API functions to programatically work with MSI
>> files. Inside of the MSI file there is actually a set of database
>> tables with relationships. You can read more in the Platform SDK:
>>
http://msdn.microsoft.com/library/de..._reference.asp
>>
>> Something else you might look at is Wix, which is a project Microsoft
>> has open sourced. You can "decompile" an MSI file into XML (and vice
>> versa):
>>
http://sourceforge.net/projects/wix
>>
>>
>> --
>> Scott
>>
http://www.OdeToCode.com/blogs/scott/
>>
>> On Thu, 18 Nov 2004 08:03:05 -0800, "Nadav"
>> <Nadav@discussions.microsoft.com> wrote:
>>[color=darkred]
>> >Hi,
>> >
>> >I am writing some kind of a file scanner, at certain time all of the files
>> >under a certain directory will be scanned, this scan require de-compression
>> >of common files formats such as ZIP and MSI, the ZIP file format is well
>> >known so there is no problem of decompressing it manually, however, the MSI
>> >format is less open… I wonder where can I find the MSI format ‘white papers’?
>> >Are those ‘white papers’ are published? How can I programmatically brows .MSI
>> >files ( without executing them )?[/color]
>>
>>[/color][/color]