0

I am trying to write a powershell script to install an MSI file with a few parameters. I was told the MSI file needs the following parameters: /qn SERVICE_URL="https://.....com/InstallerServer" SSL="1"

I took a stab at it, but it failed. Can someone offer some advice?

This is what I tried:

Execute-MSI -Action Install –Path 'InstallerService.msi'-Parameters "/QN /SERVICE_URL=https://…..com/InstallerServer /SSL=1"
1
  • What is Execute-MSI? What code is it running? Commented Feb 21, 2018 at 17:56

1 Answer 1

1

The variable $Installer takes the full path to the msi and $Arguments - well - your arguments

$Installer = 'C:\install\InstallerService.msi'
$Arguments = '/qn SERVICE_URL="https://.....com/InstallerServer" SSL="1"'
Start-Process -FilePath $Installer -ArgumentList $Arguments

you could add the switch -Wait to not just start the process but wait until it's completed (if you want to perform further actions after its execution) like so:

Start-Process -FilePath $Installer -ArgumentList $Arguments -Wait
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.