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: CustomActionData Lifespan
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
May 18, 2009
11:54 AM
CustomActionData Lifespan
Project Type: Basic MSI
What is the lifespan of the CustomActionData variable? We have some values pushed into it. During one of our Execute sequence CA's (after RemoveODBC) the values are present. During the next CA (after DuplicateFiles) the values are gone. We're using Chris Painter's MsiGetCustomActionDataAttribute() to decode the string. I've added a MessageBox to display the entire buffer just to verify what's in there at a given point. Either the value is getting clobbered during the Execute sequence or we're trying to use it after it's been disolved.
What is the lifespan of the CustomActionData variable? We have some values pushed into it. During one of our Execute sequence CA's (after RemoveODBC) the values are present. During the next CA (after DuplicateFiles) the values are gone. We're using Chris Painter's MsiGetCustomActionDataAttribute() to decode the string. I've added a MessageBox to display the entire buffer just to verify what's in there at a given point. Either the value is getting clobbered during the Execute sequence or we're trying to use it after it's been disolved.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 18, 2009
04:57 PM
CustomActionData is scoped per deferred custom action. That means you need to have one immediate custom action that sets up custom action data for each deferred custom action that needs to access CustomActionData.
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)