From 1cc12195a3e9a11c590d3ed64d80299b50f74838 Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Sun, 9 Aug 2020 01:53:38 +0100 Subject: [PATCH] fixed removing onedrive does not clean start menu / quick access --- src/application/application.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/application/application.yaml b/src/application/application.yaml index 12f1fbdc..60698ede 100644 --- a/src/application/application.yaml +++ b/src/application/application.yaml @@ -1837,15 +1837,17 @@ actions: - name: Remove OneDrive code: |- - taskkill /F /IM OneDrive.exe + taskkill /f /im OneDrive.exe %SystemRoot%\System32\OneDriveSetup.exe /uninstall %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall - rd "%UserProfile%\OneDrive" /Q /S - rd "%LocalAppData%\Microsoft\OneDrive" /Q /S - rd "%ProgramData%\Microsoft OneDrive" /Q /S - rd "C:\OneDriveTemp" /Q /S + rd "%UserProfile%\OneDrive" /q /s + rd "%LocalAppData%\Microsoft\OneDrive" /q /s + rd "%ProgramData%\Microsoft OneDrive" /q /s + rd "C:\OneDriveTemp" /q /s + del "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" /s /f /q reg delete "HKEY_CLASSES_ROOT\CLSID{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f reg delete "HKEY_CLASSES_ROOT\Wow6432Node\CLSID{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f + reg add "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /v System.IsPinnedToNameSpaceTree /d "0" /t REG_DWORD /f - category: Disable built-in Windows features children: