dotnet / cli-lab

A guided tool will be provided to enable the controlled clean up of a system such that only the desired versions of the Runtime and SDKs remain.
MIT License
602 stars 55 forks source link

Removal of hosting bundle doesn't work #277

Open blakeduffey opened 5 months ago

blakeduffey commented 5 months ago

Trying to automate the hosting bundle across our fleet of IIS server. Apparently MS provides no simple way of doing this via SCCM (you can install new version but not remove legacy versions.

I'm running: .\dotnet-core-uninstall.exe remove --force --all-but-latest --hosting-bundle

And I'm still prompted with

image

What's the point of this tool if it doesn't work?

I'm also including this link re: folks trying to accomplish the same thing (but may be having a different problem)

https://github.com/dotnet/cli-lab/issues/262

blakeduffey commented 5 months ago

For an update - this command will remove the hosting bundle

.\dotnet-core-uninstall.exe remove --all --hosting-bundle --force

But STILL prompts for confirmation - removing any option regarding automation

image

Neme12 commented 4 months ago

Have you tried installing/uninstalling via WinGet? This repo doesn't really seem like it's maintained. :/

blakeduffey commented 4 months ago

Winget isn't supported on Windows server?

blakeduffey commented 4 months ago

Have you tried installing/uninstalling via WinGet? This repo doesn't really seem like it's maintained. :/

I agree, it doesn't seem properly maintained

Neme12 commented 4 months ago

Winget isn't supported on Windows server?

Oh I had no idea, sorry.

Neme12 commented 4 months ago

Can you not run the installers in silent mode by passing in the right flags though? After all, that's what WinGet does. At least that's what I see here. https://github.com/microsoft/winget-pkgs/blob/master/manifests/m/Microsoft/DotNet/SDK/8/8.0.201/Microsoft.DotNet.SDK.8.installer.yaml

I don't see what those flags for silent install are though. I guess they're added automatically by the InstallerType: burn.