From 4e32010f68e97c80012d52c192ab9234694d3008 Mon Sep 17 00:00:00 2001 From: Ariel Juodziukynas Date: Thu, 2 Jan 2025 23:01:11 -0300 Subject: [PATCH] Luck for `pfx` and `drive_c` folder to know it's a valid prefix folder to delete --- src/backend/utils/uninstaller.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/utils/uninstaller.ts b/src/backend/utils/uninstaller.ts index 593d8a00de..d5897738b6 100644 --- a/src/backend/utils/uninstaller.ts +++ b/src/backend/utils/uninstaller.ts @@ -42,10 +42,11 @@ export const removePrefix = async (appName: string, runner: Runner) => { if (dirContent.length > 0) { const driveCPath = join(winePrefix, 'drive_c') + const pfxPath = join(winePrefix, 'pfx') - if (!existsSync(driveCPath)) { + if (!existsSync(driveCPath) && !existsSync(pfxPath)) { logInfo( - `Can't delete folder ${winePrefix}, folder does not contain a drive_c folder. If this is the correct prefix folder, delete it manually.` + `Can't delete folder ${winePrefix}, folder does not contain a drive_c/pfx folder. If this is the correct prefix folder, delete it manually.` ) return }