Skip to content

Commit

Permalink
NSIS installer: don't use /bin/ subfolder for path option
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Jul 2, 2024
1 parent 190a8e3 commit 8e6f959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extra/cmake/NSIS.template.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8e6f959

Please sign in to comment.