dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.67k stars 1.06k forks source link

.NET SDK 6.0.421 (x64) keeps asking to make changes to my device #40856

Open sydbarrett74 opened 4 months ago

sydbarrett74 commented 4 months ago

Describe the bug

I have Visual Studio Pro 2022 on a Win11 device. Through VS Installer, I enabled .NET SDK 6.0 as an installation item. Ever since, I keep getting UAC prompts saying that 6.0.421 (x64) wants to modify my device. Every time I allow it, it keeps recurring. Rebooting, repairing my OS installation through DISM, uninstalling the SDK, none of it solves the problem.

To Reproduce

No need for me to do anything. The UAC prompt keeps showing.

We may close this issue if:

Exceptions (if any)

No exceptions

Further technical details

joeloff commented 4 months ago

Do the following commands return anything?

reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Run /s reg query HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce /s

Also, when it pops up the prompt, can you dismiss the UAC prompt, then look for a file named Microsoft_.NET_SDK_6.0.421_(x64)_*.log under your %temp directory?

sydbarrett74 commented 4 months ago

To avoid an overly long comment, I have attached the text files.

CurrentVersion-RunOnce.txt CurrentVersion-Run.txt Microsoft_.NET_SDK6.0.421(x64)_20240506141340_016_dotnet_sdk_internal_6.0.421_win_x64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_015_Microsoft.NET.Workload.Emscripten.Manifest_6.0.300.6.0.29_x64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_014_Microsoft.NET.Workload.Mono.ToolChain.Manifest_6.0.300.6.0.5_x64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_013_Microsoft.NET.Sdk.tvOS.Manifest_6.0.300.15.4.303_x64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_012_Microsoft.NET.Sdk.Maui.Manifest_6.0.300.6.0.312_x64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_011_Microsoft.NET.Sdk.macOS.Manifest_6.0.300.12.3.303_x64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_010_Microsoft.NET.Sdk.MacCatalyst.Manifest_6.0.300.15.4.303_x64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_009_Microsoft.NET.Sdk.iOS.Manifest_6.0.300.15.4.303_x64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_008_Microsoft.NET.Sdk.Android.Manifest_6.0.300.32.0.301_x64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_007_dotnet_60templates_6.0.421_servicing.24172.9_win_x64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_006_aspnetcore_targeting_pack_6.0.29_servicing.24171.8_win_x64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_005_windowsdesktop_targeting_pack_6.0.29_win_x64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_004_dotnet_apphost_pack_6.0.29_win_x64_arm64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_003_dotnet_apphost_pack_6.0.29_win_x64_arm.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_002_dotnet_apphost_pack_6.0.29_win_x64_x86.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_001_dotnet_apphost_pack_6.0.29_win_x64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340_000_dotnet_targeting_pack_6.0.29_win_x64.msi.log Microsoft_.NET_SDK6.0.421(x64)_20240506141340.log

joeloff commented 4 months ago

I don't see anything obvious under the registry keys. The UAC prompt would trigger any time the installer runs as a normal user and reaches a point where it knows it requires elevation. We'll need to figure out what is causing the install to run. Any chance you can run procmon/task mask manager to see whether you can determine who the parent process is that's launching the SDK install?

sydbarrett74 commented 4 months ago

Sure, happy to! I'll report back with my findings.

On Thu, May 23, 2024, 12:14 AM Jacques Eloff @.***> wrote:

I don't see anything obvious under the registry keys. The UAC prompt would trigger any time the installer runs as a normal user and reaches a point where it knows it requires elevation. We'll need to figure out what is causing the install to run. Any chance you can run procmon/task mask manager to see whether you can determine who the parent process is that's launching the SDK install?

— Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/40856#issuecomment-2126196737, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRK6S5GWU4BBAEZJ4TZ6D3ZDVUJDAVCNFSM6AAAAABHVM76RGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRWGE4TMNZTG4 . You are receiving this because you authored the thread.Message ID: @.***>

sydbarrett74 commented 4 months ago

I'm not very versed in ProcMon, but I think I've gathered a little data. Don't know how useful it'll be for you, but I'm happy to provide it.

image image image

Hopefully I didn't waste your time giving you rubbish data.

joeloff commented 4 months ago

Do you recall which version of VS you installed, 17.5, 17.8, etc.?

sydbarrett74 commented 4 months ago

17.9 (updated recently to 17.10)

On Tue, May 28, 2024, 3:31 PM Jacques Eloff @.***> wrote:

Do you recall which version of VS you installed, 17.5, 17.8, etc.?

— Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/40856#issuecomment-2135966595, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRK6S7RU2FO5TYVKZNOMXLZETLRZAVCNFSM6AAAAABHVM76RGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZVHE3DMNJZGU . You are receiving this because you authored the thread.Message ID: @.***>