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:
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?
Thank you very much for the help! Now I’ve managed to run the command.
It seems that I had an extra space in the naming of the folder used as TARGETDIR. Unlike CMD, PowerShell did interpret it wrong, although the path was inside
quotation marks.
In other words, the command that I’ve used was something like:
msiexec /a Application.msi /qn TARGETDIR=“C:\Users\UserName\Desktop\Folder Name”