From d45d54af60de17c802cae62c7d829877227914f9 Mon Sep 17 00:00:00 2001 From: tumpio Date: Sun, 23 Aug 2015 11:14:26 +0300 Subject: [PATCH] fix to include SysWOW64 for OneDriveSetup.exe --- scripts/remove-onedrive.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/remove-onedrive.ps1 b/scripts/remove-onedrive.ps1 index f5aaa95..ab522d1 100644 --- a/scripts/remove-onedrive.ps1 +++ b/scripts/remove-onedrive.ps1 @@ -9,8 +9,8 @@ echo "Remove OneDrive" if (Test-Path "$env:systemroot\System32\OneDriveSetup.exe") { & "$env:systemroot\System32\OneDriveSetup.exe" /uninstall } -if (Test-Path "$env:systemroot\System32\OneDriveSetup.exe") { - & "$env:systemroot\System32\OneDriveSetup.exe" /uninstall +if (Test-Path "$env:systemroot\SysWOW64\OneDriveSetup.exe") { + & "$env:systemroot\SysWOW64\OneDriveSetup.exe" /uninstall } echo "Removing OneDrive leftovers"