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

How do I get MSI handle?


5 replies to this topic

finnavear

finnavear
  • Members
  • 5 posts

Posted 22 June 2005 - 16:56

A lot of functions of a .rul file I'm looking accepts the NUMBER, hMSI.
But in the file, there is no obvious use of MsiOpenPackage (or MsiOpenPackageEX) nor MsiCloseHandle to get the value of hMSI.

Code:
export prototype PrintLicenseAgreement(NUMBER);
...
function PrintLicenseAgreement(hMSI)
begin
...
end

Can someone explain to me how this works? The reason I'm asking this is because I want to use the MsiGetProperty function, and it requires the hMSI value.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 22 June 2005 - 17:31

I believe the hMSI is automatically set by installshield, it's the handle of the running instalaltion.

finnavear

finnavear
  • Members
  • 5 posts

Posted 23 June 2005 - 18:31

How do I get this handle to the running installation?

finnavear

finnavear
  • Members
  • 5 posts

Posted 23 June 2005 - 19:09

Actually, I think I've figured it out.
I'm just stuck now on how I can add a Property name to my combo box.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 27 June 2005 - 11:40

You can specify the property that is associated with your combo box in the dialog editor.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 27 June 2005 - 11:41

Opps, my previous reply applies to Basic MSI projects. In InstallScript MSI dialogs are script driven so I think you will need to get/set the property value using script.