ChrisTitusTech / winutil

Chris Titus Tech's Windows Utility - Install Programs, Tweaks, Fixes, and Updates
MIT License
23.63k stars 1.44k forks source link

Proper uninstaller for certain windows features #1694

Closed ahmed-mkacher closed 7 months ago

ahmed-mkacher commented 7 months ago

Is there a problem? Maybe yes, maybe no

Yes I faced a problem which what made me request this feature, but I do not know if the tool itself is what caused my problem. I'll provide more context at the end of the issue.
Feature proposed

Just like in the "Tweaks" tab there is a button that allows "undoing" the selected tweaks. I suggest implementing a similar feature in the "Config" tab. "Delete/Uninstall selected features"

Note: In my case it doesn't really make sense to tell other solutions I have tried, because I didn't really mention the problem, so I'll swap the last two sections, I'll provide more context on the situation, then I'll mention what alternative solutions I tried.
Context and issue

I installed a fresh clean windows 11 pro, using the official iso from Microsoft's website, altered with MicroWin in WinUtil to remove the bloatware, I went with the recommended settings.

After booting I ran the recommended tweaks for laptops.

I used it to download some software and WSL and Sandbox. However WSL wasn't connecting to the internet at all (problem is too long to fully describe, this is a link to a thread I opened on "ask Ubuntu": https://askubuntu.com/questions/1507109/wsl-doesnt-seem-to-connect-to-network-at-all)

Apparently, for as much as I understand right now, the problem is that Hyper-V isn't creating the virtual switch adapter for WSL to use my network and connect. I do not know whether that has any relationship with the "custom" iso, I genuinely don't believe it has, but nonetheless, there is a chance it can be (WSL used to connect to network just fine before I format my laptop using this iso, and in the network adapters vEthernet used to show up).

I tried to uninstall all WSL related features through both the GUI and PowerShell, but it didn't work, some don't really get disabled, they undo changes on restart automatically after calling a failure, such as Sandbox (I know it depends on WSL not the opposite way around, but still)

I can also tell that it's not proper uninstallation because I am not required to enter a new UNIX username and password every time.

So here came my suggestion of providing a proper uninstaller for all windows features, such as Sandbox, WSL, Hyper-V... to save the effort of doing it manually every time, and at least be certain and sure that every file, registry key, folder... that has relation with that feature/software, gets permanently and completely deleted, and cleaned. I know that under the hood it will be just a bunch of commands, but because there are a lot of locations for each feature, and some registry keys, that it's so easy to miss one spot to fully clear and clean. WSL for instance, over 5 different folders, aside from the registry keys.

Note: Please don't mind any mistakes I made while writing this, or any irrelevant info or making it way too long, this is arguably my first time ever writing an issue.

Much appreciated, thank you.

github-actions[bot] commented 7 months ago

Closed due to inactivity