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.

How do I get MSI handle?
Started by
finnavear
, Jun 22 2005 16:56
5 replies to this topic
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.
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.
Posted 22 June 2005 - 17:31
I believe the hMSI is automatically set by installshield, it's the handle of the running instalaltion.
Stefan Krüger
InstallSite.org twitter facebook
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.
I'm just stuck now on how I can add a Property name to my combo box.
Posted 27 June 2005 - 11:40
You can specify the property that is associated with your combo box in the dialog editor.
Stefan Krüger
InstallSite.org twitter facebook
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.
Stefan Krüger
InstallSite.org twitter facebook