Moving a file in to User Context, while a System context installation - Advanced Installer Community
knimat
Posts: 2
Joined: Thu May 22, 2025 3:43 am

Moving a file in to User Context, while a System context installation

We have an MSI that installing our software in system context, via InTune. We have one of our file that is suppose to go to "C:\Users\<username>\AppData\Roaming\Microsoft\Word\STARTUP". Microsoft word only picks up this particular file only from this location(MS Word default behavior). We have set this location from the Files and Folders section as attached image. Also we have set our installation Type to "Per machine if user is administrator, peruser otherwise" from install parameters(Refer to the attached image). Our problem is, since the customer is installing this in system context, this particular file goes to "C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\Word\STARTUP\MT6SDK64.dot"
Is there a way, we can make this file to go to user folders in all occurrences?
Attachments
Screenshot 2025-05-29 160834.png
Screenshot 2025-05-29 160834.png (47.51 KiB) Viewed 2306 times
Screenshot 2025-05-29 153939.png
Screenshot 2025-05-29 153939.png (55.31 KiB) Viewed 2306 times
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: Moving a file in to User Context, while a System context installation

Hello,

If you run this under the SYSTEM account, then the redirection is normal.

What we can try to do here, although not sure it will work, is to create a Custom Action that gets the logged in user and its AppData folder and copy the files there.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”