Skip to content

Commit 6e366cd

Browse files
Modify path DaprRoot add the SystemDrive environment variable (dapr#989)
* Modify path DaprRoot add the SystemDrive environment variable Signed-off-by: HueiFeng <[email protected]> Signed-off-by: hueifeng <[email protected]> * Update installdaprwin.yml Signed-off-by: hueifeng <[email protected]> * Update README.md Signed-off-by: hueifeng <[email protected]> Co-authored-by: Mukundan Sundararajan <[email protected]>
1 parent 9c8de2c commit 6e366cd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/installdaprwin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
uses: Amadevus/[email protected]
4949
with:
5050
script: |
51-
$Env:Path += ";c:\dapr"
51+
$Env:Path += ";$Env:SystemDrive\dapr"
5252
$output=dapr --version
5353
$runtimeVerified = False
5454
$cliVerified = False

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Note, if you are a new user, it is strongly recommended to install Docker and us
2525

2626
**Windows**
2727

28-
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
28+
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
2929

3030
```powershell
3131
powershell -Command "iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1 | iex"

install/install.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# ------------------------------------------------------------
1313
param (
1414
[string]$Version,
15-
[string]$DaprRoot = "c:\dapr",
15+
[string]$DaprRoot = "$Env:SystemDrive\dapr",
1616
[string]$DaprReleaseJsonUrl = "",
1717
[scriptblock]$CustomAssetFactory = $null
1818
)

0 commit comments

Comments
 (0)