cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ChrisG2
Level 2

MsiGetProperty returns an empty string

I am busy upgrading from IS8 to IS2009. My scripts are not working correcly anymore. I discover that the MsiGetProperty doesnt return a value/string.


nvSize=255;
MsiGetProperty(hMSI , "DB_ORACLE_CREATIONFILES", szReturnValue, nvSize);
MessageBox (szReturnValue, INFORMATION);

Who knows the answer?

Chris
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

Where in your sequences or events are you calling MsiGetProperty? If it's an action or event scheduled for "deferred execution", you'll need to go through the "CustomActionData" property, about which see these forums and the online help.
0 Kudos
ChrisG2
Level 2

The property is in CAPS and should be public. In IS8 this property returns the correct value. In IS2009 it returns an empty string.

Chris
0 Kudos
RobertDickau
Flexera Alumni

Please see, for example, the help topic "Upgrading InstallShield 11.5 or Earlier Basic MSI Projects that Have InstallScript Custom Actions"; it explains how/why CustomActionData is used in this case...
0 Kudos