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
- :
- CustomActionData and a custom property
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
‎Nov 23, 2009
11:24 AM
CustomActionData and a custom property
Hi,
I have my version of a SetupType dialog that has three options:
- Standalone
- NetworkApplication
- NetworkClient
A property (to manage this radio group) is called _IsSetupTypeMin.
How can I pass this property to a CustomActionData property so I could access setup type property in my InstallScript custom action?
I know how to pass for example an INSTALLDIR property - it works great. But what about a custom property - _IsSetupTypeMin for example?
Cheers,
Alex
I have my version of a SetupType dialog that has three options:
- Standalone
- NetworkApplication
- NetworkClient
A property (to manage this radio group) is called _IsSetupTypeMin.
How can I pass this property to a CustomActionData property so I could access setup type property in my InstallScript custom action?
I know how to pass for example an INSTALLDIR property - it works great. But what about a custom property - _IsSetupTypeMin for example?
Cheers,
Alex
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 23, 2009
02:31 PM
you can pass any property into CustomActionData, so your custom property will work just as well. My "Set a property" events that set the customactiondata for any of the deferred custom actions pass properties like this:
[CODE]
INSTALLDIR=[INSTALLDIR];APPDATA=[LocalAppDataFolder];RF=[ISReleaseFlags];_IsSetupTypeMin=[_IsSetupTypeMin]
[/CODE]
I've created some InstallScript functions which facilitate getting values out of the delimited list.
[CODE]
INSTALLDIR=[INSTALLDIR];APPDATA=[LocalAppDataFolder];RF=[ISReleaseFlags];_IsSetupTypeMin=[_IsSetupTypeMin]
[/CODE]
I've created some InstallScript functions which facilitate getting values out of the delimited list.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 24, 2009
06:47 AM
Thanks this works great!
but I have another problem - where should I place my SetProperty custom action?
I placed it after InstallInitialize and my _IsSetupTypeMin has always a default value (Standalone) in CustomActionData property. even when user selects NetworkInstall for example.
but I have another problem - where should I place my SetProperty custom action?
I placed it after InstallInitialize and my _IsSetupTypeMin has always a default value (Standalone) in CustomActionData property. even when user selects NetworkInstall for example.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 24, 2009
09:27 AM
my "set a property" actions that set the CA data for a deferred execution CA are sequenced just before their respective deferred actions*.
on that note, my other set a property CAs are sequenced after their data are known, and my set a directory CAs are all sequenced after costfinalize.
----------
*"Set a prop" actions are immediate execution actions, so they will run while the setup script is being written. this implies that the values being passed via "CustomActionData" are the values that exist before the actual execution of the script. See http://www.installsite.org/pages/en/isnews/200108/index.htm for more on sequencing CAs.
on that note, my other set a property CAs are sequenced after their data are known, and my set a directory CAs are all sequenced after costfinalize.
----------
*"Set a prop" actions are immediate execution actions, so they will run while the setup script is being written. this implies that the values being passed via "CustomActionData" are the values that exist before the actual execution of the script. See http://www.installsite.org/pages/en/isnews/200108/index.htm for more on sequencing CAs.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 27, 2009
06:48 AM
Kelter wrote:
my "set a property" actions that set the CA data for a deferred execution CA are sequenced just before their respective deferred actions*.
on that note, my other set a property CAs are sequenced after their data are known, and my set a directory CAs are all sequenced after costfinalize.
----------
*"Set a prop" actions are immediate execution actions, so they will run while the setup script is being written. this implies that the values being passed via "CustomActionData" are the values that exist before the actual execution of the script. See http://www.installsite.org/pages/en/isnews/200108/index.htm for more on sequencing CAs.
Thanks, added second property and SetProperty custom action at start and then used it in my main Custom SetProperty - works great 🙂
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)