dapr install non-admin mode on windows (#2540)

* dapr install non-admin mode on windows

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* addressing review comment

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

Co-authored-by: Mark Fussell <markfussell@gmail.com>
This commit is contained in:
Pravin Pushkar 2022-06-24 08:14:34 +05:30 committed by GitHub
parent d522e47b86
commit 6f13690ae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -51,10 +51,11 @@ powershell -Command "iwr -useb https://raw.githubusercontent.com/dapr/cli/master
#### Install without administrative rights #### Install without administrative rights
If you do not have admin rights, you can install Dapr to an alternate directory via the `DAPR_INSTALL_DIR` environment variable. If you do not have admin rights, you can install Dapr to an alternate directory via the `DAPR_INSTALL_DIR` environment variable. The script below creates the directory if it does not exist.
```powershell ```powershell
$script=iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1; $block=[ScriptBlock]::Create($script); invoke-command -ScriptBlock $block -ArgumentList "", "$HOME/dapr" $Env:DAPR_INSTALL_DIR = "<your_alt_install_dir_path>"
$script=iwr -useb https://raw.githubusercontent.com/dapr/cli/master/install/install.ps1; $block=[ScriptBlock]::Create($script); invoke-command -ScriptBlock $block -ArgumentList "", "$Env:DAPR_INSTALL_DIR"
``` ```
{{% /codetab %}} {{% /codetab %}}
@ -168,4 +169,4 @@ Flags:
Use "dapr [command] --help" for more information about a command. Use "dapr [command] --help" for more information about a command.
``` ```
{{< button text="Next step: Initialize Dapr >>" page="install-dapr-selfhost" >}} {{< button text="Next step: Initialize Dapr >>" page="install-dapr-selfhost" >}}