PowerShell 7 Upgrade MSI Setting Bug
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 8/100
Hướng nghiên cứu
This is a known-issue announcement with no file, test or entry point to change in this repository. The fix it describes is in PowerShell/PowerShell pull request #20420, which is referenced but not linked here. Nothing here is a clear task for a newcomer, so a useful next step is to ask a maintainer whether this notice still needs updating.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Previously, there was a bug in the PowerShell 7 MSI installer that did not remember modified installation settings after upgrading via WinGet and therefore subsequent updates reset the settings to their defaults. This only affects users after upgrading using WinGet, which performs a non-interactive installation of the MSI package. This affects any PowerShell 7 version upgraded via WinGet.
Who is affects
Anyone who downloads a PowerShell 7.x .MSI package from GitHub, changes a setting in the MSI GUI options (opting out of telemetry for example) and then upgrades to a newer version non-interactively.
What settings are affected
If you have modified the settings for any of the following MSI settings these may not have been saved if you have upgraded via WinGet since setting them:
- ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL
- ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL
- ENABLE_PSREMOTING
- REGISTER_MANIFEST
- ADD_PATH
- DISABLE_TELEMETRY
- INSTALLFOLDER
Actions
Telemetry
If you disabled telemetry during a previous installation, you need to disable it again after an upgrade installation. To opt out of telemetry, set the POWERSHELL_TELEMETRY_OPTOUT environment variable to True for your system. You can set this value by running the following command in an elevated PowerShell session.
[Environment]::SetEnvironmentVariable(POWERSHELL_TELEMETRY_OPTOUT, 'True', 'Machine')
PowerShell collects minimal telemetry that is anonymized before it is sent to Microsoft. For more information about telemetry, see about_Telemetry.
All other settings
If you need to upgrade PowerShell using Winget run the upgrade command with the --interactive option:
winget upgrade Microsoft.PowerShell --interactive
This option runs the installer interactively so you can change the necessary settings.
Upcoming fixes
This behavior is fixed in the PowerShell 7.5.0-preview.3 release. After installing this version, the MSI installer package saves the settings you chose. When you install a new MSI package released after 7.5.0-preview.3, the Windows Installer will use the saved settings. For a detailed description of the fix, see Pull Request #20420 .
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 20
- Fork
- 8
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PowerShell/Announcements
-
PowerShell Security
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
PowerShell/Announcements#101 ·
-
PowerShell Security
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
PowerShell/Announcements#100 ·
-
PowerShell Security
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 8/100
PowerShell/Announcements#99 ·
-
PowerShell Security
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 8/100
PowerShell/Announcements#98 ·
-
PowerShell Security
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 8/100
PowerShell/Announcements#97 ·
Tất cả issue của PowerShell/Announcements
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
area: ci priority: P4 ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
shep-pm/shep#1249 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bump rustls-webpki, webpki-roots and webpki-root-certs for the emSign distrust (CVE-2026-111943)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
docling-project/docling-serve#747 ·
Maintainer thường phản hồi trong vòng 1 ngày