If you are an application packager or IT pro who has found yourself in a situation where you need to copy a file in a per-user location to hundreds or thousands of target devices and wonder what is the best way how to do it, then this is a read for you.
Things to remember when copying files in per-user locations (if you are not using Master Packager software)
Use Master Packager.
In this example, we will show you how to copy Microsoft Team background to all users in their per-user location under the SYSTEM account that SCCM and Intune uses.
In General Information add application name, version, and vendor.
Make the add/remove programs appealing for the end-user and add Microsoft Teams icon for the MSI. Find Microsoft Teams icon here: "%localappdata%\Microsoft\Teams\app.ico".
Then click on "Change" button, browse for the ico file.
Pro tip! You can also choose exe or dll that contains icons to load them.
Get your file that you want to copy in a per-user location. In our example, it will be a custom Microsoft Teams background image.
Create a new folder under [ProgramFilesFolder] where to place the file.
Now the fun part. Add the predefined custom action that will do all the magic.
In the source section click on 3 dots and choose the file you wish to copy to the per-user location.
In the destination section paste the path where to copy the file after the C:\Users\<username>.
For Microsoft Teams background it is “AppData\Roaming\Microsoft\Teams\Backgrounds\Uploads"
You can now save the MSI and use it for SCCM or Intune deployments to see how good it works.
Using Master Packager to copy files (we also support HKCU registry application) to a per-user location has the following benefits:
Please consider supporting us by purchasing Master Packager Profesional version that includes more advanced features including Master Repackager that can convert the most complex EXE applications to the MSI format.