shaun1979in
Posts: 8
Joined: Mon Jul 10, 2006 2:12 pm

Custom Action Variables

Is it possible to get/set variables of one custom action through another custom action? Just to elaborate it further we have a vbs file in an action where we are intializing a varaible and in another action we want to access that variable in our vbs file.

Is there any global property to achieve this or some other way of doing the same thing...?

Eagerly awaiting your response.... !

Best Regards
Shaun
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

To get the value of a property use Session.Property("PROPERTY_NAME"). To set a value to a property use Session.Property("PROPERTY_NAME") = "Value". Note that only public (in upper case) properties are available from UI sequence to the Execute sequence.

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
shaun1979in
Posts: 8
Joined: Mon Jul 10, 2006 2:12 pm

Custom Action Variables

Hi,

I have tried doing what you have suggested but still i am not abe to achieve the desired result.

Let me explain in a diffferent way what i am trying to achieve...that may be helpful for you to get sense of the exact issue i am facing. We have Advanced Installer 2.6.5 Professional Version at our end.

Basically i have three set of features which gets installed depeding upon the install Type Choosen by the User. Like if he chooses 'Typical' install then certain set of features should get installed and when he chooses 'Complete' Install, then another set of features should get installed.

Now my problem is i am unable to store which SetUp Type user has choosen and thus which set of feautres should get installed.

Can you suggest some way of doing this?

Thanks for your wise and timely suggestions that have helped me so far..

Regards
Shaun
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Condition your custom action with this:

Code: Select all

(Not Installed) AND INSTALLLEVEL = 3
With this Condition your custom action will be executed if you choose "Typical". If you want your CA to be executed when you choose "Complete" then use following condition:

Code: Select all

(Not Installed) AND INSTALLLEVEL > 3
Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
shaun1979in
Posts: 8
Joined: Mon Jul 10, 2006 2:12 pm

Custom Action Variables

Hi,

Thanks for your timely support. I think this will definitly work for me.


With Best Regards
Shaun

Return to “Common Problems”