From d2599ea525749f814fe537213645889052aa406d Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Thu, 6 Jun 2024 12:07:18 +0200 Subject: [PATCH] closes #2656 --- .../contrib/version170-migrate-settings.bat | 5 --- .../contrib/version170-migrate-settings.ps1 | 35 ------------------- dist/win/resources/main.wxs | 6 ---- 3 files changed, 46 deletions(-) delete mode 100644 dist/win/contrib/version170-migrate-settings.bat delete mode 100644 dist/win/contrib/version170-migrate-settings.ps1 diff --git a/dist/win/contrib/version170-migrate-settings.bat b/dist/win/contrib/version170-migrate-settings.bat deleted file mode 100644 index d94e062a1..000000000 --- a/dist/win/contrib/version170-migrate-settings.bat +++ /dev/null @@ -1,5 +0,0 @@ -@echo off -:: see comments in file ./version170-migrate-settings.ps1 - -cd %~dp0 -powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -Command .\version170-migrate-settings.ps1 diff --git a/dist/win/contrib/version170-migrate-settings.ps1 b/dist/win/contrib/version170-migrate-settings.ps1 deleted file mode 100644 index 8e019fe66..000000000 --- a/dist/win/contrib/version170-migrate-settings.ps1 +++ /dev/null @@ -1,35 +0,0 @@ -# This script migrates Cryptomator settings for all local users on Windows in case the users uses custom directories as mountpoint -# See also https://github.com/cryptomator/cryptomator/pull/2654. -# -# TODO: This script should be evaluated in a yearly interval if it is still needed and if not, should be removed -# -#Requires -RunAsAdministrator - -#Get all active, local user profiles -$profileList = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList' -Get-ChildItem $profileList | ForEach-Object { - $profilePath = $_.GetValue("ProfileImagePath") - $settingsPath = "$profilePath\AppData\Roaming\Cryptomator\settings.json" - if(!(Test-Path -Path $settingsPath -PathType Leaf)) { - #No settings file, nothing to do. - return; - } - $settings = Get-Content -Path $settingsPath | ConvertFrom-Json - if($settings.preferredVolumeImpl -ne "FUSE") { - #Fuse not used, nothing to do - return; - } - - #check if customMountPoints are used - $atLeastOneCustomPath = $false; - foreach ($vault in $settings.directories){ - $atLeastOneCustomPath = $atLeastOneCustomPath -or ($vault.useCustomMountPath -eq "True") - } - - #if so, use WinFsp Local Drive - if( $atLeastOneCustomPath ) { - Add-Member -Force -InputObject $settings -Name "mountService" -Value "org.cryptomator.frontend.fuse.mount.WinFspMountProvider" -MemberType NoteProperty - $newSettings = $settings | Select-Object * -ExcludeProperty "preferredVolumeImpl" - ConvertTo-Json $newSettings | Set-Content -Path $settingsPath - } -} diff --git a/dist/win/resources/main.wxs b/dist/win/resources/main.wxs index 2fe2eb348..335dd3511 100644 --- a/dist/win/resources/main.wxs +++ b/dist/win/resources/main.wxs @@ -139,11 +139,6 @@ Sequence="execute" Before="PatchWebDAV" /> - - - - NOT Installed OR REINSTALL - NOT Installed OR REINSTALL