Fix error message on uninstallation

Only call CleanupDll if the DLL exists.

close #13653
pull/13662/head
Anders 2023-05-14 00:43:33 +02:00 committed by Don Ho
parent a561cd37d4
commit 571c815b1e
1 changed files with 2 additions and 1 deletions

View File

@ -292,7 +292,8 @@ Section Uninstall
; In order to not delete context menu binary before we unregistered it,
; we delete them at the end, using the CleanupDll function, since it can be locked by explorer.
ExecWait 'rundll32.exe "$INSTDIR\contextmenu\NppShell.dll",CleanupDll'
IfFileExists "$INSTDIR\contextmenu\NppShell.dll" 0 +2
ExecWait 'rundll32.exe "$INSTDIR\contextmenu\NppShell.dll",CleanupDll'
Delete "$INSTDIR\contextmenu\NppShell.msix"