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 sets a property only temporary?
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
Sep 09, 2009
07:03 AM
MsiSetProperty sets a property only temporary?
Hi everyone,
I have a weird problem:
During the UI sequence I have a CA that runs an installscript function. This function sets a property value accourding to some conditions. I use the method MsiSetProperty to do that and right after that I check the property value with MsiGetProperty to make sure everything's fine - and it is OK.
Later on in the Execute sequence I get the CustomActionData property (using again a CA) and parse it in a list. Thus I can read several properties at once. Among these several properties that I parse is the one I set up in the UI sequence.
UNFORTUNATELY the property has its default value and NOT the one I already wrote with MsiSetProperty, although I checked it right after setting it up and it was OK :confused:
Any idea what's happening there?
Thanks in advance
I have a weird problem:
During the UI sequence I have a CA that runs an installscript function. This function sets a property value accourding to some conditions. I use the method MsiSetProperty to do that and right after that I check the property value with MsiGetProperty to make sure everything's fine - and it is OK.
Later on in the Execute sequence I get the CustomActionData property (using again a CA) and parse it in a list. Thus I can read several properties at once. Among these several properties that I parse is the one I set up in the UI sequence.
UNFORTUNATELY the property has its default value and NOT the one I already wrote with MsiSetProperty, although I checked it right after setting it up and it was OK :confused:
Any idea what's happening there?
Thanks in advance
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 09, 2009
09:35 AM
I got this - properties get reset in the Execute sequence.
The property must be listed in the SecureCustomProperties property - then they pass on!
Thank you, Kathy!
The property must be listed in the SecureCustomProperties property - then they pass on!
Thank you, Kathy!