From 8e6f959f45e5a54f9d74afb0596782be94d55d56 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Mon, 1 Jul 2024 22:55:05 -0300 Subject: [PATCH] NSIS installer: don't use /bin/ subfolder for path option --- extra/cmake/NSIS.template.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/cmake/NSIS.template.in b/extra/cmake/NSIS.template.in index 943715e7e..21440ec69 100644 --- a/extra/cmake/NSIS.template.in +++ b/extra/cmake/NSIS.template.in @@ -880,7 +880,7 @@ Section "-Core installation" SectionEnd Section "-Add to path" - Push $INSTDIR\bin + Push $INSTDIR StrCmp "@CPACK_NSIS_MODIFY_PATH@" "ON" 0 doNotAddToPath StrCmp $DO_NOT_ADD_TO_PATH "1" doNotAddToPath 0 Call AddToPath @@ -1040,7 +1040,7 @@ Section "Uninstall" DeleteRegKey /ifempty SHCTX "Software\@CPACK_PACKAGE_VENDOR@\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" - Push $INSTDIR\bin + Push $INSTDIR StrCmp $DO_NOT_ADD_TO_PATH_ "1" doNotRemoveFromPath 0 Call un.RemoveFromPath doNotRemoveFromPath: