cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MiltonNet
Level 4

MSiSetProperty does not set property from custom action install script

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?
Labels (1)
0 Kudos
(6) Replies
rchand445
Level 5

Are you trying to set a private property (using lower case letters) or public property (all uppercase)?
0 Kudos
TsungH
Level 12

Or by "further in installation process", do you mean Deferred Execute Sequence?
0 Kudos
rchand445
Level 5

Actually, to clarify the last reply are you trying to get the property value using a Deferred Execution Custom Action?
0 Kudos
Not applicable

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.
0 Kudos
MiltonNet
Level 4

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.
0 Kudos
Not applicable

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
0 Kudos