Need to Install MSI on user profile from system context

Need to Install MSI on user profile from system context.
Please help.
Used Execute-ProcessAsUser for exe file but I am unable to find any option to run MSI

I think there is no native option to execute MSI in user context in the toolkit itself.

I did not test this myself, but may be this will do the job:

First make sure that the MSI you are using is able to install in user context without using PSAppDeployToolkit.
If you are sure the MSI will install with “normal user” context, you may try this:

Execute-ProcessAsUser -Path “msiexec.exe” -Parameters “/i $dirFiles\MyInstaller.msi /qn”

Replace MyInstaller.msi with the actual name of your msi file.

1 Like