From 2530f8eb114f4bb86e236bc59e0ae8671ed41c9d Mon Sep 17 00:00:00 2001 From: Zarg <62082797+Zaarrg@users.noreply.github.com> Date: Mon, 10 Feb 2025 01:14:59 +0100 Subject: [PATCH] fix backup folder not being skipped --- utils/windows/installer/windows-installer.nsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utils/windows/installer/windows-installer.nsi b/utils/windows/installer/windows-installer.nsi index a9171c5..f6d71bb 100644 --- a/utils/windows/installer/windows-installer.nsi +++ b/utils/windows/installer/windows-installer.nsi @@ -308,6 +308,14 @@ Function ${un}RemoveAllExceptWebView2 StrCmp $R2 "." Next StrCmp $R2 ".." Next + ; Check if this item’s name begins with our backup folder prefix. + ; Copy the first 23 characters ("portable_config_backup_") into $R5. + StrCpy $R5 $R2 23 + StrCmp $R5 "portable_config_backup_" 0 notBackup + ; If equal, skip deletion for this folder. + Goto next + notBackup: + ; Skip the excluded directory StrCmp $R2 $R0 Next