From 5d2ceaada8b84990d828e3c98ea4f6418cac9893 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Mon, 21 Mar 2022 19:22:34 +0100 Subject: CPack/NSIS: Add support for unquoted (legacy) uninstaller strings --- Modules/Internal/CPack/NSIS.template.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/Internal/CPack/NSIS.template.in b/Modules/Internal/CPack/NSIS.template.in index 18f1ee8..f16eaf6 100644 --- a/Modules/Internal/CPack/NSIS.template.in +++ b/Modules/Internal/CPack/NSIS.template.in @@ -932,7 +932,11 @@ Function .onInit ;Run the uninstaller uninst: ClearErrors + StrCpy $2 $0 1 + StrCmp '"' $2 0 +3 ; checks if string is quoted (CPack before v3.20.6 did not quote it) ExecWait '$0 /S' + Goto +2 + ExecWait '"$0" /S' IfErrors uninst_failed inst uninst_failed: -- cgit v0.12