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
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Get all the User Defined Variables
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
‎Jan 05, 2012
10:44 AM
Get all the User Defined Variables
Do we have any option to get the list of user defined variables used in the project?
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 06, 2012
12:09 AM
You can find them under Project >> Variables >> Variables >> User Defined Variables. You need to scroll down till the end to get those variables list.
--Mac
--Mac
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 06, 2012
02:11 AM
Yes Mac. I am aware of it. Do we have any option to get them through a custom code?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 06, 2012
03:06 AM
Not sure. But I know there is a "Output debug Information" function using which I get the list of all variables and their values.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 06, 2012
03:17 AM
search here http://helpnet.flexerasoftware.com/robo/projects/ia2011api/javadoc/index.html?com/zerog/ia/api/pub/package-summary.html if you can find the solution.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 06, 2012
04:53 AM
getVariable
java.lang.Object getVariable(java.lang.String var)
Returns the value of the named variable. If no variable is defined for that name, returns null.
--------------------------------------------------------------------------------
getVariables
java.util.Enumeration getVariables()
Returns an enumeration with the name of all installer variables.
These methods are present in VariableAccess Interface
Regards
SunnyBoy
java.lang.Object getVariable(java.lang.String var)
Returns the value of the named variable. If no variable is defined for that name, returns null.
--------------------------------------------------------------------------------
getVariables
java.util.Enumeration getVariables()
Returns an enumeration with the name of all installer variables.
These methods are present in VariableAccess Interface
Regards
SunnyBoy
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 06, 2012
08:02 AM
Please see this old newsletter tip for an example: http://www.flexerasoftware.com/webdocuments/PDF/nl_tip_DEV_IA_show_all_variables.pdf.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 09, 2012
07:27 AM
Thank you everyone. But all your suggestions are to return all the installAnywhere variables and what i require is only the user defined variables which are set in the installer. Through a customcode I am trying to get only the user defined variables.