How to use spaces, '/' , '\' 'Single quote', "Double quote" inside a --package-parameters in Choco install command #2514
-
I am trying to install a MSI file by passing a parameters like below choco install Msiname --version '1.0.0' --package-parameters="'/filelocation:D:\Artifacts\MSIS\Server.msi' '/arguments:USERNAME=".\administrator"' " (this works fine), How can i solve this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is not a Chocolatey CLI issue. This is a shell issue. If you're using the PowerShell shell, then you need to properly escape those characters. |
Beta Was this translation helpful? Give feedback.
This is not a Chocolatey CLI issue. This is a shell issue. If you're using the PowerShell shell, then you need to properly escape those characters.
See scripting best practices.