Passing multiple properties

Hey All,

I’ve used the search and tried multiple different ways to do this based on other answers but not getting anywhere; Trying to pass multiple properties to a msi but it errors everytime. any help greatly appriciated

Execute-MSI -Action 'Install' -Path "$dirFiles\Dragon 15.msi" -Parameters "SERIALNUMBER="'0000000000'"", "REMOVEOLDPROD="'1'"", "REBOOT="'ReallySuppress'"", "REGION="'UK'"", "INSTALLDIR="'C:\Program Files (x86)\Nuance\NaturallySpeaking15}'""

Once between the " ", the syntax is the same as CMD or Run prompt:

Execute-MSI -Action 'Install' -Path "$dirFiles\Dragon 15.msi" -Parameters "SERIALNUMBER=0000000000 REMOVEOLDPROD=1 REBOOT=ReallySuppress REGION=UK INSTALLDIR=`"C:\Program Files (x86)\Nuance\NaturallySpeaking15`" "

FYI: To post code I use three back-tick ``` on the line above and after the code block


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.