From 10ff04d6881f3599f1537fb0883ec1eed05e16ac Mon Sep 17 00:00:00 2001 From: Robin Date: Thu, 6 Aug 2026 16:26:02 -0400 Subject: [PATCH] Ensure option is gated behind install scope --- constructor/briefcase.py | 2 +- constructor/briefcase/run_installation.bat | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/constructor/briefcase.py b/constructor/briefcase.py index 2c6b8bf50..27c7beaf8 100644 --- a/constructor/briefcase.py +++ b/constructor/briefcase.py @@ -308,7 +308,7 @@ def create_install_options_list(info: dict) -> list[dict]: options.append( { "name": "initialize_conda", - "title": "Add installation to my PATH environment variable", + "title": "Add installation to my PATH environment variable (single-user installs only)", "description": description, "default": info.get("initialize_by_default", False), } diff --git a/constructor/briefcase/run_installation.bat b/constructor/briefcase/run_installation.bat index d04e0c42b..e189b9e06 100644 --- a/constructor/briefcase/run_installation.bat +++ b/constructor/briefcase/run_installation.bat @@ -160,9 +160,9 @@ rem because MSI expects the file to be there to clean the registry. del "%PAYLOAD_TAR%" if errorlevel 1 ( exit /b %errorlevel% ) -rem Add to PATH / run conda init if the option was selected +rem Add to PATH / run conda init if the option was selected (single-user installs only) {%- set pathflag = "--condabin" if initialize_conda == "condabin" else "--classic" %} -if "%OPTION_INITIALIZE_CONDA%"=="1" ( +if "%OPTION_INITIALIZE_CONDA%"=="1" if exist "%BASE_PATH%\.nonadmin" ( {{ tee("Adding to PATH...") }} "%CONDA_EXE%" constructor windows path --prepend=user --prefix "%BASE_PATH%" {{ pathflag }} --log-file "%LOG%" if errorlevel 1 ( exit /b %errorlevel% )