cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Get all the User Defined Variables

Do we have any option to get the list of user defined variables used in the project?
Labels (1)
0 Kudos
7 Replies
Highlighted
Pilgrim

Re: Get all the User Defined Variables

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

Get User Defined Variables

Yes Mac. I am aware of it. Do we have any option to get them through a custom code?
0 Kudos
Highlighted
Pilgrim

Re: Get all the User Defined Variables

Not sure. But I know there is a "Output debug Information" function using which I get the list of all variables and their values.
0 Kudos
Highlighted
Pilgrim

Re: Get all the User Defined Variables

0 Kudos
Highlighted
Pilgrim

Re: Get all the User Defined Variables

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
0 Kudos
Highlighted
Pilgrim

Re: Get all the User Defined Variables

0 Kudos
Highlighted

Get User Defined Variables

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