I am trying to run a command from PowerShell and it does not work, the result being only a Windows Installer window which explains the parameters of the command.
However, the same line does work when I run it from CMD.
The command that I’ve been trying to run from PowerShell is the following:
msiexec /a Application.msi /qn TARGETDIR=“C:\Users\UserName\Desktop\Folder”
First I thought that this is somehow related to permissions, but I am running PowerShell as admin and I’ve changed the ExecutionPolicy to unrestricted and the command still isn’t working. I have also tried to run this from a batch file without any luck.
Do you have any suggestion for making this running from PS?