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

Pass MSI Handle in .exe CA


2 replies to this topic

nyj192

nyj192
  • Members
  • 1 posts

Posted 09 May 2001 - 15:57

Hi, there,

I tried to set a property by running a C++ CA. But MsiSetProperty needs a MSI handle of running installation. Is there any msi function or the like I can get and pass the handle of installing package? Any suggestions will be greatly appreciated!

John


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 May 2001 - 16:25

Quotes from topic "How do I access the current installer session from inside a custom action?" in MSI.CHM:

Non-deferred custom actions that call dynamic-link libraries or scripts may access a running installation to query or modify the attributes of the current installation session. ... You cannot access the current installer session from custom actions that call executable files launched with a command line, for example Custom Action Type 2 and Custom Action Type 18.