diff --git a/.github/workflows/installdaprwin.yml b/.github/workflows/installdaprwin.yml index 273a553d..90010f68 100644 --- a/.github/workflows/installdaprwin.yml +++ b/.github/workflows/installdaprwin.yml @@ -48,7 +48,7 @@ jobs: uses: Amadevus/pwsh-script@v2.0.1 with: script: | - $Env:Path += ";c:\dapr" + $Env:Path += ";$Env:SystemDrive\dapr" $output=dapr --version $runtimeVerified = False $cliVerified = False diff --git a/README.md b/README.md index 6d2d7732..9c495c5e 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Note, if you are a new user, it is strongly recommended to install Docker and us **Windows** -Install the latest windows Dapr CLI to `c:\dapr` and add this directory to User PATH environment variable. Use `-DaprRoot [path]` to change the default installation directory +Install the latest windows Dapr CLI to `$Env:SystemDrive\dapr` and add this directory to User PATH environment variable. Use `-DaprRoot [path]` to change the default installation directory ```powershell powershell -Command "iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1 | iex" diff --git a/install/install.ps1 b/install/install.ps1 index b8b51d2d..dfafe188 100755 --- a/install/install.ps1 +++ b/install/install.ps1 @@ -12,7 +12,7 @@ # ------------------------------------------------------------ param ( [string]$Version, - [string]$DaprRoot = "c:\dapr", + [string]$DaprRoot = "$Env:SystemDrive\dapr", [string]$DaprReleaseJsonUrl = "", [scriptblock]$CustomAssetFactory = $null )