fix backup folder not being skipped

This commit is contained in:
Zarg 2025-02-10 01:14:59 +01:00
parent 347bf735ee
commit 2530f8eb11

View file

@ -308,6 +308,14 @@ Function ${un}RemoveAllExceptWebView2
StrCmp $R2 "." Next
StrCmp $R2 ".." Next
; Check if this items 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