EN RU
Log in
Home
Download
Purchase
Documentation
Support
Contact us
 
Help  /  Problem solving

Superposition of variables

Consider the situation where you have two variables, one of which contains the name of another variable.

varA = Test text
varB = varA

How can we turn to the variable varB and receive the value of the variable varA. If we write ##varB##, we obtain #varA#. It is also possible that you have a set of variables with the same prefix or suffix, and you need to get the value of the corresponding variable. For example, how do we get #[my#var#]# from the variables below?

myOrange = Test message Orange
myApple = Test message Apple
myLemon = Test message Lemon
var = Apple
List of variables
List of variables

Unfortunately, it is not possible to write #[my#var#]#, but the Set Variables command has the Use Superposition checkbox. If this checkbox is checked, then the installation takes the value of variable with the name that is specified in the value. In the first case, we need to check such a checkbox when you assign the varB variable.

Superposition of the varB variable
Superposition of the varB variable

In the second case, we need to use an additional variable myvar with the value my#var#. After that, the values of these variables are, respectively, Test text and Test message Apple.

Superposition of the myvar variable
Superposition of the myvar variable
Eonza automation software - free, open source cross-platform program for easy creation and management of scripts.
  • Help
    • Introduction
    • Get to know CreateInstall
    • Compare installers
    • License Agreement
    • License Light
    • License Free
    • Program features
    • Command Reference
    • FAQ
    • Examples & tips
    • CreateInstall Assistant
    • Problem solving
      • Cannot add resource file
      • How to install font
      • Language resources
      • Registry redirect
      • Superposition of variables
      • Creating a restore point
    • Setup Extractor
Copyright © Novostrim, OOO, 2009-2026 All rights reserved.