Skip to content

Commit

Permalink
Luck for pfx and drive_c folder to know it's a valid prefix folde…
Browse files Browse the repository at this point in the history
…r to delete
  • Loading branch information
arielj committed Jan 3, 2025
1 parent 8d27c5e commit 4e32010
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/backend/utils/uninstaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4e32010

Please sign in to comment.