I've googled and not found anything useful to me.
I have 4 msi files I want to install but would like to check if some of it is installed on the computer.
Example:
check if program 1 is installed, if not install it and go to and install program 2.
However if it's not installed, install it and go to program 2 and do the same test there.
Execute-MSI -Action Install -Path "$dirFilesProgram1"
Execute-MSI -Action Install -Path "$dirFilesProgram2"
Execute-MSI -Action Install -Path "$dirFilesProgram3"
Execute-MSI -Action Install -Path "$dirFilesProgram4"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…