Skip to content

Connect Win installer: Update system rather than user path#55417

Merged
ravicious merged 1 commit intomasterfrom
r7s/hklm
Jun 4, 2025
Merged

Connect Win installer: Update system rather than user path#55417
ravicious merged 1 commit intomasterfrom
r7s/hklm

Conversation

@ravicious
Copy link
Copy Markdown
Member

@ravicious ravicious commented Jun 4, 2025

Closes #55355.

v17.3 made it so that Connect is installed per-machine, but the installer continued to add tsh to the user path rather than the system path.

I have verified that we don't have to worry about any extra migration steps. When installing a new version, the installer first runs the uninstaller of the previous version. So first it's going to remove the tsh dir from the user path and then it's going to add the tsh dir to the system path.

Interestingly, on Windows user env vars takes precedence over system env vars with the exception of path, where the user path is appended to the system path.

changelog: The Windows installer of Teleport Connect now adds the folder with tsh to the system path rather than the user path

Copy link
Copy Markdown
Contributor

@gzdunek gzdunek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for quickly addressing this.

@ravicious ravicious added this pull request to the merge queue Jun 4, 2025
Merged via the queue into master with commit 3dcedc2 Jun 4, 2025
45 checks passed
@ravicious ravicious deleted the r7s/hklm branch June 4, 2025 16:48
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@ravicious See the table below for backport results.

Branch Result
branch/v17 Create PR
branch/v18 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Connect: Make bundled tsh available to all users on Windows

3 participants