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

Equivalent of BSTR in Installscript


4 replies to this topic

kirann_hegde

kirann_hegde
  • Full Members
  • 93 posts

Posted 27 November 2009 - 07:38

I need to consume a COM dll in my Installscript project. The COM functions expect BSTR for the input arguments.

What is the installscript equivalent of BSTR? I am using IS 2009 professional.

Thanks
Kiran Hegde

kirann_hegde

kirann_hegde
  • Full Members
  • 93 posts

Posted 29 November 2009 - 06:36

Can somebody help me here?

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 30 November 2009 - 16:11

Given IS's rudimentary types, it seems like the closest equivalent is simply STRING.
user posted image

phood

phood
  • Full Members
  • 37 posts

Posted 01 December 2009 - 22:30

More than likely, you won't be able to do that. If you can, let us know how you did it.

Otherwise, here are two suggestions:

1) Write a custom .dll to call the COM function.
2) Create and use the COM objects directly in InstallScript.

If you don't like writing complicated C++, you should do the second one.


kirann_hegde

kirann_hegde
  • Full Members
  • 93 posts

Posted 02 December 2009 - 05:43

Thanks guys. String seems to be working for me.