'How to run a msi file in powershell by passing a key in it
I have downloaded the msi file to desktop. C:\Users\Administrator\Desktop\package.msi. I am trying to run this msi file through powershell.
when running this msi file manually it will ask for a Devicekey by passing the key this will install but I need to do this in powershell command.
I tried using msiexec but cannot able to pass key in it. Is there any command to run a msi file by passing a key in it.
The Command I tried is: msiexec.exe /i Site24x7WindowsAgent.msi EDITA1=bhuihij5422ed58c7fdcb9dtfhgh ENABLESILENT=YES REBOOT=ReallySuppress DN="Windows Monitor" TP="sample Server" RP="oneMin" NP="Notification 1" GN="sample group" RULE="production servers" /qn This command is not working. Don't know about the exit code. But a window popsup [Windows Installer]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
