t5 Add Registry Key

Top  Previous  Next

Lokas Software AWinstall Online Help
Start Page
Engine Functionality
Tasks and Actions
Installer Variables
Reading from Registry and Environment
Tips And Tricks
Frequently Asked Questions
Installer Actions
Extract Files with Folders
Register COM DLL
Register COM Type Library
Create Shortcuts and Start Menu Items
Register Fonts
Add Registry Keys
Add Keys from .reg file
Add Keys from System Registry
Run External Programs
Add Uninstall Shortcut
Setup Builder Interface
Main Windows
Property Pane
Project Tree
Event Log
Menu bar commands
File
Edit
View
Project
Task
Help
Toolbars
Standard
Actions
Extending your setups
Script Actions
Installer Object
AddRegKey Method
CancelInstall Method
CopyFile Method
CreateObject Method
CreateShortcut Method
RegisterFont Method
RegisterServer Method
RegisterTypeLib Method
RunProgram Method
ShowMessage Method
Variables Method
VersionMajor Property
VersionMinor Property
General Information
Product Registration
History of Changes
  download AWinstall

This action allows to write to System Registry during installation.

Warning: Editing the registry is an advanced topic that requires a good understanding of Windows internals and may potentially cause the customer's system to crash or became unstable. You should not attempt to specify registry modifications unless you understand what you are doing. Refer to Microsoft Windows® Platform SDK documentation for additional information about system registry.

Right-click on the task where you want to add registry key and select "Add Registry Key" menu item. The Add Registry Key dialog will appear.

addregkey

Root: the predefined system registry root. AWinstall supports the following roots:

HKEY_LOCAL_MACHINE

HKEY_CLASSES_ROOT

HKEY_CURRENT_USER

HKEY_CURRENT_CONFIG

Key: the registry key (including value name).

infoTip: To add unnamed (default) registry value, enter the key path without name (with trailing backslash character). For example: "Software\Microsoft\Windows\".

Type: one from the list of supported registry value types:

REG_SZ

REG_EXPAND_SZ

REG_DWORD

REG_MULTI_SZ

REG_BINARY

Value: the registry value. For string values, enter the string. For REG_DWORD values, enter the hexadecimal numeric value (for example, H72EDD43). For REG_BINARY values, enter the list of value bytes in hex format, delimited with ',' (for example, A5, 46, 00, 7B).

The manual adding of a big amount of registry keys can be a difficult task. You can save your time by importing registry keys from .reg files and existing system registry.

You can use installer variables in key strings and values (only for REG_SZ, REG_MULTI_SZ and REG_EXPAND_SZ registry types). Such variables will be expanded at install time to proper values.

© 2007 Lokas Software