EN RU
Log in
Home
Download
Purchase
Documentation
Support
Contact us
 
Help  /  Command Reference  /  Registry & INI

Registry - Get Value

Gets a value from the Registry. This command obtains a value from the registry on a user's machine and assigns the value to a variable.

Description
Optionally, you may add comments here describing the purpose of this element.

Root Key
Select one of the root Registry keys.

Subkey
The name of the Registry subkey.

Software\My company\#appname# 
Registry - Get Value command
Registry - Get Value command

Value Name
The name of the subkey value, from which the value should be taken. If the name is not specified, the "(default)" subkey value will be taken.

Variable Name
The name of the variable , to which the Registry key value will be written.

Default Value
This value will be assigned to the variable if no Registry value can be obtained.

If Condition
You can specify a condition that should be met for the action to be performed. If the condition is false then the command is skipped. See How to use If Condition for more details.

Comment
You can add a comment for this setting here.

Access a 64-bit key (KEY_WOW64_64KEY)
Checked => Enable the setup to access redirected keys in the 64-bit registry view.

It is necessary to note that if you enter read or write in the registry key HKEY_CURRENT_USER, it will be written to the user HKEY_CURRENT_USER, who launched the installation. If the user has administrator rights, the current user username and the user, who launched the installation originaluser will be the same and writing will occur direclty to HKEY_CURRENT_USER. Let's look at a situation, when the user User does not have administrator rights. In this case, it is necessary to switch into administrator mode as an administrator, for example, Administrator. Accordingly, the variable originaluser will equal User, and username will equal Administrator. The registry root HKEY_CURRENT_USER corresponds to Administrator/HKEY_CURRENT_USER. If we don’t take this situation into consideration, after the installation and launch of a program by a user User, the program won't see the data it wrote to Administrator/HKEY_CURRENT_USER. CreateInstall considers this possibility, so all calls to HKEY_CURRENT_USER are redirected to User/HKEY_CURRENT_USER for correct future functioning of the program being installed.

See also

  • Wow64Redirection On/Off
Eonza automation software - free, open source cross-platform program for easy creation and management of scripts.
  • Command Reference
    • Application
    • Dialogs
    • Files
    • Internet
    • Messages & Sound
    • Programming
    • Register DLL & Fonts
    • Registry & INI
      • Global Environment - Append
      • Global Environment - Delete Path
      • Global Environment - Get
      • Global Environment - Set
      • INI File - Delete
      • INI File - Formatting
      • INI File - Get Value
      • INI file – Insert text
      • INI File - Set Value
      • Import .REG File
      • Registry - Delete
      • Registry - For Each
      • Registry - Get Value
      • Registry - Set Value
    • System
    • Text Files
    • Uninstaller
    • Variables
Copyright © Novostrim, OOO, 2009-2026 All rights reserved.