Today, I saw the news that Microsoft launched the Azure Developer CLI tool (preview version), so I immediately installed it and played it. During the installation process, I found that he used PowerShell to write the PATH
environment variable, so I parsed the installer. I found that a Code Snippet is quite useful, and it can be used directly when writing installation programs in the future.
… continue reading …
This article is reprinted from https://blog.miniasp.com/post/2022/07/15/How-to-write-PATH-user-environment-variable-using-PowerShell
This site is for inclusion only, and the copyright belongs to the original author.