Skip to content

Commit

Permalink
Don't remove the installation directory recursively
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Jul 8, 2022
1 parent 0057d21 commit c5ef82a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion nsis/tesseract.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,15 @@ Section -un.Main UNSEC0000
DeleteRegValue HKLM "${REGKEY}" Path
DeleteRegKey /IfEmpty HKLM "${REGKEY}\Components"
DeleteRegKey /IfEmpty HKLM "${REGKEY}"
RMDir /r "$INSTDIR"
Delete "$INSTDIR\*.dll"
Delete "$INSTDIR\*.exe"
Delete "$INSTDIR\*.html"
Delete "$INSTDIR\doc\AUTHORS"
Delete "$INSTDIR\doc\LICENSE"
Delete "$INSTDIR\doc\README.md"
RMDir "$INSTDIR\doc"
RMDir /r "$INSTDIR\tessdata"
RMDir "$INSTDIR"
SectionEnd
Function PageReinstall
Expand Down

0 comments on commit c5ef82a

Please sign in to comment.