MSI Parameters getting error

Not to resurrect a dead horse… but I’m having problems

by following the above
Execute-MSI -Action 'Install' -Path '$dirFiles\WinAgent64bit\WinAgent64bit.msi' -Parameters "SERVERURL="http://CISFORCOOKIE.COCKIE.com:4884/AppServer" SRVPOLTMPL="00000-0000-0000-0000-000000000""

the PArameter is this:
SERVERURL=“http://CISFORCOOKIE.COCKIE.com:4884/AppServer” SRVPOLTMPL=“00000-0000-0000-0000-000000000”

I’m using the new version 3.8.3, I’m getting the below error. base on what I’m reading from the quoted post I think I have the correct syntax

I’m also looking at the PDF and do I need to transform the MSI in order to inject the parameters then?

Any help appreciated.

1 Like

If you use single quotes in poweshell, the string in between the quotes is taken as pure text. If you use double quotes, variables in the string get expanded. So in this case, just use double quotes for -Path.

1 Like