Skip to main content

Apply HKCU Registries to All Users

Use this predefined action to write HKEY_CURRENT_USER (HKCU) registry entries to every existing user profile and to the default user profile during a SYSTEM-context installation.

This lets you deliver per-user settings even when the MSI runs under SYSTEM, which is common in enterprise deployments.

Master Packager Advanced Editor - Predefined Custom Actions - Apply HKCU Registries to All Users

When to Use It

Use this action when application settings stored in HKCU must be applied consistently for all users, including users who sign in after the installation is complete.

Registry Data Format

You can import a .reg file or enter the registry data manually. Use the following format:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\SomeKey]
"SomeValue"="1"

Provide Registry Data

OptionDescription
Browse HKCU .REG FileImports registry data from a .reg file.
EditOpens the editor so you can enter or paste registry data manually.
Registry PreviewLets you review the parsed entries before saving the action.

Steps

  1. Open the MSI or MST in Master Packager.
  2. In the left pane, select Custom Actions.
  3. Open the Predefined Actions tab.
  4. Click Add New Predefined Action and select Apply HKCU Registries to All Users.
  5. Add the registry data by using Browse HKCU .REG File or Edit.
  6. Review the entries in Registry Preview to confirm they are correct.