Skip to content

Commit 8ab8e5b

Browse files
committed
non-admin DPM installation docs
1 parent c9df4ec commit 8ab8e5b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docs/src/public/configuration.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ DAML_PACKAGE allows running ``dpm`` commands in a package context wit
3636
DPM_SDK_VERSION allows overriding the SDK version being used. It's a global override that overrides the sdk version specified in any and all daml.yaml(s). It also overrides the SDK version used outside package or multi-package context. It doesn't affect the behavior of the `install` command(s)
3737
======================= ====================================================================================================================================
3838

39+
Additionally, DPM (and DPM's installation process) make use of the system's default temp directory.
40+
On Unix systems, it uses ``$TMPDIR`` if non-empty, else ``/tmp``.
41+
On Windows, it uses ``GetTempPath``, returning the first non-empty value from ``%TMP%``, ``%TEMP%``, ``%USERPROFILE%``, or the ``Windows`` directory.
42+
3943
Project Configuration
4044
*********************
4145

docs/src/public/manual-install.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,15 @@ Download and unpack the latest dpm sdk version's `archive (.zip) <https://get.di
5454

5555
.. code:: powershell
5656
57-
# Extract the downloaded zip ($ZIP_PATH) to temp directory
58-
$EXTRACTED = Join-Path "$env:TEMP" "extracted"
57+
# Extract the downloaded zip ($ZIP_PATH) to temp directory ($EXTRACTED)
58+
# Avoid using the system's temp directory as the user may not have rights to it
5959
New-Item -ItemType Directory -Path $EXTRACTED | Out-Null
6060
Expand-Archive -Path $ZIP_PATH -DestinationPath $EXTRACTED
6161
62+
# Optionally, override the TMP and DPM_HOME environment variable to point to directories other than the default,
63+
# as the user might not have rights to the default directories.
64+
# (You might also want to persist these variables as DPM uses them on every invocation)
65+
$env:TMP = "<user-owned temporary directory>"
66+
$env:DPM_HOME = "<user-owned directory>"
67+
6268
& "$EXTRACTED\windows-amd64\bin\dpm.exe" bootstrap $EXTRACTED\windows-amd64

0 commit comments

Comments
 (0)