Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Powershell missing path

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:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

*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 "."'

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading