Skip to content

Conversation

@CyMad7001
Copy link
Contributor

Fix issue with installer hanging on some installations #196344.

Cause
Maybe to do with blocking in some users profiles. The installer executes a number of powershell commands during installation all of which load the users profile. These profiles may be blocking the installer from executing if there is user input required. Simply executing with the "-NoProfile " parameter should resolve the issue.

Resolution
Include "-NoProfile " when executing powershell scripts/commands during the installation process

Copilot AI review requested due to automatic review settings December 9, 2025 12:26
@joaomoreno joaomoreno added this to the December / January 2026 milestone Dec 9, 2025
@joaomoreno
Copy link
Member

joaomoreno commented Dec 9, 2025

Fixes #196344

@CyMad7001, thank you! Here's some swag for you: https://swag.code.visualstudio.com/

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an installer hang issue (#196344) by adding PowerShell execution parameters to prevent profile loading and interactive prompts during the tunnel service termination process.

Key Changes:

  • Added -NoLogo -NoProfile -NonInteractive -WindowStyle Hidden -ExecutionPolicy Bypass parameters to the PowerShell invocation in StopTunnelOtherProcesses() function
  • Aligns this PowerShell invocation with the pattern already established elsewhere in the installer script

Copy link
Collaborator

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

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

Thanks!

joaomoreno added a commit that referenced this pull request Dec 9, 2025
@joaomoreno
Copy link
Member

Closing in favor of #282201, due to new policy regarding the build/ folder.

@joaomoreno joaomoreno closed this Dec 9, 2025
auto-merge was automatically disabled December 9, 2025 12:51

Pull request was closed

@joaomoreno joaomoreno added the on-release-notes Issue/pull request mentioned in release notes label Dec 9, 2025
joaomoreno added a commit that referenced this pull request Dec 9, 2025
* fix: frozen windows installations

fixes #196344
related to #228233
Co-authored-by: CyMad <[email protected]>

* Update build/win32/code.iss

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: CyMad <[email protected]>
Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

on-release-notes Issue/pull request mentioned in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants