Winhance icon indicating copy to clipboard operation
Winhance copied to clipboard

[BUG] OneDrive does not get removed

Open KnivesTV opened this issue 5 months ago • 5 comments

Please confirm these before moving forward

  • [x] I have searched for my issue and have not found a similiar in the Open or Closed issues.
  • [x] I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • [x] I have checked the Discussions section for solutions.
  • [x] This issue is about a bug (if it is not, please use the correct template).

Winhance Version

Release #27 v26.06.12

Windows version, edition, and architecture

Windows 10 and 11 IoT Enterprise LTSC 2021 and 2024

Describe your issue

Under Software & Apps, it is not possible to uninstall OneDrive, even though Winhance creates a rule that is meant to keep it removed. After going through the steps of removal in Winhance, OneDrive appears as "Installed" once again.

Steps to reproduce the issue

I used Winhance to try to remove OneDrive. After it goes through the process of removing OneDrive, it appears with the green checkmark again, indicating it is still "Installed".

Expected behavior

OneDrive should be uninstalled and removed.

Actual behavior

OneDrive remains "Installed" as the status shown in Winhance.

Screenshots or Logs (if applicable)

Additional context

No response

KnivesTV avatar Jun 14 '26 03:06 KnivesTV

Update:

I found that Revo Uninstaller completely uninstalls OneDrive from my computer with no trace of ghost files remaining.

https://www.revouninstaller.com/revo-uninstaller-free-download/

After using Revo Uninstaller and running Winhance again, I see that Winhance shows OneDrive as no longer installed on my computer.

Currently, Winhance does not fully remove OneDrive on its own, and it continues to show it as being "Installed" after trying to uninstall it through Winhance.

Suggestion for @memstechtips :

Try running Revo Uninstaller (link above) to see all of the components of OneDrive that it finds and removes. The same components that it removes can be implemented into Winhance for a truly clean removal of OneDrive.

Revo Uninstaller can be used to demonstrate components of other programs that should be removed, but gets missed by Winhance.

This video may help: https://www.youtube.com/watch?v=P7kJ6o0PiyU&t=47s

KnivesTV avatar Jun 22 '26 21:06 KnivesTV

@KnivesTV Thank you, wil look into this.

memstechtips avatar Jun 23 '26 08:06 memstechtips

Update:

I found that Revo Uninstaller completely uninstalls OneDrive from my computer with no trace of ghost files remaining.

https://www.revouninstaller.com/revo-uninstaller-free-download/

After using Revo Uninstaller and running Winhance again, I see that Winhance shows OneDrive as no longer installed on my computer.

Currently, Winhance does not fully remove OneDrive on its own, and it continues to show it as being "Installed" after trying to uninstall it through Winhance.

Suggestion for @memstechtips :

Try running Revo Uninstaller (link above) to see all of the components of OneDrive that it finds and removes. The same components that it removes can be implemented into Winhance for a truly clean removal of OneDrive.

Revo Uninstaller can be used to demonstrate components of other programs that should be removed, but gets missed by Winhance.

This video may help: https://www.youtube.com/watch?v=P7kJ6o0PiyU&t=47s

Can Revo Uninstaller remove the OneDrive system variable, can’t it?

Primordial320 avatar Aug 24 '26 18:08 Primordial320

By the way, how does Winchance uninstall and install apps? Surely it’s all done via Winget?

Primordial320 avatar Aug 24 '26 18:08 Primordial320

Hey @KnivesTV,

Thanks for the update, and for the tip about Revo. It pointed me in the right direction. When I tested on IoT LTSC, Winhance removed OneDrive cleanly, but I found one leftover it didn't clean up: an old uninstall entry in the 32-bit part of the registry. With just that entry left behind, Windows still reports OneDrive as installed, which is what you saw.

Winhance's OneDrive removal now deletes that entry and the matching leftover folder too. The fix will be in Winhance Release 28 when it comes out, but I don't have a release date yet.

Image Image Image

If OneDrive still shows as installed after the update, just comment here and I'll reopen it.

@Primordial320 Winhance uninstalls and installs apps with a variety of different methods, Winget is used primarily, but there's also uninstall strings that's searched for in the registry as a fallback. And for some apps like OneDrive and Microsoft Edge, it has a dedicated PowerShell script to uninstall it that contains its own set of different methods. The installs are usually done via Winget or Chocolatey for all of these items, but the uninstall methods do vary Because you get different ways and different types of packages to install the same app.

memstechtips avatar Oct 22 '26 10:10 memstechtips