I am trying to setup an array to install .msi applications with powershell. The only thing that is confusing me is how to tell it the MSI name and location.
Here is an example. The file will be located in C:\ (just an example) and the name will be test.msi
command line arguments needed.
/i, /qn, /norestart and file location.
sample code
$MSI = @( "/i" "how to set file location and name" "/qn" "/norestart" ) Start-process msiexec.exe -ArgumentList $MSI -Wait
I just don’t understand how to set the file location and name. this is of course just an example of some code.
I found this example of an arrary
$MSIArguments = @( "/i" ('"{0}"' -f $file.fullname) "/qn" "/norestart" "/L*v" $logFile
The (‘“{0}”’ -f $file.fullname) is confusing me in the post as they never explain this.
Any help would be appreciated.
Thank you