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!
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
Thanks in anticipation.
Johno.
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.
I need to get the Binary data out...
Started by
mjb750q
, Sep 07 2005 16:56
2 replies to this topic
Posted 07 September 2005 - 20:42
Have you tried MsiRecordReadStream ?
Stefan Krüger
InstallSite.org twitter facebook
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
But, recordreadstream and then saving that to a file did get my icons out , 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.
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
But, recordreadstream and then saving that to a file did get my icons out , 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.