PDA

View Full Version : MSiSetProperty does not set property from custom action install script



MiltonNet
06-29-2007, 03:22 PM
I have a entry point function which is associated with Custom actopn executed during install process. This function call MSISetProperty() to set property value. But the problem further in installation process, the value of this property which was set by above function is not seen.

What I am doing wrong here?

rchand445
06-29-2007, 07:02 PM
Are you trying to set a private property (using lower case letters) or public property (all uppercase)?

TsungH
06-29-2007, 08:03 PM
Or by "further in installation process", do you mean Deferred Execute Sequence?

rchand445
06-29-2007, 11:10 PM
Actually, to clarify the last reply are you trying to get the property value using a Deferred Execution Custom Action?

bryanwolf
07-02-2007, 08:01 AM
This article will likely explain more about the behavior you're seeing:
http://msdn2.microsoft.com/En-US/library/aa370912.aspx

Also - ensure you're not attempting to set a property within deferred context as was described above.

MiltonNet
07-03-2007, 07:52 AM
Thanks guys for the reply.

The property is un Uppercase ( has underscore eg. MY_PROPERTY).
I am not accesing the property in the Deffered action.

This property is set in my custom action function. This property I use in condition to launch SQL script. But this condition never evaluates to true doesn't matter what the value of property is. The condition is much simple i.e. MY_PROPERTY = 1
I am sure the custom action function sequence is called before the SQL script execution sequence becuase I have put the message box in the the function to test.

bryanwolf
07-03-2007, 08:25 AM
Could you post a log file?

For more information on creating an MSI log file, please reference this article:
http://support.installshield.com/kb/view.asp?articleid=Q104807