Skip to main content

Copy to User Profile

Use this predefined action to copy a file or folder to every existing user profile during a SYSTEM-context installation.

The action also copies the item to the default user profile so new users receive it the first time they sign in.

Master Packager Advanced Editor - Predefined Custom Actions - Copy to User Profile

When to Use It

Use this action when you need to place per-user files, folders, templates, or shortcuts in locations such as Desktop, Documents, or AppData for all users.

Fields

FieldDescription
Action NameIdentifies the predefined action in your project.
SourceSpecifies the file or folder to copy.
DestinationSpecifies where the file or folder should be copied inside the user profile. Supported variables include %USERPROFILE%, %APPDATA%, and %DESKTOP%.
OverwriteReplaces existing files or folders at the destination when enabled.
Remove from default profile on uninstallRemoves the copied item from the default user profile during uninstallation when enabled.

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 Predefined Action and select Copy to User Profile.
  5. Enter a value in Action Name.
  6. Set Source to the file or folder that should be copied.
  7. Set Destination to the target location inside the user profile.
  8. Enable or disable Overwrite as needed.
  9. Enable or disable Remove from default profile on uninstall as needed.
tip

The selected file or folder is copied to all existing users on the target machine and to the default profile.