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

I need to get the Binary data out...


2 replies to this topic

mjb750q

mjb750q
  • Members
  • 15 posts

Posted 07 September 2005 - 16:56

Hey there,

I'm writing a program in Vb.net 2005 (although this is in beta, I had the same issues with VB6) and I wish to extract binary information from the Icon table - i.e. I'm trying to get the icon to display in my app! smile.gif

I'm very proficient with programming and the Windows installer object, but I'm coming up against a brick wall trying to extract this binary data (string data isn't a problem).

This is currently my code - this works for 'stringdata'.

Database = objinstaller.OpenDatabase("d:\data1.msi", 0)
vwSQL = Database.OpenView("SELECT * FROM Icon")
vwSQL.Execute()
strTemp = vwSQL.Fetch.StringData(1)

I know the data is 'in' stringdata(2) but can't get it out!!!!

Does anyone know a way round!?! Any help would be appreciated muchly wink.gif

Thanks in anticipation.

Johno.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 07 September 2005 - 20:42

Have you tried MsiRecordReadStream ?

mjb750q

mjb750q
  • Members
  • 15 posts

Posted 19 September 2005 - 20:37

Hey!

Thanks a million Stefan, you've helped me out again...

my next issue is messing the the image memory stream in vb.net2005, but that's a different problem smile.gif

But, recordreadstream and then saving that to a file did get my icons out smile.gif, so I know that part's working.

the code's in the vb2005, so if anyone needs it, drop me a line.

thanks again.

Johno.