Skip to content

Read an Entry from the Registry

Lets you retrieve information from the Windows Registry. You can for example read information such as the user’s name or the destination directory for your files.

Property NameData TypeDescription
AccessregaccessRequest access to the 32-bit or 64-bit Windows Registry view. Please refer to the paragraph entitled Accessing an Alternate Registry View. Default is regaDefault
IdentStringThe named entry within the registry key. Leave this field blank to read the default value associated to the key.
KeyStringThe key name of the registry entry. Like SOFTWARE\My App
RootKeyhkKeysThe base key of your registration entry. There is a defined set of Base Keys from which you can choose in the list box.
VariableVarNameThe name of the variable whose value will be set to what has been read. If the entry is not found, a blank value is returned.

Paquet Builder can read the following entry types:

  • REG_SZ
  • REG_EXPAND_SZ
  • REG_DWORD
  • REG_QWORD

It automatically converts them to string values when storing them in variables.

You can use the feature to read the default destination path from the Windows Registry. However do not assign the path to the %DESTPATH% variable which is read-only. First read the path to a specific variable like %MYPATH% and then in the default destination folder field, enter %MYPATH%. For more information about setting the destination folder, please click here.