Hi All,
Below is the PowerShell code for Bulk installing MSIs in a server
$MSIArray=get-childitem -Path ‘D:\MSIs\’ -Recurse -Filter *.msi # Folder where your MSIs present.
$LogFilepath=”D:\MSIs\Logs’
if(!(Test-Path $LogFilepath))
{
New-Item -ItemType directory -Path $LogFilepath
}
foreach ( $MSI in $MSIArray)
{
$MSISourcePath=$MSI.fullname
$AppName=$MSI.BaseName
$AppLogFilepath=$LogFilepath+"\"+$AppName+".txt"
$Ilist =
@(
"/I `"$MSISourcePath`"", # Install this MSI
"/QN", # Quietly, without a UI
"/L*V `"$AppLogFilepath`"" # Verbose output to this log
)
$InStallStatus =Start-Process -FilePath "msiexec" -ArgumentList $Ilist -Wait
}
You can install the MSIs by executing the above script.
Regards,
Chaitanya