Use properties set with CA in execute sequence in InstallScript UI
Posted 02 April 2014 - 15:46
I'm setting a property with a "Set Property" Custom Action during the execute sequence. I confirmed that this works fine by looking at the log. I now want to use this property at the end of the UI sequence, specifically in the "OnFirstUIBefore" function of the InstallScript for the UI. Using MsiGetProperty there just returns the default value of the property and NOT the value I set with the afore mentioned Custom Action during the execute sequence.
Can anyone explain to me what causes this behaviour and how I could solve the problem?
Thanks a lot,
Posted 09 April 2014 - 11:57 Best Answer
Property changes in the Execute sequence are not copied back to the UI sequence. This is a Windows Installer limitation. You could store the value elsewhere (temporary file, registry) and read it in UI sequence.