cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
avudaithangam
Level 5

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
Macintosh
Level 5

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
avudaithangam
Level 5

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

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
Macintosh
Level 5

0 Kudos
SunnyBoy
Level 6

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
RobertDickau
Flexera Alumni

0 Kudos
avudaithangam
Level 5

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