cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Alex_LucID
Level 3

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
Labels (1)
0 Kudos
(4) Replies
Kelter
Level 10

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.
0 Kudos
Alex_LucID
Level 3

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.
0 Kudos
Kelter
Level 10

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.
0 Kudos
Alex_LucID
Level 3

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