I am having an issue with Windows Installer popup when running my script.
My script
function InstallMyMsi {
$File='C:\\my\\path\\my msi file.msi'
$DT = Get-Date -Format "yyyyMMdd_HHmm"
$Log = "C:\\my\\other_path\\Log_$DT.log"
$Params = "/L*V $Log", '/i', $File, '/qn!', '/quiet', '/passive'
$p = Start-Process `
'msiexec.exe' `
-ArgumentList $Params `
-NoNewWindow `
-Wait `
-PassThru
return $p.ExitCode
}
InstallMyMsi
I have tried different combinations of arguments with no luck.
Any ideas?
Edit: The file name of the msi contains space. I have edited that part, could this be the cause of the issue?