I made a NSIS installation program which fire some Powershell commands. I have the following
powershell -ExecutionPolicy Bypass Set-ItemProperty "HKCU:\Control Panel\International" -Name "sDecimal" -Value "."
as I want to change the decimal separator from "," to "."
If I fire that command I got an error:
*A positional parameter cannot be found that accepts argument ‘Panel\International’. *
But if I open the Registry Editor, that path exists. Any hints?
>Solution :
You are in CMD. You should encapsule the powershell command in single quotes, otherwise CMD doesn’t realizes it’s all the same command.
powershell -ExecutionPolicy Bypass 'Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name "sDecimal" -Value "."'