An example of this key is the value PendingFileRenameOperations under the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager, used to specify files to rename the next time the machine is restarted. REG_MULTI_SZ: Stores a list of non-empty list of elements, separated by the null character. REG_LINK: This is used to create symbolic links to other keys, specifying the root key and the path to the target key. REG_DWORD_BIG_ENDIAN: A 32bit unsigned integer (big-endian) REG_DWORD: A 32bit unsigned integer (little-endian) The Path environment variable defined in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment is a good example of a REG_EXPAND_SZ value. For example if the data stored is %TEMP%\myFolder, it will be automatically expanded to C:\Users\user\AppData\Local\Temp\myFolder when accessed while a regular REG_SZ value would have been resolved to just %TEMP%\myFolder. REG_EXPAND_SZ: This value is also intended to hold string values but in addition allows them to contain environment variables, which will be expanded when reading the data. REG_SZ: Used for string values, for example paths. REG_NONE: Data without type defined, treated as binary information. HKEY_CURRENT_CONFIG: Contains information about the hardware profile used by the computer at boot time. If a value is defined in both, the one in HKCU\Software\Classes is used so per-user configuration always takes precedence.
Installbuilder get environment variable windows#
From Windows 2000, this key is a mix of the values in HKCU\Software\Classes and HKLM\Software\Classes. HKEY_CLASSES_ROOT (HKCR): Contains information about registered applications such as file associations. The same information is stored in both keys and writing in one of them automatically updates the other. It is not a real key but a link to the appropriate subkey inside HKEY_USERS. HKEY_CURRENT_USER (HKCU): This key contains information about the current logged-in user. HKEY_USERS (HKU): Contains all the user profiles configuration in the system. This makes the detection of existing installations of your product a trivial task using InstallBuilder registry actions. This subkey is especially useful to store per-application information such as the version installed and the installation directory.
Installbuilder get environment variable software#
One of its subkeys, HKLM\SOFTWARE, contains information about the software in the machine organized by vendor (including Microsoft, for Windows itself). HKEY_LOCAL_MACHINE (HKLM): This key contains information about the configuration of the system that is common for all users.