cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
honolua
Level 7

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.
Labels (1)
0 Kudos
(1) Reply
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

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