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
- :
- Only one CustomActionData?
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
‎Oct 04, 2007
04:57 PM
Only one CustomActionData?
I've read everything I can find on CustomActionData, as it seems to be one way to pass information from Immediate execution to Deferred execution.
a) Is this property limited to a single instance, or
b) Is there a way to retrieve more than one property in that manner?
If a) is the answer, what's a better way to pass information from Immediate to Deferred? Registry, XML file, environment variable?
a) Is this property limited to a single instance, or
b) Is there a way to retrieve more than one property in that manner?
If a) is the answer, what's a better way to pass information from Immediate to Deferred? Registry, XML file, environment variable?
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 05, 2007
07:27 AM
Hi dave,
b) is the answer. You can pass multiple Properties separated by semicola (or something else). In an Installscript CA you can use the Split-command to retrieve the separate values. See Macrovision Helpnet keyword "CustomActionData".
P.S. Somebody (I've forgotten who and where it was) has implemented a pattern in installscript by the which it is easy to store and retrieve Property-values in a CustomActionData.
Best regards, H.
b) is the answer. You can pass multiple Properties separated by semicola (or something else). In an Installscript CA you can use the Split-command to retrieve the separate values. See Macrovision Helpnet keyword "CustomActionData".
P.S. Somebody (I've forgotten who and where it was) has implemented a pattern in installscript by the which it is easy to store and retrieve Property-values in a CustomActionData.
Best regards, H.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 05, 2007
08:36 AM
The sample code is here:
http://www.installsite.org/pages/en/msi/ca.htm
Decode the CustomActionData Property in InstallScript
And to avoid any confusion: each deferred custom action has its own instance of CustomActionData. But each custom action has only one, so if you want to pass multiple data to one A then you need to pack and split them as heiner_violet described.
http://www.installsite.org/pages/en/msi/ca.htm
Decode the CustomActionData Property in InstallScript
And to avoid any confusion: each deferred custom action has its own instance of CustomActionData. But each custom action has only one, so if you want to pass multiple data to one A then you need to pack and split them as heiner_violet described.
Stefan Krueger
InstallSite.org
InstallSite.org
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 04, 2008
03:40 AM
Hi,
Is there an InstallScript code to split the Property Value and MsiGetProperty for each value (I have more the one value [VALUE1];[VALUE2];[VALUE3]) ?
In the Help there is only a VB Script.
Thanks,
Bianca
Is there an InstallScript code to split the Property Value and MsiGetProperty for each value (I have more the one value [VALUE1];[VALUE2];[VALUE3]) ?
In the Help there is only a VB Script.
Thanks,
Bianca
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 04, 2008
05:11 AM
Follow the link given by Stefan Krueger and unzip the file beneath "Decode the CustomActionData Property in InstallScript". This is an installscript sample to split a given CA Data.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 27, 2014
04:09 AM
Stefan Krueger wrote:
The sample code is here:
http://www.installsite.org/pages/en/msi/ca.htm
Decode the CustomActionData Property in InstallScript
And to avoid any confusion: each deferred custom action has its own instance of CustomActionData. But each custom action has only one, so if you want to pass multiple data to one A then you need to pack and split them as heiner_violet described.
Very helpful.
The understanding is that, the third parameter in MsiGetProperty function is of type string, where in this case we get the biiiiiig string -> list of properties separated by semicolons.
So, whatever the string maybe, we need to split it based on the delimiter.
---
Vijay kumar Anchuri