Reputation: 1
I'm doing a script in PowerShell and I have to install the administration console. I have two installers, .msi and .exe for this one.
My script has to install it and it can't do it because the script stops when the installation GUI appears.
I was reviewing some webpages and I noticed something about silent mode so I try with this script
$pathvargs = {C:\_projects\xxxx\Current\Deployment\SupplementalInstalls\Administration\setup.exe /S /v/qn }
Invoke-Command -ScriptBlock $pathvargs
but a Windows Installer popup thrown explaining me how are the commands for a windows installation, so I try with these scripts too:
$product = [WMICLASS]"\\MyMachine\ROOT\CIMV2:win32_Product"
$product.Install("C:\_projects\xxxx\Current\Deployment\SupplementalInstalls\Administration\AdminConsole.msi")
Start-Process -FilePath "C:\_projects\xxxx\Current\Deployment\SupplementalInstalls\Administration\setup.exe" -ArgumentList "/S /v/qn"
Same windows installation poop up appears.
I can't install the administration console using my script, can anyone help me?
Upvotes: 0
Views: 720
Reputation: 1076
If you have the MSI, do it through MSIExec.exe
in Powershell, i.e.:
Invoke-Expression "msiexec.exe /i 'C:\_projects\xxxx\Current\Deployment\SupplementalInstalls\Administration\AdminConsole.msi' /quiet /norestart /L 'install.log'" -ErrorAction Stop
Upvotes: 1