This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: MSiSetProperty does not set property from custom action install script
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2007
03:22 PM
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?
What I am doing wrong here?
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2007
07:02 PM
Are you trying to set a private property (using lower case letters) or public property (all uppercase)?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2007
08:03 PM
Or by "further in installation process", do you mean Deferred Execute Sequence?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 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?
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 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.
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 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.
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.
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 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
For more information on creating an MSI log file, please reference this article:
http://support.installshield.com/kb/view.asp?articleid=Q104807