# MSI Parameters getting error

**URL:** <https://discourse.psappdeploytoolkit.com/t/msi-parameters-getting-error/2922>\
**Category:** General Discussion\
**Created:** [October 21, 2020, 2:20am UTC](https://discourse.psappdeploytoolkit.com/t/msi-parameters-getting-error/2922 "2020-10-21T02:20:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Th3C00k1M0nst3r](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.psappdeploytoolkit.com/th3c00k1m0nst3r/32/519_2.png) [@Th3C00k1M0nst3r](https://discourse.psappdeploytoolkit.com/u/Th3C00k1M0nst3r)\
**Post date:** [October 21, 2020, 2:20am UTC](https://discourse.psappdeploytoolkit.com/t/msi-parameters-getting-error/2922/1 "2020-10-21T02:20:17Z")

</div>

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

> [@Using a PROPERTY with Execute-MSI](https://discourse.psappdeploytoolkit.com/t/using-a-property-with-execute-msi/1809/3):
>
> For the sake of completion: The issue here is that -Arguments doesnt exist for this function. We use -Parameters and -AddParameters. You used them incorrectly. -Parameters replaces the config file parameters for msi, -AddParameters appends to them. #Since -Parameters and -AddParameters are string arrays you can specify one string like this: Execute-MSI -Action Install -Path 'NameofMSIFile.msi' -Parameters "PROPERTY=`“value`” PROPERTY2=`“value`”" #Or an array like this: Execute-MSI -Action Inst…

by following the above  
`Execute-MSI -Action 'Install' -Path '$dirFiles\WinAgent64bit\WinAgent64bit.msi' -Parameters "SERVERURL=`“[http://CISFORCOOKIE.COCKIE.com:4884/AppServer`](http://CISFORCOOKIE.COCKIE.com:4884/AppServer%60)” SRVPOLTMPL=`"00000-0000-0000-0000-000000000`""`

the PArameter is this:  
SERVERURL=“[http://CISFORCOOKIE.COCKIE.com:4884/AppServer](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

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/psappdeploytoolkit/original/1X/b43cb6197f36a680291ac3ccde310d6c91b61ff6.png)

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.

---

<div class="post-metadata">

**Author:** ![luki1412](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.psappdeploytoolkit.com/luki1412/32/630_2.png) [@luki1412](https://discourse.psappdeploytoolkit.com/u/luki1412)\
**Post date:** [October 21, 2020, 5:17am UTC](https://discourse.psappdeploytoolkit.com/t/msi-parameters-getting-error/2922/2 "2020-10-21T05:17:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![luki1412](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.psappdeploytoolkit.com/luki1412/32/630_2.png) [@luki1412](https://discourse.psappdeploytoolkit.com/u/luki1412)\
**Post date:** [January 7, 2021, 10:48am UTC](https://discourse.psappdeploytoolkit.com/t/msi-parameters-getting-error/2922/3 "2021-01-07T10:48:44Z")

</div>


